diff options
author | Måns Rullgård <mans@mansr.com> | 2009-04-01 00:53:22 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-04-01 00:53:22 +0000 |
commit | 3fd422ff77d511947f7b82d025fffcfc702fe140 (patch) | |
tree | 4afda88b63ca8f60320f99c629788d8c55a520da /common.mak | |
parent | 13b47b4012dde0cea9ff303415891058e0615f84 (diff) | |
download | ffmpeg-3fd422ff77d511947f7b82d025fffcfc702fe140.tar.gz |
Move make rules applicable only to subdirs into subdir.mak
Originally committed as revision 18294 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common.mak b/common.mak index b42b33e8f0..5c95e82f11 100644 --- a/common.mak +++ b/common.mak @@ -81,34 +81,4 @@ CLEANSUFFIXES = *.o *~ *.ho DISTCLEANSUFFIXES = *.d *.pc LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a *.exp *.map -define RULES -$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o - $(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS) - -$(SUBDIR)%-test.o: $(SUBDIR)%.c - $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^ - -$(SUBDIR)%-test.o: $(SUBDIR)%-test.c - $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^ - -$(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm - $(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$< - -$(SUBDIR)x86/%.d: $(SUBDIR)x86/%.asm - $(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@ - -clean:: - rm -f $(EXAMPLES) $(addprefix $(SUBDIR),*-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ - $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) - -distclean:: clean - rm -f $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \ - $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) -endef - -$(eval $(RULES)) - -examples: $(EXAMPLES) -testprogs: $(TESTPROGS) - -include $(DEPS) |