1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

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
This commit is contained in:
Dima Dorfman 2001-09-05 20:10:59 +00:00
parent a950ae8393
commit f328d583a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83112
6 changed files with 10 additions and 9 deletions

View File

@ -28,7 +28,7 @@ DPADD= ${LIBIPX}
LDADD= -lipx LDADD= -lipx
.endif .endif
COPTS= -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \ CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
-Wnested-externs -I.. -Wnested-externs -I..
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -4,9 +4,9 @@
PROG= ping PROG= ping
MAN= ping.8 MAN= ping.8
BINMODE=4555 BINMODE=4555
COPTS+= -Wall -Wmissing-prototypes CFLAGS+=-Wall -Wmissing-prototypes
.if ${MACHINE_ARCH} == "alpha" .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 .endif
DPADD= ${LIBM} DPADD= ${LIBM}
LDADD= -lm LDADD= -lm

View File

@ -22,11 +22,11 @@ LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.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 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
#Some people need this, uncomment to activate #Some people need this, uncomment to activate
#COPTS+= -DRESTRICT_FULLNAME_CHANGE #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD} DPADD= ${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+= -lrpcsvc -lcrypt -lmd LDADD+= -lrpcsvc -lcrypt -lmd

View File

@ -2,6 +2,6 @@
# $FreeBSD$ # $FreeBSD$
PROG= logger PROG= logger
COPTS+= -DINET6 CFLAGS+=-DINET6
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
PROG= split PROG= split
COPTS+= -Wall CFLAGS+=-Wall
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -9,8 +9,8 @@ MLINKS= inetd.8 inetd.conf.5
SRCS= inetd.c builtins.c SRCS= inetd.c builtins.c
#WARNS?= 2 #WARNS?= 2
COPTS+= -DLOGIN_CAP CFLAGS+= -DLOGIN_CAP
#COPTS+= -DSANITY_CHECK #CFLAGS+= -DSANITY_CHECK
DPADD= ${LIBUTIL} ${LIBWRAP} DPADD= ${LIBUTIL} ${LIBWRAP}
LDADD= -lutil -lwrap LDADD= -lutil -lwrap