Makefiles: don't rely on built-in implicit rules.
Not all make implementations will use CPPFLAGS when compiling C files.
This commit is contained in:
parent
fece552183
commit
e30aa0e491
7 changed files with 24 additions and 5 deletions
|
|
@ -74,11 +74,14 @@ NROFF=@NROFF@
|
|||
COLCRT=@COLCRT@
|
||||
TBL=@TBL@
|
||||
|
||||
.SUFFIXES: .obj
|
||||
.SUFFIXES: .obj .o .c
|
||||
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) /c $*.c
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
|
||||
|
||||
all: $(PROGRAM) docs
|
||||
|
||||
$(PROGRAM): $(HDRS) $(OBJS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue