X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=291efd2a6f282d32b113c05a1584cb00dce6057e;hp=848a676a59a92780521681ffc0e833d187cc163b;hb=51e868f59159ed5499bd4a191432375aa94bab2f;hpb=0b4f19db455ff375d5025f9f05894dea3bd72f11 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