aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-19 16:47:09 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-19 16:51:25 -0800
commitcc30f7dc63648aa02625df65f7148569b578baaa (patch)
tree4f01e027670cb8b338454135084f3cd9d965b33f /com32/samples
parent2ba25f7096c4d0982edd11c8449ccee86b2accf5 (diff)
downloadsyslinux.git-cc30f7dc63648aa02625df65f7148569b578baaa.tar.gz
syslinux.git-cc30f7dc63648aa02625df65f7148569b578baaa.tar.xz
syslinux.git-cc30f7dc63648aa02625df65f7148569b578baaa.zip
Add dependency generation for com32 samples.
Diffstat (limited to 'com32/samples')
-rw-r--r--com32/samples/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index a203bbfd..315a9905 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -27,7 +27,10 @@ AR = ar
NASM = nasm
NASMOPT = -O9999
RANLIB = ranlib
-CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
+CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os \
+ -fomit-frame-pointer -I../libutil/include -I../include \
+ -D__COM32__ \
+ -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
LNXCFLAGS = -W -Wall -O -g -I../libutil/include
LNXSFLAGS = -g
LNXLDFLAGS = -g
@@ -78,9 +81,11 @@ tidy:
rm -f *.o *.lo *.a *.lst *.elf
clean: tidy
- rm -f *.lss *.c32 *.lnx *.com
+ rm -f *.lss *.c32 *.lnx *.com .*.d
spotless: clean
rm -f *~ \#*
install: # Don't install samples
+
+-include .*.d