enable WARNS=1 by default, but disable in unclean 3rd party code

This commit is contained in:
lukem 1997-10-18 06:42:25 +00:00
parent 7866707a39
commit f5bf267d90
32 changed files with 67 additions and 68 deletions

View File

@ -1,4 +1,5 @@
# $NetBSD: Makefile.inc,v 1.4 1997/10/17 09:04:18 mrg Exp $ # $NetBSD: Makefile.inc,v 1.5 1997/10/18 06:42:25 lukem Exp $
# from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93 # from: @(#)Makefile.inc 8.1 (Berkeley) 6/6/93
BINDIR?= /usr/sbin BINDIR?= /usr/sbin
WARNS?= 1

View File

@ -1,8 +1,10 @@
# $NetBSD: Makefile.inc,v 1.5 1997/09/26 16:59:42 christos Exp $ # $NetBSD: Makefile.inc,v 1.6 1997/10/18 06:42:28 lukem Exp $
WARNS ?= 1
LIBAMU != cd ${.CURDIR}/../libamu;\ LIBAMU != cd ${.CURDIR}/../libamu;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
CFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H CFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H
LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll
DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL} DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL}
BINDIR = /usr/sbin
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,6 +1,6 @@
#!/usr/local/bin/perl #!/usr/local/bin/perl
# #
# $NetBSD: amd2netbsd,v 1.8 1997/10/16 05:18:42 lukem Exp $ # $NetBSD: amd2netbsd,v 1.9 1997/10/18 06:42:30 lukem Exp $
# #
# Perl script to convert a standard distribution directory for am-utils into # Perl script to convert a standard distribution directory for am-utils into
# a NetBSD source tree. # a NetBSD source tree.
@ -335,7 +335,10 @@ LIBAMU != cd ${.CURDIR}/../libamu;\
CFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H CFLAGS += -I${.CURDIR}/../include -I${.CURDIR} -I${LIBAMU} -I. -DHAVE_CONFIG_H
LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll LDADD += -L${LIBAMU} -lamu -lrpcsvc -ll
DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL} DPADD += ${LIBAMU}/libamu.a ${LIBRPCSVC} ${LIBL}
BINDIR = /usr/sbin
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
%% file usr.sbin/amd/amd/Makefile %% file usr.sbin/amd/amd/Makefile
%% NetBSD # %% NetBSD #

View File

@ -1,11 +1,10 @@
# $NetBSD: Makefile,v 1.6 1997/10/03 05:39:03 mikel Exp $ # $NetBSD: Makefile,v 1.7 1997/10/18 06:42:33 lukem Exp $
.if ${MACHINE} == "i386" .if ${MACHINE} == "i386"
PROG= apm PROG= apm
SRCS= apm.c apmsubr.c SRCS= apm.c apmsubr.c
.PATH: ${.CURDIR}/../apmd .PATH: ${.CURDIR}/../apmd
CFLAGS+=-I${.CURDIR}/../apmd CFLAGS+=-I${.CURDIR}/../apmd
WARNS?= 1
LINKS= ${BINDIR}/apm ${BINDIR}/zzz LINKS= ${BINDIR}/apm ${BINDIR}/zzz
.endif .endif

View File

@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.4 1997/10/03 05:39:05 mikel Exp $ # $NetBSD: Makefile,v 1.5 1997/10/18 06:42:35 lukem Exp $
.if ${MACHINE} == "i386" .if ${MACHINE} == "i386"
PROG= apmd PROG= apmd
SRCS= apmd.c apmsubr.c SRCS= apmd.c apmsubr.c
WARNS?= 1
.endif .endif
MAN= apmd.8 MAN= apmd.8

View File

@ -1,5 +1,6 @@
# $NetBSD: Makefile,v 1.6 1997/03/13 06:19:07 mikel Exp $ # $NetBSD: Makefile,v 1.7 1997/10/18 06:42:37 lukem Exp $
WARNS?= 0
PROG= cron PROG= cron
SRCS= cron.c database.c do_command.c entry.c env.c job.c \ SRCS= cron.c database.c do_command.c entry.c env.c job.c \
misc.c popen.c user.c misc.c popen.c user.c

View File

@ -32,5 +32,6 @@
SUBDIR= common server client relay SUBDIR= common server client relay
.include <bsd.subdir.mk> all-server all-client all-relay: all-common
.include <bsd.subdir.mk>

View File

