From: RĂ©mi Verschelde Date: Sun, 4 Jun 2017 09:03:41 +0000 (+0200) Subject: Honor external CCFLAGS and LDFLAGS X-Git-Tag: 0.90~7 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=51e868f59159ed5499bd4a191432375aa94bab2f Honor external CCFLAGS and LDFLAGS --- diff --git a/Makefile b/Makefile index 848a676..291efd2 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Makefile for the open-source release of adventure 2.5 CC?=gcc -CCFLAGS=-std=c99 +CCFLAGS+=-std=c99 LIBS= UNAME_S := $(shell uname -s) 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 $< 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