Honor external CCFLAGS and LDFLAGS

This commit is contained in:
Rémi Verschelde 2017-06-04 11:03:41 +02:00 committed by Eric S. Raymond
parent 0b4f19db45
commit 51e868f591

View file

@ -1,7 +1,7 @@
# Makefile for the open-source release of adventure 2.5 # Makefile for the open-source release of adventure 2.5
CC?=gcc CC?=gcc
CCFLAGS=-std=c99 CCFLAGS+=-std=c99
LIBS= LIBS=
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
@ -16,7 +16,7 @@ SOURCES=$(OBJS:.o=.c) compile.c advent.h database.h funcs.h adventure.text $(DOC
$(CC) $(CCFLAGS) $(DBX) -c $< $(CC) $(CCFLAGS) $(DBX) -c $<
advent: $(OBJS) database.o advent: $(OBJS) database.o
$(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) $(LIBS) $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) $(LDFLAGS) $(LIBS)
main.o: advent.h funcs.h database.h main.o: advent.h funcs.h database.h