summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/conf
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-14 08:51:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-14 08:51:22 +0000
commitfa24605dbc4c61a6d880d52d1469a55c8a002ac3 (patch)
treefa1e1a5c7df0ce6efb9e8e2dbe82293c53c58d00 /sys/arch/hp300/conf
parentc22379bc91ec3e19a4d69b7edb4d305129f0fd15 (diff)
Sync compilation flags definition accross m68k-based arches.
mvme68k still lacks some -Wfoo flags, until it is warnings clean.
Diffstat (limited to 'sys/arch/hp300/conf')
-rw-r--r--sys/arch/hp300/conf/Makefile.hp30015
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300
index 820688bd139..cc79484bbed 100644
--- a/sys/arch/hp300/conf/Makefile.hp300
+++ b/sys/arch/hp300/conf/Makefile.hp300
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hp300,v 1.24 2001/11/25 23:23:45 miod Exp $
+# $OpenBSD: Makefile.hp300,v 1.25 2001/12/14 08:51:19 miod Exp $
# $NetBSD: Makefile.hp300,v 1.54 1997/04/01 23:16:41 scottr Exp $
# Makefile for OpenBSD
@@ -28,7 +28,8 @@ CC?= cc
LD?= ld
MKDEP?= mkdep
STRIP?= strip
-COPTS?= -O2
+TOUCH?= touch -f -c
+COPTS?= -O2
# source tree is located via $S relative to the compilation directory
.ifndef S
@@ -40,14 +41,16 @@ M68K= $S/arch/m68k
INCLUDES= -I. -I$S/arch -I$S -nostdinc
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
-Dmc68020 -Dhp300
-CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wno-uninitialized \
- -Wno-format -Wno-main
-CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float
+CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+ -Wno-uninitialized -Wno-format -Wno-main
+CMACHFLAGS= -msoft-float
+
+CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${CMACHFLAGS}
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -n -Ttext 0 -e start
STRIPFLAGS= -d
-HOSTCC= ${CC}
+HOSTCC?= ${CC}
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
HOSTED_CFLAGS= ${CFLAGS}