+# Enable -Werror for ppc builds
+CFLAGS+= $(WERROR)
+CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
+
+# Objects that don't compile cleanly:
+OBJS_NO_WERROR= \
+ AppleMacIO.cpo
+
+OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
+
+$(OBJS_WERROR): WERROR=-Werror
+
+# Files that must go in the __HIB segment:
+UNCONFIGURED_HIB_FILES= \
+ IOHibernateRestoreKernel.o \
+ WKdmDecompress.o
+
+HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
+