aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-27 21:42:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-27 21:42:45 -0700
commite6d94cc986897ac80a13a5eedd8ab38d581b0453 (patch)
treee6a9bab1f51a0eb4274e9dc77465f9cf3941e160 /dos
parent593236b4086e21f9552bb0281f6093b7cce875e9 (diff)
downloadsyslinux-devel-e6d94cc986897ac80a13a5eedd8ab38d581b0453.tar.gz
syslinux-devel-e6d94cc986897ac80a13a5eedd8ab38d581b0453.tar.xz
syslinux-devel-e6d94cc986897ac80a13a5eedd8ab38d581b0453.zip
Unify dependency generation: MCONFIG.embedded
Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dos')
-rw-r--r--dos/Makefile11
1 files changed, 1 insertions, 10 deletions
diff --git a/dos/Makefile b/dos/Makefile
index afcb1465..f580e01e 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -59,17 +59,8 @@ libcom.a: $(LIBOBJS)
syslinux.com: syslinux.elf
$(OBJCOPY) -O binary $< $@
-%.o: %.c
- $(CC) $(MAKEDEPS) $(CFLAGS) -c -o $@ $<
-%.i: %.c
- $(CC) $(MAKEDEPS) $(CFLAGS) -E -o $@ $<
-%.s: %.c
- $(CC) $(MAKEDEPS) $(CFLAGS) -S -o $@ $<
-%.o: %.S
- $(CC) $(MAKEDEPS) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
-%.s: %.S
- $(CC) $(MAKEDEPS) $(CFLAGS) -D__ASSEMBLY__ -E -o $@ $<
%.com: %.asm
+ ( $(NASM) -DDEPEND $(NASMOPT) -o $@ -M $< && echo '' ) > .$@.d; true
$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
-include .*.d *.tmp