diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-03-22 22:33:41 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-03-22 22:33:41 +0000 |
commit | 6708cfc4d3a079527409b2ba2fc75997a7975104 (patch) | |
tree | cda72725caee6452e59ddf27c95cafa40fb5e9da /common.mak | |
parent | 326e9eaa201007164a65baf5f48d7d4e017abde8 (diff) | |
download | ffmpeg-6708cfc4d3a079527409b2ba2fc75997a7975104.tar.gz |
Add rule for building API example programs.
Originally committed as revision 18161 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common.mak b/common.mak index 9b1ebd7341..d0dc7bec8e 100644 --- a/common.mak +++ b/common.mak @@ -54,7 +54,7 @@ install: install-libs install-headers uninstall: uninstall-libs uninstall-headers -.PHONY: all depend dep *clean install* uninstall* tests +.PHONY: all depend dep *clean install* uninstall* examples tests endif CFLAGS += $(CFLAGS-yes) @@ -65,6 +65,7 @@ TESTS += $(TESTS-yes) FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS) FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS) +EXAMPLES := $(addprefix $(SUBDIR),$(EXAMPLES)) OBJS := $(addprefix $(SUBDIR),$(OBJS)) TESTS := $(addprefix $(SUBDIR),$(TESTS)) @@ -97,7 +98,7 @@ $(SUBDIR)x86/%.d: $(SUBDIR)x86/%.asm $(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@ clean:: - rm -f $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ + rm -f $(EXAMPLES) $(TESTS) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) distclean:: clean @@ -107,6 +108,7 @@ endef $(eval $(RULES)) +examples: $(EXAMPLES) tests: $(TESTS) -include $(DEPS) |