summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 14:59:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-05-24 14:59:17 +0000
commit692ae6fe82dd7e240b408d4ac6bb900a9e450ac0 (patch)
treec99785bbaccc3c8595e5e85bafd04c13fccb569e /sys/arch/aviion
parent49384741ccb14f3d28d08ccd3395dfcabeee2828 (diff)
Reduce differences between the Makefile.* files for all architectures.
ok various people, tested by fewer people, tested by me on 15.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/conf/Makefile.aviion42
1 files changed, 18 insertions, 24 deletions
diff --git a/sys/arch/aviion/conf/Makefile.aviion b/sys/arch/aviion/conf/Makefile.aviion
index 811560cc900..04d0c1fff15 100644
--- a/sys/arch/aviion/conf/Makefile.aviion
+++ b/sys/arch/aviion/conf/Makefile.aviion
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.aviion,v 1.21 2010/04/28 15:31:32 deraadt Exp $
+# $OpenBSD: Makefile.aviion,v 1.22 2010/05/24 14:59:15 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -12,7 +12,7 @@
MKDEP?= mkdep
SIZE?= size
-STRIP?= strip
+STRIP?= strip
# source tree is located via $S relative to the compilation directory
.ifndef S
@@ -25,18 +25,22 @@ _machdir?= $S/arch/${_mach}
_archdir?= $S/arch/${_arch}
INCLUDES= -nostdinc -I. -I$S -I$S/arch
-CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D${_mach} -Dm88k
-CWARNFLAGS= -Wall -Werror -Wmissing-prototypes \
- -Wno-uninitialized -Wno-format -Wno-main -Wstrict-prototypes \
+CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__
+CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+ -Wno-main -Wno-uninitialized -Wno-format \
-Wstack-larger-than-2047 -Wvariable-decl
-CMACHFLAGS= -mno-check-zero-division -mmemcpy \
- -fno-builtin-printf -fno-builtin-log
+
+CMACHFLAGS= -mno-check-zero-division -mmemcpy
+CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
+ -fno-builtin-vsnprintf -fno-builtin-log \
+ -fno-builtin-log2 -fno-builtin-malloc
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif
+
COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
-AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE ${CMACHFLAGS}
+AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS}
# Kernel is linked as a ZMAGIC executable, with start at 10020
#LINKFLAGS= -N -Ttext 0x1000 -e start
LINKFLAGS= -Ttext 0x1000 -e start
@@ -49,22 +53,13 @@ DB_STRUCTINFO=
.endif
HOSTCC?= ${CC}
-HOSTED_CPPFLAGS?=${CPPFLAGS:S/^-nostdinc$//}
-HOSTED_CFLAGS?= ${CFLAGS}
-
-### CPU configuration
-
-# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
-# where TYPE is NORMAL, or PROFILE}; SUFFIX is the file suffix,
-# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
-# is marked as config-dependent.
+HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
+HOSTED_CFLAGS= ${CFLAGS}
+HOSTED_C= ${HOSTCC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
NORMAL_C_NOP= ${CC} ${CFLAGS} ${CPPFLAGS} -c $<
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
-
-HOSTED_C= ${HOSTCC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
-
PROFILE_C= ${CC} -S -c ${CFLAGS} ${CPPFLAGS} $<; \
sed -e s/_mcount/mcount/ -e s/subrmcount/subr_mcount/ <$*.s | \
${AS} -o $@; \
@@ -125,14 +120,13 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
clean::
- rm -f eddep *bsd bsd.gdb tags *.[io] [a-z]*.s \
+ rm -f eddep *bsd *bsd.gdb tags *.[io] [a-z]*.s \
[Ee]rrs linterrs makelinks assym.h ${DB_STRUCTINFO}
lint:
- @lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} ${PARAM} -UKGDB \
+ @lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
${CFILES} ioconf.c param.c | \
- grep -v 'struct/union .* never defined' | \
- grep -v 'possible pointer alignment problem'
+ grep -v 'static function .* unused'
tags:
@echo "see $S/kern/Makefile for tags"