aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples
diff options
context:
space:
mode:
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