In case CWARNFLAGS and COPTFLAGS are already defined (from /etc/make.conf

for instance), don't nuke them.
This commit is contained in:
Poul-Henning Kamp 1994-10-02 21:50:51 +00:00
parent cc6ed8bf5e
commit 0ff3ad4e5e
3 changed files with 15 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.40 1994/10/01 02:55:56 davidg Exp $
# $Id: Makefile.i386,v 1.41 1994/10/01 21:43:24 rgrimes Exp $
#
# Makefile for FreeBSD
#
@ -42,7 +42,9 @@ S= ../..
.endif
I386= ${S}/i386
.if !defined(CWARNFLAGS)
CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
.endif
#
# The following flag is next up for working on:
# -Wnested-externs
@ -50,7 +52,9 @@ CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
.if !defined(COPTFLAGS)
COPTFLAGS=-O
.endif
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS}
ASFLAGS=

View file

@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.40 1994/10/01 02:55:56 davidg Exp $
# $Id: Makefile.i386,v 1.41 1994/10/01 21:43:24 rgrimes Exp $
#
# Makefile for FreeBSD
#
@ -42,7 +42,9 @@ S= ../..
.endif
I386= ${S}/i386
.if !defined(CWARNFLAGS)
CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
.endif
#
# The following flag is next up for working on:
# -Wnested-externs
@ -50,7 +52,9 @@ CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
.if !defined(COPTFLAGS)
COPTFLAGS=-O
.endif
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS}
ASFLAGS=

View file

@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.40 1994/10/01 02:55:56 davidg Exp $
# $Id: Makefile.i386,v 1.41 1994/10/01 21:43:24 rgrimes Exp $
#
# Makefile for FreeBSD
#
@ -42,7 +42,9 @@ S= ../..
.endif
I386= ${S}/i386
.if !defined(CWARNFLAGS)
CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
.endif
#
# The following flag is next up for working on:
# -Wnested-externs
@ -50,7 +52,9 @@ CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls
# When working on removing warnings from code, the `-Werror' flag should be
# of material assistance.
#
.if !defined(COPTFLAGS)
COPTFLAGS=-O
.endif
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS}
ASFLAGS=