powerpc: Add configurable -Werror for arch/powerpc
[safe/jmp/linux-2.6] / arch / powerpc / xmon / Makefile
index 9cb03b7..85ab97a 100644 (file)
@@ -1,5 +1,7 @@
 # Makefile for xmon
 
+subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+
 ifdef CONFIG_PPC64
 EXTRA_CFLAGS += -mno-minimal-toc
 endif