Honor external CCFLAGS and LDFLAGS
This commit is contained in:
parent
0b4f19db45
commit
51e868f591
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue