summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/conf
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-01-16 04:04:37 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-01-16 04:04:37 +0000
commit44d017900d1fa86842c5c61f42dc8b9c251362f6 (patch)
tree19d026477b44457a45b2f971cb61deb77cf7b42a /sys/arch/sun3/conf
parentabd2051d67a709d535a48746b4ff8bea263fabdb (diff)
all modified code can now compile with -Werror -Wall -Wstrict-prototypes
CAVEAT: turning off -O2 produces warnings about "defined but not used" functions from libkern.h removed internal copy of gets() replaced with call to getsn() fixed #ifdef ... #endif mismatch in swapgeneric.c fixed printf() in if_ie.c that was missing an argument fixed si.c so that it compiles added tags to all edited files
Diffstat (limited to 'sys/arch/sun3/conf')
-rw-r--r--sys/arch/sun3/conf/Makefile.sun317
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/sun3/conf/Makefile.sun3 b/sys/arch/sun3/conf/Makefile.sun3
index ae4def43679..5a4a80f0b77 100644
--- a/sys/arch/sun3/conf/Makefile.sun3
+++ b/sys/arch/sun3/conf/Makefile.sun3
@@ -37,8 +37,8 @@ INCLUDES= -I. -I$S/arch -I$S -nostdinc
XDEFS= -undef -D__OpenBSD__ -Dm68k -Dmc68000
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL \
-Dmc68020 -Dsun3 ${XDEFS}
-CWARNFLAGS= -Werror # -Wall -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
+CWARNFLAGS= -Werror -# Wall -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float -pipe
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -N -Ttext 0E004000 -e start
STRIPFLAGS= -d
@@ -105,11 +105,14 @@ LINKFLAGS+= -S
assym.h: genassym
./genassym >assym.h
-genassym: genassym.o
- ${CC} -o $@ genassym.o
-
-genassym.o: ${SUN3}/sun3/genassym.c
- ${HOSTED_C}
+# Doing a cross-build of this is very tricky, and very dependent
+# on compatibility of things like structure member alignment in
+# the compiler used as HOSTED_CC (must match the native compiler).
+# Often this is not possible at all, and you just have to build
+# the assym.h file by hand on some other machine. -gwr
+genassym: ${SUN3}/sun3/genassym.c
+ ${CC} ${CPPFLAGS} -E $< > $@.i
+ ${HOSTED_CC} -o $@ $@.i
param.c: $S/conf/param.c
rm -f param.c