]> Zhao Yanbai Git Server - minix.git/commitdiff
force gcc to look in ../../../include before /usr/local/include
authorBen Gras <ben@minix3.org>
Sun, 20 Jun 2010 12:32:41 +0000 (12:32 +0000)
committerBen Gras <ben@minix3.org>
Sun, 20 Jun 2010 12:32:41 +0000 (12:32 +0000)
commands/grep/Makefile

index 692540d25e9821affd54f47e3f0d5d9bf6db9156..34c9fb4817c9e11e04b0a030b53ce844c96f89d4 100644 (file)
@@ -15,13 +15,15 @@ MLINKS= grep.1 egrep.1 \
        grep.1 zegrep.1 \
        grep.1 zfgrep.1
 
-CFLAGS+= -Wall
-
 LDADD=  -lz
 DPADD=  ${LIBZ}
 
+.if ${COMPILER_TYPE} == "gnu"
+CFLAGS+= -Wall
+CPPFLAGS+= -isystem ../../../include
+.endif
+
 .if ${OPSYS} == "Minix"
-CPPFLAGS+= -D_POSIX_SOURCE -D_MINIX
 .include <minix.prog.mk>
 .else
 .include <bsd.prog.mk>