@ -32,6 +32,8 @@
.include <bsd.obj.mk> .include <bsd.obj.mk>
WARNS?= 0
COBJDIR!=cd $(.CURDIR)/../common; \ COBJDIR!=cd $(.CURDIR)/../common; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@ -39,4 +41,6 @@ CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../includes
LDADD= ${COBJDIR}/libdhcp.a LDADD= ${COBJDIR}/libdhcp.a
DPADD= ${COBJDIR}/libdhcp.a DPADD= ${COBJDIR}/libdhcp.a
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc" .include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.7 1997/05/08 21:11:09 gwr Exp $ # $NetBSD: Makefile,v 1.8 1997/10/18 06:42:41 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/18/93 # @(#)Makefile 8.1 (Berkeley) 6/18/93
WARNS?= 0
PROG= dumplfs PROG= dumplfs
SRCS= dumplfs.c lfs_cksum.c misc.c SRCS= dumplfs.c lfs_cksum.c misc.c
.PATH: ${.CURDIR}/../../sys/ufs/lfs .PATH: ${.CURDIR}/../../sys/ufs/lfs

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90 # from: @(#)Makefile 5.8 (Berkeley) 7/28/90
# $NetBSD: Makefile,v 1.4 1997/09/24 07:22:39 jeremy Exp $ # $NetBSD: Makefile,v 1.5 1997/10/18 06:42:45 lukem Exp $
.if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc" .if ${MACHINE} == "sun3" || ${MACHINE} == "sun3x" || ${MACHINE} == "sparc"
PROG= eeprom PROG= eeprom
@ -22,6 +22,4 @@ CLEANFILES+=getdate.c y.tab.h
MAN= eeprom.8 MAN= eeprom.8
WARNS=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,5 +1,6 @@
# $NetBSD: Makefile.inc,v 1.2 1997/10/17 06:58:41 lukem Exp $ # $NetBSD: Makefile.inc,v 1.3 1997/10/18 06:42:47 lukem Exp $
# from: @(#)Makefile.inc 5.1 (Berkeley) 5/11/90 # from: @(#)Makefile.inc 5.1 (Berkeley) 5/11/90
BINDIR?= /usr/sbin .if exists(${.CURDIR}/../../Makefile.inc)
WARNS?= 1 .include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,12 +1,11 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93 # from: @(#)Makefile 8.1 (Berkeley) 6/6/93
# $NetBSD: Makefile,v 1.12 1997/10/05 16:40:24 mrg Exp $ # $NetBSD: Makefile,v 1.13 1997/10/18 06:42:49 lukem Exp $
PROG= inetd PROG= inetd
MAN= inetd.8 MAN= inetd.8
MLINKS= inetd.8 inetd.conf.5 MLINKS= inetd.8 inetd.conf.5
CFLAGS+=-DLIBWRAP CFLAGS+=-DLIBWRAP
WARNS?= 1
# Use LIBWRAP_INTERNAL for libwrap checking of inetd's `internal' services. # Use LIBWRAP_INTERNAL for libwrap checking of inetd's `internal' services.
#CFLAGS+=-DLIBWRAP_INTERNAL #CFLAGS+=-DLIBWRAP_INTERNAL
LDADD+= -lwrap LDADD+= -lwrap

View File

@ -1,5 +1,5 @@
# $NetBSD: Makefile.inc,v 1.3 1997/09/21 17:02:34 veego Exp $ # $NetBSD: Makefile.inc,v 1.4 1997/10/18 06:42:50 lukem Exp $
WARNS?= 1
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc" .include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 1997/10/10 09:26:35 lukem Exp $ # $NetBSD: Makefile.inc,v 1.3 1997/10/18 06:42:51 lukem Exp $
LIBCOMMON != cd ${.CURDIR}/../common_source;\ LIBCOMMON != cd ${.CURDIR}/../common_source;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@ -6,6 +6,6 @@ CFLAGS+=-I${.CURDIR}/../common_source
DPADD+= ${LIBCOMMON}/libcommon.a DPADD+= ${LIBCOMMON}/libcommon.a
LDADD+= -L${LIBCOMMON} -lcommon LDADD+= -L${LIBCOMMON} -lcommon
WARNS?= 1 .if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.include "../Makefile.inc" .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.6 1997/10/17 10:38:21 lukem Exp $ # $NetBSD: Makefile.inc,v 1.7 1997/10/18 06:42:52 lukem Exp $
LIBCOMMON != cd ${.CURDIR}/../common;\ LIBCOMMON != cd ${.CURDIR}/../common;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@ -6,4 +6,6 @@ CFLAGS+=-I${.CURDIR}/../common
DPADD+= ${LIBKVM} ${LIBCOMMON}/libcommon.a DPADD+= ${LIBKVM} ${LIBCOMMON}/libcommon.a
LDADD+= -lkvm -L${LIBCOMMON} -lcommon LDADD+= -lkvm -L${LIBCOMMON} -lcommon
.include "../Makefile.inc" .if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,9 +1,7 @@
# $NetBSD: Makefile,v 1.13 1997/08/28 08:09:53 lukem Exp $ # $NetBSD: Makefile,v 1.14 1997/10/18 06:42:53 lukem Exp $
# @(#)Makefile 8.3 (Berkeley) 1/25/94 # @(#)Makefile 8.3 (Berkeley) 1/25/94
PROG= mountd PROG= mountd
MAN= exports.5 mountd.8 MAN= exports.5 mountd.8
WARNS?=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.11 1997/09/16 13:07:59 lukem Exp $ # $NetBSD: Makefile,v 1.12 1997/10/18 06:42:54 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
WARNS?= 1
PROG= quotacheck PROG= quotacheck
SRCS= quotacheck.c fsutil.c preen.c SRCS= quotacheck.c fsutil.c preen.c
MAN= quotacheck.8 MAN= quotacheck.8

