Centralized the definition of CWARNFLAGS into bsd.kern.mk.
This commit is contained in:
+4
-4
@@ -1,10 +1,10 @@
|
||||
# $Id: Makefile,v 1.11 1996/06/24 04:23:51 jkh Exp $
|
||||
# $Id: Makefile,v 1.12 1996/09/05 18:05:05 bde Exp $
|
||||
# From: @(#)Makefile 8.1 (Berkeley) 6/8/93
|
||||
|
||||
FILES= bsd.README
|
||||
FILES+= bsd.dep.mk bsd.doc.mk bsd.info.mk bsd.kmod.mk bsd.obj.mk
|
||||
FILES+= bsd.lib.mk bsd.libnames.mk bsd.man.mk bsd.own.mk bsd.port.mk
|
||||
FILES+= bsd.port.subdir.mk bsd.prog.mk bsd.sgml.mk bsd.subdir.mk
|
||||
FILES+= bsd.dep.mk bsd.doc.mk bsd.info.mk bsd.kern.mk bsd.kmod.mk
|
||||
FILES+= bsd.lib.mk bsd.libnames.mk bsd.man.mk bsd.obj.mk bsd.own.mk
|
||||
FILES+= bsd.port.mk bsd.port.subdir.mk bsd.prog.mk bsd.sgml.mk bsd.subdir.mk
|
||||
FILES+= sys.mk
|
||||
NOOBJ= noobj
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.27 1996/10/06 22:10:35 wosch Exp $
|
||||
#
|
||||
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
|
||||
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
|
||||
@@ -98,10 +98,6 @@ MODUNLOAD?= /sbin/modunload
|
||||
# ${.CURDIR}/../../sys. We don't bother adding a .PATH since nothing
|
||||
# actually lives in /sys directly.
|
||||
#
|
||||
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Winline -Wunused -Wpointer-arith
|
||||
|
||||
CFLAGS+=${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL -I${.CURDIR}/../../sys \
|
||||
${CWARNFLAGS}
|
||||
|
||||
@@ -217,3 +213,4 @@ vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.dep.mk>
|
||||
.include <bsd.kern.mk>
|
||||
|
||||
+3
-11
@@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.87 1996/08/31 14:47:08 bde Exp $
|
||||
# $Id: Makefile.i386,v 1.88 1996/09/27 16:34:16 bde Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@@ -26,16 +26,6 @@ S= ../..
|
||||
.endif
|
||||
I386= ${S}/i386
|
||||
|
||||
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Winline -Wunused -Wpointer-arith
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
# -Wall
|
||||
#
|
||||
# When working on removing warnings from code, the `-Werror' flag should be
|
||||
# of material assistance.
|
||||
#
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
@@ -186,6 +176,8 @@ vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
|
||||
.include <bsd.kern.mk>
|
||||
|
||||
%RULES
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend uses it
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.87 1996/08/31 14:47:08 bde Exp $
|
||||
# $Id: Makefile.i386,v 1.88 1996/09/27 16:34:16 bde Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@@ -26,16 +26,6 @@ S= ../..
|
||||
.endif
|
||||
I386= ${S}/i386
|
||||
|
||||
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Winline -Wunused -Wpointer-arith
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
# -Wall
|
||||
#
|
||||
# When working on removing warnings from code, the `-Werror' flag should be
|
||||
# of material assistance.
|
||||
#
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
@@ -186,6 +176,8 @@ vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
|
||||
.include <bsd.kern.mk>
|
||||
|
||||
%RULES
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend uses it
|
||||
|
||||
+2
-5
@@ -1,5 +1,5 @@
|
||||
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
|
||||
# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $
|
||||
# $Id: bsd.kmod.mk,v 1.27 1996/10/06 22:10:35 wosch Exp $
|
||||
#
|
||||
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
|
||||
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
|
||||
@@ -98,10 +98,6 @@ MODUNLOAD?= /sbin/modunload
|
||||
# ${.CURDIR}/../../sys. We don't bother adding a .PATH since nothing
|
||||
# actually lives in /sys directly.
|
||||
#
|
||||
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Winline -Wunused -Wpointer-arith
|
||||
|
||||
CFLAGS+=${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL -I${.CURDIR}/../../sys \
|
||||
${CWARNFLAGS}
|
||||
|
||||
@@ -217,3 +213,4 @@ vnode_if.h: ${KERN}/vnode_if.sh ${KERN}/vnode_if.src
|
||||
|
||||
.include <bsd.obj.mk>
|
||||
.include <bsd.dep.mk>
|
||||
.include <bsd.kern.mk>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.87 1996/08/31 14:47:08 bde Exp $
|
||||
# $Id: Makefile.i386,v 1.88 1996/09/27 16:34:16 bde Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@@ -26,16 +26,6 @@ S= ../..
|
||||
.endif
|
||||
I386= ${S}/i386
|
||||
|
||||
CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
|
||||
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Winline -Wunused -Wpointer-arith
|
||||
#
|
||||
# The following flags are next up for working on:
|
||||
# -Wall
|
||||
#
|
||||
# When working on removing warnings from code, the `-Werror' flag should be
|
||||
# of material assistance.
|
||||
#
|
||||
COPTFLAGS?=-O
|
||||
INCLUDES= -nostdinc -I- -I. -I$S
|
||||
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
|
||||
@@ -186,6 +176,8 @@ vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
|
||||
.include <bsd.kern.mk>
|
||||
|
||||
%RULES
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend uses it
|
||||
|
||||
Reference in New Issue
Block a user