aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-03-03 20:18:10 -0800
commit03abbde81db7484ccdb4e1808881e1df20df2fb0 (patch)
tree6d9722ba6c8373122bb86c7562ac8cd5c6ed1598 /com32/libutil/Makefile
parent763bb1f82a4519bdf240fd5d43f7e776c0d5206f (diff)
downloadsyslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.gz
syslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.tar.xz
syslinux-03abbde81db7484ccdb4e1808881e1df20df2fb0.zip
Prevent inclusion of system include files when inappropriate
Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
Diffstat (limited to 'com32/libutil/Makefile')
-rw-r--r--com32/libutil/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/com32/libutil/Makefile b/com32/libutil/Makefile
index 426c3335..d9f2a6c8 100644
--- a/com32/libutil/Makefile
+++ b/com32/libutil/Makefile
@@ -42,7 +42,11 @@ AR = ar
NASM = nasm
NASMOPT = -O9999
RANLIB = ranlib
-CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -D__COM32__ -W -Wall -march=i386 -Os -fomit-frame-pointer -I./include -I../include
+CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os \
+ -fomit-frame-pointer -D__COM32__ \
+ -nostdinc -iwithprefix include \
+ -I./include -I../include \
+ -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d
SFLAGS = $(M32) -D__COM32__ -march=i386
LDFLAGS = -T ../lib/com32.ld
LNXCFLAGS = -I./include -W -Wall -O -g -D_GNU_SOURCE
@@ -112,3 +116,5 @@ spotless: clean
install: all
mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
install -m 644 libutil_com.a libutil_lnx.a $(INSTALLROOT)$(COM32DIR)
+
+-include .*.d