From 51e868f59159ed5499bd4a191432375aa94bab2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 4 Jun 2017 11:03:41 +0200 Subject: [PATCH] Honor external CCFLAGS and LDFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.31.1