comparison arogue7/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
72 GROFF=@GROFF@ 72 GROFF=@GROFF@
73 NROFF=@NROFF@ 73 NROFF=@NROFF@
74 COLCRT=@COLCRT@ 74 COLCRT=@COLCRT@
75 TBL=@TBL@ 75 TBL=@TBL@
76 76
77 .SUFFIXES: .obj 77 .SUFFIXES: .obj .o .c
78 78
79 .c.obj: 79 .c.obj:
80 $(CC) $(CFLAGS) /c $*.c 80 $(CC) $(CFLAGS) /c $*.c
81 81
82 .c.o:
83 $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
84
82 all: $(PROGRAM) docs 85 all: $(PROGRAM) docs
83 86
84 $(PROGRAM): $(HDRS) $(OBJS) 87 $(PROGRAM): $(HDRS) $(OBJS)
85 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ 88 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
86 89