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