build: Drop DOC_ prefix from EXAMPLES-related variables
[libav.git] / doc / examples / Makefile
CommitLineData
c483398b
DB
1EXAMPLES-$(CONFIG_DECODE_AUDIO_EXAMPLE) += decode_audio
2EXAMPLES-$(CONFIG_DECODE_VIDEO_EXAMPLE) += decode_video
3EXAMPLES-$(CONFIG_ENCODE_AUDIO_EXAMPLE) += encode_audio
4EXAMPLES-$(CONFIG_ENCODE_VIDEO_EXAMPLE) += encode_video
5EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE) += filter_audio
6EXAMPLES-$(CONFIG_METADATA_EXAMPLE) += metadata
7EXAMPLES-$(CONFIG_OUTPUT_EXAMPLE) += output
8EXAMPLES-$(CONFIG_QSVDEC_EXAMPLE) += qsvdec
9EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE) += transcode_aac
10
11EXAMPLES := $(EXAMPLES-yes:%=doc/examples/%$(EXESUF))
12ALL_EXAMPLES := $(EXAMPLES) $(EXAMPLES-:%=doc/examples/%$(EXESUF))
13PROGS += $(EXAMPLES)
14
15$(foreach P,$(EXAMPLES),$(eval OBJS-$(P:%$(EXESUF)=%) = $(P:%$(EXESUF)=%).o))
16$(EXAMPLES): %$(EXESUF): %.o
17
18examples: $(EXAMPLES)
19
20$(EXAMPLES:%$(EXESUF)=%.o): | doc/examples
acb0dea2
DB
21OBJDIRS += doc/examples
22
c483398b 23DOXY_INPUT += $(addprefix $(SRC_PATH)/, $(EXAMPLES:%$(EXESUF)=%.c))
acb0dea2
DB
24
25clean::
c483398b 26 $(RM) $(ALL_EXAMPLES)
acb0dea2
DB
27 $(RM) $(CLEANSUFFIXES:%=doc/examples/%)
28
c483398b 29-include $(wildcard $(EXAMPLES:%$(EXESUF)=%.d))
ab566cc9 30
acb0dea2 31.PHONY: examples