comparison 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
comparison
equal deleted inserted replaced
231:455464db5800 232:bac2c81fec78
55 CFLAGS= 55 CFLAGS=
56 LIBS = @LIBS@ 56 LIBS = @LIBS@
57 RM = rm -f 57 RM = rm -f
58 TAR = tar 58 TAR = tar
59 INSTALL=@INSTALL@ 59 INSTALL=@INSTALL@
60 .SUFFIXES: .obj 60 .SUFFIXES: .obj .o .c
61 61
62 .c.obj: 62 .c.obj:
63 $(CC) $(CFLAGS) /c $*.c 63 $(CC) $(CFLAGS) /c $*.c
64
65 .c.o:
66 $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
64 67
65 $(PROGRAM): $(HDRS) $(OBJS) 68 $(PROGRAM): $(HDRS) $(OBJS)
66 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ 69 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
67 70
68 install: $(PROGRAM) 71 install: $(PROGRAM)