diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-27 20:58:14 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-27 20:58:14 -0700 |
commit | fe9385228a7845e98485c925031ee5a46f5dfd3b (patch) | |
tree | 93f63bc09e86b3f8c0139e87a017f3c0f015eccb /dos | |
parent | f2dc4e108dbec03b05f8629626b0006454e6195e (diff) | |
download | syslinux.git-fe9385228a7845e98485c925031ee5a46f5dfd3b.tar.gz syslinux.git-fe9385228a7845e98485c925031ee5a46f5dfd3b.tar.xz syslinux.git-fe9385228a7845e98485c925031ee5a46f5dfd3b.zip |
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 'dos')
-rw-r--r-- | dos/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dos/Makefile b/dos/Makefile index da73a6d5..afcb1465 100644 --- a/dos/Makefile +++ b/dos/Makefile @@ -60,15 +60,15 @@ syslinux.com: syslinux.elf $(OBJCOPY) -O binary $< $@ %.o: %.c - $(CC) -Wp,-MT,$@,-MD,.$@.d $(CFLAGS) -c -o $@ $< + $(CC) $(MAKEDEPS) $(CFLAGS) -c -o $@ $< %.i: %.c - $(CC) $(CFLAGS) -E -o $@ $< + $(CC) $(MAKEDEPS) $(CFLAGS) -E -o $@ $< %.s: %.c - $(CC) $(CFLAGS) -S -o $@ $< + $(CC) $(MAKEDEPS) $(CFLAGS) -S -o $@ $< %.o: %.S - $(CC) -Wp,-MT,$@,-MD,.$@.d $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $< + $(CC) $(MAKEDEPS) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $< %.s: %.S - $(CC) $(CFLAGS) -E -o $@ $< + $(CC) $(MAKEDEPS) $(CFLAGS) -D__ASSEMBLY__ -E -o $@ $< %.com: %.asm $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $< |