From 8c68c4f018248c5fb99a45357122f18a22f5e1c1 Mon Sep 17 00:00:00 2001 From: gmcgarry Date: Fri, 29 Aug 2008 00:02:21 +0000 Subject: [PATCH] Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. --- common/Makefile | 4 ++-- mopd/Makefile | 4 ++-- mopprobe/Makefile | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common/Makefile b/common/Makefile index 80633b6..241a0a4 100644 --- a/common/Makefile +++ b/common/Makefile @@ -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 -.if ${HAVE_GCC} == 4 +.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 || defined(HAVE_PCC) COPTS.print.c+= -Wno-pointer-sign .endif diff --git a/mopd/Makefile b/mopd/Makefile index 26b55e4..0ed1d10 100644 --- a/mopd/Makefile +++ b/mopd/Makefile @@ -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 -.if ${HAVE_GCC} == 4 +.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) COPTS.process.c+= -Wno-pointer-sign .endif diff --git a/mopprobe/Makefile b/mopprobe/Makefile index 05fdc5b..04ed629 100644 --- a/mopprobe/Makefile +++ b/mopprobe/Makefile @@ -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 -.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