diff xrogue/Makefile.in @ 232:bac2c81fec78

Makefiles: don't rely on built-in implicit rules. Not all make implementations will use CPPFLAGS when compiling C files.
author John "Elwin" Edwards
date Tue, 08 Mar 2016 19:45:41 -0500
parents 455464db5800
children 0b3d1b38998f
line wrap: on
line diff
--- a/xrogue/Makefile.in	Sun Mar 06 17:09:17 2016 -0500
+++ b/xrogue/Makefile.in	Tue Mar 08 19:45:41 2016 -0500
@@ -57,11 +57,14 @@
 RM    = rm -f
 TAR   = tar 
 INSTALL=@INSTALL@
-.SUFFIXES: .obj
+.SUFFIXES: .obj .o .c
 
 .c.obj:
 	$(CC) $(CFLAGS) /c $*.c
 
+.c.o:
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
+
 $(PROGRAM): $(HDRS) $(OBJS)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@