Add explicit rule for compile to use CCFLAGS instead of CFLAGS (take two)

This commit is contained in:
Michael Jarvis 2017-06-01 22:54:04 -05:00 committed by Eric S. Raymond
parent c14c5952a7
commit 467a255653

View file

@ -33,6 +33,9 @@ database.o: database.h
funcs.h: database.h funcs.h: database.h
compile: compile.c
$(CC) $(CCFLAGS) -o $@ $<
database.c database.h: compile adventure.text database.c database.h: compile adventure.text
./compile ./compile
$(CC) $(CCFLAGS) -O $(DBX) -c database.c $(CC) $(CCFLAGS) -O $(DBX) -c database.c