Index: /trunk/source/lisp-kernel/linuxppc/Makefile
===================================================================
--- /trunk/source/lisp-kernel/linuxppc/Makefile	(revision 13601)
+++ /trunk/source/lisp-kernel/linuxppc/Makefile	(revision 13602)
@@ -29,4 +29,5 @@
 # however.
 WFORMAT = -Wno-format
+PLATFORM_H = platform-linuxppc.h
 
 # If the linker supports a "--hash-style=" option, use traditional
@@ -56,5 +57,5 @@
 	$(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
 .c.o:
-	$(CC) -I./ -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) $(PPC32) -o $@
+	$(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) $(PPC32) -o $@
 
 SPOBJ = pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
@@ -71,5 +72,5 @@
 CHEADERS = area.h bits.h ppc-constants.h lisp-errors.h gc.h lisp.h \
 	lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
-	Threads.h ppc-constants32.h ppc-exceptions.h
+	Threads.h ppc-constants32.h ppc-exceptions.h $(PLATFORM_H)
 
 # Subprims linked into the kernel ?
Index: /trunk/source/lisp-kernel/linuxppc64/Makefile
===================================================================
--- /trunk/source/lisp-kernel/linuxppc64/Makefile	(revision 13601)
+++ /trunk/source/lisp-kernel/linuxppc64/Makefile	(revision 13602)
@@ -29,4 +29,5 @@
 # than elsewhere, but most gcc format warnings are still nonsense.
 WFORMAT = -Wno-format
+PLATFORM_H = platform-linuxppc64.h
 
 # If the linker supports a "--hash-style=" option, use traditional
@@ -44,5 +45,5 @@
 	$(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
 .c.o:
-	$(CC) -I./ -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
+	$(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
 
 SPOBJ = pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
@@ -59,5 +60,5 @@
 CHEADERS = area.h bits.h ppc-constants.h lisp-errors.h gc.h lisp.h \
 	lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
-	Threads.h ppc-constants64.h ppc-exceptions.h
+	Threads.h ppc-constants64.h ppc-exceptions.h $(PLATFORM_H)
 
 # Subprims linked into the kernel ?