View File

@ -1,5 +1,6 @@
# $NetBSD: Makefile,v 1.4 1997/03/24 22:02:57 christos Exp $ # $NetBSD: Makefile,v 1.5 1997/10/18 06:42:55 lukem Exp $
WARNS?= 0
PROG= rpc.pcnfsd PROG= rpc.pcnfsd
MAN= pcnfsd.8 MAN= pcnfsd.8
MLINKS= pcnfsd.8 rpc.pcnfsd.8 MLINKS= pcnfsd.8 rpc.pcnfsd.8
@ -12,13 +13,13 @@ DPADD= ${LIBRPCSVC} ${LIBCRYPT}
LDADD= -lrpcsvc -lcrypt LDADD= -lrpcsvc -lcrypt
pcnfsd_svc.c: pcnfsd.x pcnfsd_svc.c: pcnfsd.x
rpcgen -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@ rpcgen -C -s udp -s tcp -I ${.CURDIR}/pcnfsd.x -o $@
pcnfsd_xdr.c: pcnfsd.x pcnfsd_xdr.c: pcnfsd.x
rpcgen -c ${.CURDIR}/pcnfsd.x -o $@ rpcgen -C -c ${.CURDIR}/pcnfsd.x -o $@
pcnfsd.h: pcnfsd.x pcnfsd.h: pcnfsd.x
rpcgen -h ${.CURDIR}/pcnfsd.x -o $@ rpcgen -C -h ${.CURDIR}/pcnfsd.x -o $@
CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h CLEANFILES += pcnfsd_svc.c pcnfsd_xdr.c pcnfsd.h
CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.* CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.*

View File

@ -1,14 +1,14 @@
# $NetBSD: Makefile,v 1.3 1997/07/18 07:47:26 thorpej Exp $ # $NetBSD: Makefile,v 1.4 1997/10/18 06:42:56 lukem Exp $
PROG= rpc.yppasswdd PROG= rpc.yppasswdd
SRCS= rpc.yppasswdd.c yppasswdd_xdr.c yppasswdd_mkpw.c SRCS= rpc.yppasswdd.c yppasswdd_xdr.c yppasswdd_mkpw.c
MAN= rpc.yppasswdd.8 MAN= rpc.yppasswdd.8
BINOWN= root BINOWN= root
BINMODE=555 BINMODE=555
BINDIR=/usr/sbin BINDIR=/usr/sbin
MLINKS= rpc.yppasswdd.8 yppasswdd.8 MLINKS= rpc.yppasswdd.8 yppasswdd.8
DPADD+= ${LIBCRYPT} ${LIBUTIL} DPADD+= ${LIBCRYPT} ${LIBUTIL}
LDADD+= -lcrypt -lutil LDADD+= -lcrypt -lutil
WARNS=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 1997/09/24 07:22:40 jeremy Exp $ # $NetBSD: Makefile,v 1.5 1997/10/18 06:42:57 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93 # @(#)Makefile 8.1 (Berkeley) 5/31/93
.if ${MACHINE} == "pmax" || ${MACHINE} == "sun3" || ${MACHINE} == "sun3x"\ .if ${MACHINE} == "pmax" || ${MACHINE} == "sun3" || ${MACHINE} == "sun3x"\
@ -11,6 +11,4 @@ LDADD= -lm
MAN= screenblank.1 MAN= screenblank.1
WARNS=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.3 1995/09/30 07:12:43 thorpej Exp $ # $NetBSD: Makefile,v 1.4 1997/10/18 06:42:58 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
WARNS?= 0
PROG= sysctl PROG= sysctl
MAN= sysctl.8 MAN= sysctl.8

View File

@ -1,7 +1,6 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93 # from: @(#)Makefile 8.1 (Berkeley) 6/6/93
# $NetBSD: Makefile,v 1.10 1997/07/01 20:50:58 christos Exp $ # $NetBSD: Makefile,v 1.11 1997/10/18 06:42:59 lukem Exp $
WARNS= 1
PROG= syslogd PROG= syslogd
MAN= syslogd.8 syslog.conf.5 MAN= syslogd.8 syslog.conf.5
DPADD+=${LIBUTIL} DPADD+=${LIBUTIL}

