Split version files into one line per symbol/directive to allow compatibility
with the Solaris linker without preprocessing and eliminate $ from version file
templates to simplify the postprocessing shell command.
$(Q)echo '#include "$*.h"' >$@
%.ver: %.v
- $(M)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ | sed -e 's/:/:\
-/' -e 's/; /;\
-/g' > $@
+ $(M)sed 's/MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@
%.c %.h %.ver: TAG = GEN
-LIBAVCODEC_$MAJOR {
- global: av*;
- local: *;
+LIBAVCODEC_MAJOR {
+ global:
+ av*;
+ local:
+ *;
};
-LIBAVDEVICE_$MAJOR {
- global: avdevice_*;
- local: *;
+LIBAVDEVICE_MAJOR {
+ global:
+ avdevice_*;
+ local:
+ *;
};
-LIBAVFILTER_$MAJOR {
- global: avfilter_*; av_*;
- local: *;
+LIBAVFILTER_MAJOR {
+ global:
+ avfilter_*;
+ av_*;
+ local:
+ *;
};
-LIBAVFORMAT_$MAJOR {
- global: av*;
- local: *;
+LIBAVFORMAT_MAJOR {
+ global:
+ av*;
+ local:
+ *;
};
-LIBAVRESAMPLE_$MAJOR {
- global: av*;
- local: *;
+LIBAVRESAMPLE_MAJOR {
+ global:
+ av*;
+ local:
+ *;
};
-LIBAVUTIL_$MAJOR {
- global: av*;
- local: *;
+LIBAVUTIL_MAJOR {
+ global:
+ av*;
+ local:
+ *;
};
-LIBSWSCALE_$MAJOR {
- global: swscale_*; sws_*;
- local: *;
+LIBSWSCALE_MAJOR {
+ global:
+ swscale_*;
+ sws_*;
+ local:
+ *;
};