diff options
Diffstat (limited to 'subdir.mak')
-rw-r--r-- | subdir.mak | 4 |
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)))) |