Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.

This commit is contained in:
gmcgarry 2008-08-29 00:02:21 +00:00
parent 78effd319d
commit 8c68c4f018
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2008/05/03 14:48:32 lukem Exp $
# $NetBSD: Makefile,v 1.12 2008/08/29 00:02:25 gmcgarry Exp $
LIBISPRIVATE= yes
@ -14,6 +14,6 @@ version.c: VERSION
.include <bsd.lib.mk>
.if ${HAVE_GCC} == 4
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 || defined(HAVE_PCC)
COPTS.print.c+= -Wno-pointer-sign
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2006/05/12 01:54:57 mrg Exp $
# $NetBSD: Makefile,v 1.10 2008/08/29 00:02:25 gmcgarry Exp $
PROG= mopd
SRCS= mopd.c process.c
@ -9,6 +9,6 @@ DPADD+= ${LIBUTIL}
.include <bsd.prog.mk>
.if ${HAVE_GCC} == 4
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
COPTS.process.c+= -Wno-pointer-sign
.endif

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.7 2006/05/12 01:54:57 mrg Exp $
# $NetBSD: Makefile,v 1.8 2008/08/29 00:02:25 gmcgarry Exp $
PROG= mopprobe
.include <bsd.prog.mk>
.if ${HAVE_GCC} == 4
COPTS+= -Wno-pointer-sign
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
COPTS.mopprobe.c+= -Wno-pointer-sign
.endif