summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bcd/Makefile4
-rw-r--r--hack/Makefile7
-rw-r--r--pom/Makefile4
3 files changed, 10 insertions, 5 deletions
diff --git a/bcd/Makefile b/bcd/Makefile
index a68c5d0d..0dddf59c 100644
--- a/bcd/Makefile
+++ b/bcd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2008/07/12 12:31:20 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.7 2008/08/29 00:02:22 gmcgarry Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= bcd
@@ -8,6 +8,6 @@ HIDEGAME=hidegame
.include <bsd.prog.mk>
-.if ${HAVE_GCC} == 4 || defined(HAVE_PCC)
+.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
COPTS.bcd.c+= -Wno-pointer-sign
.endif
diff --git a/hack/Makefile b/hack/Makefile
index a84500b2..fe787747 100644
--- a/hack/Makefile
+++ b/hack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2006/02/25 11:56:51 simonb Exp $
+# $NetBSD: Makefile,v 1.41 2008/08/29 00:02:22 gmcgarry Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk>
@@ -37,6 +37,11 @@ makedefs: makedefs.lo
hack.h: hack.onames.h
+.if defined(HAVE_PCC)
+COPTS.hack.bones.c+= -Wno-shadow
+COPTS.hack.do.c+= -Wno-shadow
+.endif
+
.if !exists(${DESTDIR}${FILESDIR}/perm)
afterinstall: clobber
.endif
diff --git a/pom/Makefile b/pom/Makefile
index a6b3665e..159ba921 100644
--- a/pom/Makefile
+++ b/pom/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2008/07/12 12:31:20 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.7 2008/08/29 00:02:22 gmcgarry Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= pom
@@ -8,6 +8,6 @@ LDADD= -lm
.include <bsd.prog.mk>
-.if ${HAVE_GCC} == 4 || defined(HAVE_PCC)
+.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
COPTS.pom.c+= -Wno-pointer-sign
.endif