summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-09-05 20:10:59 +0000
committerdd <dd@FreeBSD.org>2001-09-05 20:10:59 +0000
commit91ffaa180c9fedbda554ad6af11ab9fa3c25995e (patch)
treedaeeec3a70e25abbb362be816bcbe28a07febf84
parent860ee32ac40bb6e9ceb0f6e2000eccd8e9ed3755 (diff)
downloadFreeBSD-src-91ffaa180c9fedbda554ad6af11ab9fa3c25995e.zip
FreeBSD-src-91ffaa180c9fedbda554ad6af11ab9fa3c25995e.tar.gz
Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde
-rw-r--r--sbin/ifconfig/Makefile2
-rw-r--r--sbin/ping/Makefile4
-rw-r--r--usr.bin/chpass/Makefile4
-rw-r--r--usr.bin/logger/Makefile2
-rw-r--r--usr.bin/split/Makefile3
-rw-r--r--usr.sbin/inetd/Makefile4
6 files changed, 10 insertions, 9 deletions
diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile
index fd60e06..08d130c 100644
--- a/sbin/ifconfig/Makefile
+++ b/sbin/ifconfig/Makefile
@@ -28,7 +28,7 @@ DPADD= ${LIBIPX}
LDADD= -lipx
.endif
-COPTS= -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
+CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
-Wnested-externs -I..
.include <bsd.prog.mk>
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index 1cb5d07..45ca449 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -4,9 +4,9 @@
PROG= ping
MAN= ping.8
BINMODE=4555
-COPTS+= -Wall -Wmissing-prototypes
+CFLAGS+=-Wall -Wmissing-prototypes
.if ${MACHINE_ARCH} == "alpha"
-COPTS+= -fno-builtin # GCC's builtin memcpy doesn't do unaligned copies
+CFLAGS+=-fno-builtin # GCC's builtin memcpy doesn't do unaligned copies
.endif
DPADD= ${LIBM}
LDADD= -lm
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 8b2db0b..3930873 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -22,11 +22,11 @@ LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
-COPTS+= -DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
+CFLAGS+=-DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
#Some people need this, uncomment to activate
-#COPTS+= -DRESTRICT_FULLNAME_CHANGE
+#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+= -lrpcsvc -lcrypt -lmd
diff --git a/usr.bin/logger/Makefile b/usr.bin/logger/Makefile
index 163cdec..48c5251 100644
--- a/usr.bin/logger/Makefile
+++ b/usr.bin/logger/Makefile
@@ -2,6 +2,6 @@
# $FreeBSD$
PROG= logger
-COPTS+= -DINET6
+CFLAGS+=-DINET6
.include <bsd.prog.mk>
diff --git a/usr.bin/split/Makefile b/usr.bin/split/Makefile
index ffac658..3b55092 100644
--- a/usr.bin/split/Makefile
+++ b/usr.bin/split/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
+# $FreeBSD$
PROG= split
-COPTS+= -Wall
+CFLAGS+=-Wall
.include <bsd.prog.mk>
diff --git a/usr.sbin/inetd/Makefile b/usr.sbin/inetd/Makefile
index 2e1d831..cf82f76 100644
--- a/usr.sbin/inetd/Makefile
+++ b/usr.sbin/inetd/Makefile
@@ -9,8 +9,8 @@ MLINKS= inetd.8 inetd.conf.5
SRCS= inetd.c builtins.c
#WARNS?= 2
-COPTS+= -DLOGIN_CAP
-#COPTS+= -DSANITY_CHECK
+CFLAGS+= -DLOGIN_CAP
+#CFLAGS+= -DSANITY_CHECK
DPADD= ${LIBUTIL} ${LIBWRAP}
LDADD= -lutil -lwrap
OpenPOWER on IntegriCloud