summaryrefslogtreecommitdiff
path: root/subdir.mak
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-08-23 11:02:32 +0000
committerMåns Rullgård <mans@mansr.com>2009-08-23 11:02:32 +0000
commitb7c10b2a2b58c1164324d0ac0aea00a1e14b0d6a (patch)
treee99efd723793da1d7224edc48155f3ded3796cef /subdir.mak
parent7bd47335889093c66af6b912935fd121b870be0d (diff)
Fix dependency generation for yasm assembler files
Originally committed as revision 19683 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'subdir.mak')
-rw-r--r--subdir.mak4
1 files changed, 1 insertions, 3 deletions
diff --git a/subdir.mak b/subdir.mak
index ada6e53763..d89573904e 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -31,11 +31,9 @@ $(SUBDIR)%-test.o: $(SUBDIR)%-test.c
$(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c -o $$@ $$^
$(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
+ $(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$@ $$< > $$(@:.o=.d)
$(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$<
-$(SUBDIR)x86/%.d: $(SUBDIR)x86/%.asm
- $(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@
-
clean::
rm -f $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
$(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))