]> git.saurik.com Git - apple/xnu.git/blobdiff - pexpert/conf/Makefile.i386
xnu-792.tar.gz
[apple/xnu.git] / pexpert / conf / Makefile.i386
index c64ebabcc9868cfa936a5e9a80a4d9f1618c6837..f807e9ecb955775378b7523423424a005c75814f 100644 (file)
@@ -1,7 +1,21 @@
 ######################################################################
 #BEGIN  Machine dependent Makefile fragment for i386
 ######################################################################
-CFLAGS += -DNCPUS=2 
+
+# Enable -Werror for i386 builds
+CFLAGS+= $(WERROR)
+CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
+
+# Objects that don't compile cleanly:
+OBJS_NO_WERROR=                \
+       ioconf.o        \
+       bootargs.o      \
+       device_tree.o
+
+OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
+
+$(OBJS_WERROR):                WERROR=-Werror
+
 ######################################################################
 #END    Machine dependent Makefile fragment for i386
 ######################################################################