Skip to content

Commit

Permalink
- define WARNS?=1 in the top-level Makefile.inc, and don't define
Browse files Browse the repository at this point in the history
  anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
  • Loading branch information
lukem committed Oct 9, 1997
1 parent d0e6584 commit 7b68a23
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 31 deletions.
3 changes: 3 additions & 0 deletions lib/Makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# $NetBSD: Makefile.inc,v 1.1 1997/10/09 14:36:17 lukem Exp $

WARNS?= 1
4 changes: 1 addition & 3 deletions lib/bumpversion
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: bumpversion,v 1.4 1997/01/13 20:32:19 tls Exp $
# $NetBSD: bumpversion,v 1.5 1997/10/09 14:36:17 lukem Exp $
#
# Copyright (c) 1993 Christopher G. Demetriou
# All rights reserved.
Expand Down Expand Up @@ -29,8 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# $Id: bumpversion,v 1.4 1997/01/13 20:32:19 tls Exp $
#

PATH=/bin:/usr/bin
export PATH
Expand Down
6 changes: 1 addition & 5 deletions lib/libc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.69 1997/07/18 10:52:36 veego Exp $
# $NetBSD: Makefile,v 1.70 1997/10/09 14:36:18 lukem Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
Expand All @@ -14,10 +14,6 @@
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CFLAGS line below.

.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "i386" || \
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "m68k"
WARNS=1
.endif
LIB=c
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I${.CURDIR}/include
AINC= -I${.CURDIR}/arch/${MACHINE_ARCH}
Expand Down
3 changes: 1 addition & 2 deletions lib/libcurses/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.15 1997/07/23 03:21:21 mikel Exp $
# $NetBSD: Makefile,v 1.16 1997/10/09 14:36:19 lukem Exp $
# @(#)Makefile 8.2 (Berkeley) 1/2/94

CFLAGS+=#-DTFILE=\"/dev/ttyp0\"
CFLAGS+=-D_CURSES_PRIVATE -I${.CURDIR}
WARNS?= 1
LIB= curses
SRCS= addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \
cr_put.c ctrace.c cur_hash.c curses.c delch.c deleteln.c delwin.c \
Expand Down
3 changes: 1 addition & 2 deletions lib/libedit/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.9 1997/07/06 18:25:21 christos Exp $
# $NetBSD: Makefile,v 1.10 1997/10/09 14:36:20 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93

WARNS= 1
LIB= edit

OSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
Expand Down
5 changes: 1 addition & 4 deletions lib/libkvm.old/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# $NetBSD: Makefile,v 1.6 1997/08/15 02:39:13 mikel Exp $
# $NetBSD: Makefile,v 1.7 1997/10/09 14:36:21 lukem Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93

.PATH: ${.CURDIR}/../libkvm

LIB= kvm
CFLAGS+=-DLIBC_SCCS
CFLAGS+=-I- -I${.CURDIR}
.if (${MACHINE} == "i386")
WARNS?= 1
.endif

# Try most specific name first.
.if exists(kvm_${MACHINE}.c)
Expand Down
3 changes: 1 addition & 2 deletions lib/libntp/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1997/10/09 11:27:47 lukem Exp $
# $NetBSD: Makefile,v 1.4 1997/10/09 14:36:22 lukem Exp $

LIB= ntp
SRCS= a_md512crypt.c a_md5decrypt.c a_md5encrypt.c adjtime.c atoint.c \
Expand All @@ -14,6 +14,5 @@ SRCS= a_md512crypt.c a_md5decrypt.c a_md5encrypt.c adjtime.c atoint.c \
tvtoa.c tvtots.c uglydate.c uinttoa.c utvtoa.c version.c

CFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR}/../../usr.sbin/xntp/include
WARNS?= 1

.include <bsd.lib.mk>
3 changes: 1 addition & 2 deletions lib/librmt/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.3 1997/10/09 11:58:15 lukem Exp $
# $NetBSD: Makefile,v 1.4 1997/10/09 14:36:23 lukem Exp $

LIB= rmt
SRCS= rmtlib.c
MAN= rmtops.3
WARNS?= 1

NOPROFILE=
NOPIC=
Expand Down
5 changes: 3 additions & 2 deletions lib/librpcsvc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.21 1997/05/09 14:22:41 mycroft Exp $

# $NetBSD: Makefile,v 1.22 1997/10/09 14:36:24 lukem Exp $

# XXX WARNS=0 is temporary until rpcgen(1) is fixed
WARNS=0
RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
sm_inter.x spray.x yp.x yppasswd.x
Expand Down
3 changes: 1 addition & 2 deletions lib/libterm/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# $NetBSD: Makefile,v 1.8 1997/10/09 12:01:24 lukem Exp $
# $NetBSD: Makefile,v 1.9 1997/10/09 14:36:25 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93

LIB= termcap
CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
SRCS= termcap.c tgoto.c tputs.c
WARNS?= 1

MAN= termcap.3
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
Expand Down
3 changes: 1 addition & 2 deletions lib/libutil/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# $NetBSD: Makefile,v 1.13 1997/10/09 12:02:42 lukem Exp $
# $NetBSD: Makefile,v 1.14 1997/10/09 14:36:26 lukem Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93

LIB= util
CFLAGS+=-DLIBC_SCCS -Wall -Wstrict-prototypes -Wmissing-prototypes
SRCS= getmaxpartitions.c getrawpartition.c login.c login_tty.c logout.c \
logwtmp.c opendisk.c passwd.c pty.c ttyaction.c ttymsg.c
WARNS?= 1

MAN= getmaxpartitions.3 getrawpartition.3 login.3 opendisk.3 openpty.3 \
pw_init.3 pw_lock.3 ttyaction.3 ttymsg.3
Expand Down
3 changes: 2 additions & 1 deletion lib/libwrap/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# $NetBSD: Makefile,v 1.5 1997/03/24 22:11:58 christos Exp $
# $NetBSD: Makefile,v 1.6 1997/10/09 14:36:28 lukem Exp $

WARNS=0
LIB= wrap

SRCS= hosts_access.c options.c shell_cmd.c rfc931.c eval.c hosts_ctl.c \
Expand Down
3 changes: 1 addition & 2 deletions lib/liby/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.5 1997/10/09 12:08:17 lukem Exp $
# $NetBSD: Makefile,v 1.6 1997/10/09 14:36:29 lukem Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/15/90

LIB= y
SRCS= main.c yyerror.c
NOPIC= nopic
WARNS?= 1

.include <bsd.lib.mk>
3 changes: 1 addition & 2 deletions lib/libz/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# $NetBSD: Makefile,v 1.8 1997/10/09 12:06:58 lukem Exp $
# $NetBSD: Makefile,v 1.9 1997/10/09 14:36:30 lukem Exp $

LIB= z
NOMAN= zlib.3

SRCS= adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \
zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c
WARNS?= 1

CFLAGS+= -I${.CURDIR}

Expand Down

0 comments on commit 7b68a23

Please sign in to comment.