diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-02-15 13:31:52 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-02-21 16:10:51 +0100 |
commit | acb0dea27efff4b35796015b96570b59fd517078 (patch) | |
tree | ca009b81f101fdb8cce8529dc2856a24f6910f6f /doc/examples | |
parent | db4903eb4875bed6c5b8a4259cdd7bc1768dfdf6 (diff) | |
download | ffmpeg-acb0dea27efff4b35796015b96570b59fd517078.tar.gz |
build: Split logic for building examples off into a separate Makefile
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile new file mode 100644 index 0000000000..b24ca28aff --- /dev/null +++ b/doc/examples/Makefile @@ -0,0 +1,26 @@ +DOC_EXAMPLES-$(CONFIG_DECODE_AUDIO_EXAMPLE) += decode_audio +DOC_EXAMPLES-$(CONFIG_DECODE_VIDEO_EXAMPLE) += decode_video +DOC_EXAMPLES-$(CONFIG_ENCODE_AUDIO_EXAMPLE) += encode_audio +DOC_EXAMPLES-$(CONFIG_ENCODE_VIDEO_EXAMPLE) += encode_video +DOC_EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE) += filter_audio +DOC_EXAMPLES-$(CONFIG_METADATA_EXAMPLE) += metadata +DOC_EXAMPLES-$(CONFIG_OUTPUT_EXAMPLE) += output +DOC_EXAMPLES-$(CONFIG_QSVDEC_EXAMPLE) += qsvdec +DOC_EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE) += transcode_aac + +DOC_EXAMPLES := $(DOC_EXAMPLES-yes:%=doc/examples/%$(EXESUF)) +ALL_DOC_EXAMPLES := $(DOC_EXAMPLES) $(DOC_EXAMPLES-:%=doc/examples/%$(EXESUF)) +PROGS += $(DOC_EXAMPLES) + +examples: $(DOC_EXAMPLES) + +$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples +OBJDIRS += doc/examples + +DOXY_INPUT += $(addprefix $(SRC_PATH)/, $(DOC_EXAMPLES:%$(EXESUF)=%.c)) + +clean:: + $(RM) $(ALL_DOC_EXAMPLES) + $(RM) $(CLEANSUFFIXES:%=doc/examples/%) + +.PHONY: examples |