summaryrefslogtreecommitdiff
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-27 20:58:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-27 20:58:14 -0700
commitfe9385228a7845e98485c925031ee5a46f5dfd3b (patch)
tree93f63bc09e86b3f8c0139e87a017f3c0f015eccb /mbr
parentf2dc4e108dbec03b05f8629626b0006454e6195e (diff)
downloadsyslinux-fe9385228a7845e98485c925031ee5a46f5dfd3b.tar.gz
Unify dependency generation
Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'mbr')
-rw-r--r--mbr/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbr/Makefile b/mbr/Makefile
index 6cd677c0..e0695843 100644
--- a/mbr/Makefile
+++ b/mbr/Makefile
@@ -24,13 +24,13 @@ all: mbr.bin altmbr.bin gptmbr.bin isohdpfx.bin \
.PRECIOUS: %.o
%.o: %.S adjust.h
- $(CC) $(SFLAGS) -Wa,-a=$*.lst -c -o $@ $<
+ $(CC) $(MAKEDEPS) $(SFLAGS) -Wa,-a=$*.lst -c -o $@ $<
%_c.o: %.S adjust.h
- $(CC) $(SFLAGS) -Wa,-a=$*_c.lst -DCTRL_80 -c -o $@ $<
+ $(CC) $(MAKEDEPS) $(SFLAGS) -Wa,-a=$*_c.lst -DCTRL_80 -c -o $@ $<
%_f.o: %.S adjust.h
- $(CC) $(SFLAGS) -Wa,-a=$*_f.lst -DFORCE_80 -c -o $@ $<
+ $(CC) $(MAKEDEPS) $(SFLAGS) -Wa,-a=$*_f.lst -DFORCE_80 -c -o $@ $<
.PRECIOUS: %.elf
%.elf: %.o mbr.ld
@@ -44,7 +44,7 @@ all: mbr.bin altmbr.bin gptmbr.bin isohdpfx.bin \
mbr_bin.c: mbr.bin
tidy dist:
- rm -f *.o *.elf *.lst
+ rm -f *.o *.elf *.lst .*.d
clean: tidy