Mercurial > hg > early-roguelike
comparison srogue/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 | 56 |
57 all: $(PROGRAM) docs | 57 all: $(PROGRAM) docs |
58 | 58 |
59 $(PROGRAM): $(HDRS) $(OBJS) | 59 $(PROGRAM): $(HDRS) $(OBJS) |
60 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ | 60 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ |
61 | |
62 .SUFFIXES: .c .o | |
63 | |
64 .c.o: | |
65 $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c | |
61 | 66 |
62 tags: $(HDRS) $(CFILES) | 67 tags: $(HDRS) $(CFILES) |
63 ctags -u $? | 68 ctags -u $? |
64 ed - tags < :ctfix | 69 ed - tags < :ctfix |
65 sort tags -o tags | 70 sort tags -o tags |