diff arogue5/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/arogue5/Makefile.in	Sun Mar 06 17:09:17 2016 -0500
+++ b/arogue5/Makefile.in	Tue Mar 08 19:45:41 2016 -0500
@@ -58,11 +58,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): $(OBJS)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@