diff options
author | mp <mp@FreeBSD.org> | 2001-10-19 00:32:00 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2001-10-19 00:32:00 +0000 |
commit | 06c8b3f4e50a2a70464a598a118476243663a203 (patch) | |
tree | b43d4c68ac2e13854fc122cd036de80b92754f59 /sys/conf/Makefile.powerpc | |
parent | b22126f3d3bf9d22763b5117abce9b870db34e34 (diff) | |
download | FreeBSD-src-06c8b3f4e50a2a70464a598a118476243663a203.zip FreeBSD-src-06c8b3f4e50a2a70464a598a118476243663a203.tar.gz |
Use normal CWARNFLAGS and defines when compiling on FreeBSD.
Diffstat (limited to 'sys/conf/Makefile.powerpc')
-rw-r--r-- | sys/conf/Makefile.powerpc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index a699f46..e530ab6 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -61,9 +61,13 @@ INCLUDES+= -I$S/../include INCLUDES+= -I/usr/include .endif -COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -D__ELF__ -D__FreeBSD__ -include opt_global.h -msoft-float +COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -include opt_global.h +_OS!=uname +.if ${_OS} != "FreeBSD" CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ - -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual + -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual +COPTS+= -D__ELF__ -D__FreeBSD__ -msoft-float +.endif CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} # XXX LOCORE means "don't declare C stuff" not "for locore.s". |