Honor external CCFLAGS and LDFLAGS
This commit is contained in:
parent
beb80ff521
commit
ea645b819c
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
|
||||
|
||||
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) advent.h funcs.h adventure.text $(DOCS) control
|
|||
$(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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue