summaryrefslogtreecommitdiff
path: root/sys/arch/vax/conf
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 23:19:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 23:19:23 +0000
commit322a44485237bb2fc1a12a264e4d7cf57a78d441 (patch)
tree8452494180a3f1d23730d8944ce58038fd9c92cf /sys/arch/vax/conf
parent0ccec1ff031912117defc6f4448f98e639d5a613 (diff)
give up on -Wvariable-decl
delete the archaic links: target which is easily misused handle special .[sS] files in a portable way
Diffstat (limited to 'sys/arch/vax/conf')
-rw-r--r--sys/arch/vax/conf/Makefile.vax24
1 files changed, 7 insertions, 17 deletions
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index b4b524d9528..0f4a1c341a0 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.vax,v 1.50 2010/05/24 19:58:51 deraadt Exp $
+# $OpenBSD: Makefile.vax,v 1.51 2010/05/24 23:19:22 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -28,7 +28,7 @@ INCLUDES= -nostdinc -I. -I$S -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wno-main -Wno-uninitialized -Wno-format \
- -Wstack-larger-than-2047 -Wvariable-decl
+ -Wstack-larger-than-2047
CMACHFLAGS=
CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
@@ -116,30 +116,21 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
clean::
rm -f eddep *bsd *bsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks assym.h ${DB_STRUCTINFO}
+ [Ee]rrs linterrs assym.h ${DB_STRUCTINFO}
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
- ${CFILES} ioconf.c param.c ${_machdir}/${_mach}/Locore.c | \
+ ${CFILES} ioconf.c param.c | \
grep -v 'static function .* unused'
tags:
@echo "see $S/kern/Makefile for tags"
-links:
- egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
- sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
- echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
- sort -u | comm -23 - dontlink | \
- sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
- sh makelinks && rm -f dontlink makelinks
-
-SRCS= ${_machdir}/${_mach}/intvec.s ${_machdir}/${_mach}/subr.s \
- param.c ioconf.c ${CFILES} ${SFILES}
-
+AFILES= ${_machdir}/${_mach}/intvec.s ${_machdir}/${_mach}/subr.s
+SRCS= ${AFILES} param.c ioconf.c ${CFILES} ${SFILES}
depend:: .depend
.depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO}
- ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${_machdir}/${_mach}/intvec.s ${_machdir}/${_mach}/subr.s
+ ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
.if !empty(SFILES)
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
@@ -155,7 +146,6 @@ db_structinfo.h: $S/ddb/db_structinfo.c $S/ddb/parse_structinfo.awk
objdump -g db_structinfo.o | awk -f $S/ddb/parse_structinfo.awk > $@
rm -f db_structinfo.o
-
intvec.o: ${_machdir}/${_mach}/intvec.s assym.h
${NORMAL_S}