Change all COPTS+=-Os to DBG=-Os as that var actually controls the optimization

levels
This commit is contained in:
jmc 2001-10-05 01:17:27 +00:00
parent a938c1418c
commit 0eadbed94d
20 changed files with 40 additions and 40 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2001/08/20 12:19:43 martin Exp $
# $NetBSD: Makefile,v 1.13 2001/10/05 01:17:27 jmc Exp $
# Build a "small init" (i.e. for boot media)
PROG= init
@ -12,7 +12,7 @@ LDSTATIC?=-static
SRCDIR= ${.CURDIR}/../../../sbin/init
CPPFLAGS+= -DLETS_GET_SMALL -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
all: ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:43 martin Exp $
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:28 jmc Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
@ -21,7 +21,7 @@ HACKOBJS+= opendir.o
.endif
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
WARNS= 1
MKPIC= no

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.11 2001/08/20 12:19:43 martin Exp $
# $NetBSD: Makefile.inc,v 1.12 2001/10/05 01:17:28 jmc Exp $
# Include this fragment to build libhack.o
# It is .o and not .a to make sure these are the
# objects you get (and not the ones in libc.a)
@ -14,7 +14,7 @@ libhack.o : $(HACKOBJS)
$(LD) -r -o $@ $(HACKOBJS)
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
# XXX .PATH won't work here, because of crunchgen used in the i386 build

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2001/08/20 12:19:44 martin Exp $
# $NetBSD: Makefile,v 1.11 2001/10/05 01:17:28 jmc Exp $
#
# @(#)Makefile 8.1 (Berkeley) 6/6/93
@ -13,7 +13,7 @@ LDADD= -ltermcap
LDSTATIC?=-static
CPPFLAGS+=-I${.CURDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
beforeinstall:

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.5 2001/08/20 12:19:44 martin Exp $
# $NetBSD: Makefile,v 1.6 2001/10/05 01:17:29 jmc Exp $
# Small Shell (i.e. for boot media)
PROG= ssh
MKMAN= no
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.5 2001/08/20 12:19:44 martin Exp $
# $NetBSD: Makefile,v 1.6 2001/10/05 01:17:29 jmc Exp $
# Tiny ls (i.e. for boot media)
PROG= tls
MKMAN= no
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:44 martin Exp $
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:29 jmc Exp $
# Build a smaller dd (i.e. for boot media)
PROG= dd
@ -11,7 +11,7 @@ SRCS= args.c conv.c dd.c misc.c position.c
CPPFLAGS+= -DNO_CONV -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2001/08/03 14:15:48 drochner Exp $
# $NetBSD: Makefile,v 1.10 2001/10/05 01:17:30 jmc Exp $
PROG= dhclient
MKMAN= no
@ -26,7 +26,7 @@ SRCS+= ${COMSRCS}
CPPFLAGS+=-DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
.if ${MACHINE} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
all: ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/08/20 12:19:44 martin Exp $
# $NetBSD: Makefile,v 1.3 2001/10/05 01:17:30 jmc Exp $
# Build dmesg without kvm support
SRCDIR= ${.CURDIR}/../../../sbin/dmesg
@ -7,7 +7,7 @@ MKMAN= no
LDSTATIC?=-static
CPPFLAGS+= -DSMALL
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
WARNS?= 1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:45 martin Exp $
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:30 jmc Exp $
# Build a smaller ftp (i.e. for boot media)
PROG= ftp
@ -18,7 +18,7 @@ CPPFLAGS+= -DNO_EDITCOMPLETE -DNO_ABOUT -I${SRCDIR}
CPPFLAGS+= -DINET6
.endif
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.4 2001/08/20 12:19:45 martin Exp $
# $NetBSD: Makefile,v 1.5 2001/10/05 01:17:30 jmc Exp $
PROG= gzip
LDADD= -lz
DPADD= ${LIBZ}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2001/08/20 12:19:45 martin Exp $
# $NetBSD: Makefile,v 1.15 2001/10/05 01:17:31 jmc Exp $
# Build a smaller ifconfig (i.e. for boot media)
PROG= ifconfig
@ -10,7 +10,7 @@ CPPFLAGS+= -DINET_ONLY -I${SRCDIR}
CPPFLAGS+= -DINET6
.endif
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/08/20 12:19:45 martin Exp $
# $NetBSD: Makefile,v 1.3 2001/10/05 01:17:31 jmc Exp $
# Build a smaller mount (i.e. for boot media)
PROG= mount
@ -10,7 +10,7 @@ SRCS= mount.c vfslist.c
CPPFLAGS+= -DNO_MOUNT_PROGS -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static
WARNS?= 1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2001/08/20 12:19:45 martin Exp $
# $NetBSD: Makefile,v 1.9 2001/10/05 01:17:31 jmc Exp $
PROG= netstat
SRCS= if.c inet.c main.c mbuf.c route.c
@ -6,7 +6,7 @@ SRCS= if.c inet.c main.c mbuf.c route.c
SRCDIR= ${.CURDIR}/../../../usr.bin/netstat
CPPFLAGS+= -DSMALL -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDADD= -lkvm
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2001/08/20 12:19:46 martin Exp $
# $NetBSD: Makefile,v 1.5 2001/10/05 01:17:31 jmc Exp $
# Build ping without IPSEC
SRCDIR= ${.CURDIR}/../../../sbin/ping
@ -8,7 +8,7 @@ LDADD= -lm
LDSTATIC?=-static
CPPFLAGS+= -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
all: ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2001/08/20 12:19:46 martin Exp $
# $NetBSD: Makefile,v 1.7 2001/10/05 01:17:32 jmc Exp $
# Build ping6 without IPSEC
SRCDIR= ${.CURDIR}/../../../sbin/ping6
@ -8,7 +8,7 @@ MKMAN= no
CPPFLAGS+=-I${SRCDIR}
CPPFLAGS+=-DINET6
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:46 martin Exp $
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:32 jmc Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
PROG= route
@ -11,7 +11,7 @@ CPPFLAGS+= -DSMALL -I${SRCDIR}
CPPFLAGS+= -DINET6
.endif
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2001/08/20 12:19:46 martin Exp $
# $NetBSD: Makefile,v 1.15 2001/10/05 01:17:32 jmc Exp $
# Build a smaller sh (e.g. for boot media)
.include <bsd.own.mk>
@ -9,7 +9,7 @@ SRCDIR= ${.CURDIR}/../../../bin/sh
CPPFLAGS+= -I${SRCDIR} -DSMALL
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/08/20 12:19:46 martin Exp $
# $NetBSD: Makefile,v 1.3 2001/10/05 01:17:32 jmc Exp $
#
# Build umount(8) without network support
#
@ -9,7 +9,7 @@ MKMAN= no
LDSTATIC?=-static
CPPFLAGS+= -DSMALL
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
WARNS?= 1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:47 martin Exp $
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:33 jmc Exp $
# Small zcat (i.e. for install media)
#
# Note: gzio.c is compiled here so that crunchgen will assume
@ -13,7 +13,7 @@ SRCS= zcat.c gzio.c
SRCDIR= ${.CURDIR}/../../../lib/libz
CPPFLAGS+= -I${SRCDIR}
.if ${MACHINE_ARCH} != "sparc64"
COPTS+= -Os
DBG= -Os
.endif
LDSTATIC?=-static