View File

@ -1,6 +1,6 @@
# $Netbsd$ # $Netbsd$
WARNS?= 1 WARNS?= 0
PROG= tcpdchk PROG= tcpdchk
SRCS= tcpdchk.c fakelog.c inetcf.c scaffold.c percent_m.c SRCS= tcpdchk.c fakelog.c inetcf.c scaffold.c percent_m.c
MAN= tcpdchk.8 MAN= tcpdchk.8

View File

@ -1,6 +1,6 @@
# $Netbsd$ # $Netbsd$
WARNS?= 1 WARNS?= 0
PROG= tcpdmatch PROG= tcpdmatch
SRCS= tcpdmatch.c fakelog.c inetcf.c scaffold.c percent_m.c SRCS= tcpdmatch.c fakelog.c inetcf.c scaffold.c percent_m.c
MAN= tcpdmatch.8 MAN= tcpdmatch.8

View File

@ -1,6 +1,5 @@
# $NetBSD: Makefile,v 1.8 1997/10/03 19:54:09 christos Exp $ # $NetBSD: Makefile,v 1.9 1997/10/18 06:43:03 lukem Exp $
WARNS?= 1
PROG= tcpdump PROG= tcpdump
MAN= tcpdump.8 MAN= tcpdump.8

View File

@ -1,6 +1,5 @@
# $NetBSD: Makefile,v 1.6 1997/10/04 16:31:24 christos Exp $ # $NetBSD: Makefile,v 1.7 1997/10/18 06:43:04 lukem Exp $
WARNS?= 1
PROG= traceroute PROG= traceroute
MAN= traceroute.8 MAN= traceroute.8

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
# $NetBSD: Makefile,v 1.5 1997/07/23 08:19:59 thorpej Exp $ # $NetBSD: Makefile,v 1.6 1997/10/18 06:43:06 lukem Exp $
PROG= trpt PROG= trpt
MAN= trpt.8 MAN= trpt.8
@ -10,6 +10,4 @@ BINMODE=2555
DPADD= ${LIBKVM} DPADD= ${LIBKVM}
LDADD= -lkvm LDADD= -lkvm
WARNS=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 1997/07/23 18:20:46 thorpej Exp $ # $NetBSD: Makefile,v 1.6 1997/10/18 06:43:08 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= trsp PROG= trsp
@ -10,7 +10,5 @@ BINMODE=2555
DPADD= ${LIBKVM} DPADD= ${LIBKVM}
LDADD= -lkvm LDADD= -lkvm
WARNS=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.12 1997/10/06 00:52:51 lukem Exp $ # $NetBSD: Makefile,v 1.13 1997/10/18 06:43:09 lukem Exp $
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90 # from: @(#)Makefile 5.8 (Berkeley) 7/28/90
PROG= ypbind PROG= ypbind
MAN= ypbind.8 MAN= ypbind.8
CFLAGS+=-DHEURISTIC CFLAGS+=-DHEURISTIC
WARNS?=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.10 1997/10/06 00:57:08 lukem Exp $ # $NetBSD: Makefile,v 1.11 1997/10/18 06:43:10 lukem Exp $
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90 # from: @(#)Makefile 5.8 (Berkeley) 7/28/90
PROG= yppoll PROG= yppoll
MAN= yppoll.8 MAN= yppoll.8
WARNS?=1
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 1997/10/02 14:16:14 lukem Exp $ # $NetBSD: Makefile.inc,v 1.3 1997/10/18 06:43:11 lukem Exp $
LIBCOMMON != cd ${.CURDIR}/../common;\ LIBCOMMON != cd ${.CURDIR}/../common;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@ -6,5 +6,6 @@ CFLAGS+=-I${.CURDIR}/../common
DPADD+= ${LIBCOMMON}/libcommon.a DPADD+= ${LIBCOMMON}/libcommon.a
LDADD+= -L${LIBCOMMON} -lcommon LDADD+= -L${LIBCOMMON} -lcommon
BINDIR?=/usr/sbin .if exists(${.CURDIR}/../../Makefile.inc)
WARNS?= 1 .include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.9 1997/10/06 00:33:18 lukem Exp $ # $NetBSD: Makefile,v 1.10 1997/10/18 06:43:14 lukem Exp $
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90 # from: @(#)Makefile 5.8 (Berkeley) 7/28/90
PROG= ypset PROG= ypset
MAN= ypset.8 MAN= ypset.8
WARNS?=1
.include <bsd.prog.mk> .include <bsd.prog.mk>