projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b6a10e
)
Update Makefile for linenoise.
author
Jason S. Ninneman
<jsn@mbar.us>
Thu, 8 Jun 2017 01:37:30 +0000
(18:37 -0700)
committer
Jason S. Ninneman
<jsn@mbar.us>
Thu, 8 Jun 2017 03:19:24 +0000
(20:19 -0700)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index c9169d9b3961019eb6cc62b01f9c928b12bb17c7..ee8c567ccf1f17c18e04d75e277fb4d9783c5393 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,14
+3,14
@@
VERS=1.0
CC?=gcc
VERS=1.0
CC?=gcc
-CCFLAGS+=-std=c99
+CCFLAGS+=-std=c99
-D _DEFAULT_SOURCE
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBS=-lrt
endif
LIBS=
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBS=-lrt
endif
-OBJS=main.o init.o actions1.o actions2.o score.o misc.o
+OBJS=main.o init.o actions1.o actions2.o score.o misc.o
linenoise.o
SOURCES=$(OBJS:.o=.c) dungeon.c advent.h funcs.h sizes.h adventure.text Makefile control
.c.o:
SOURCES=$(OBJS:.o=.c) dungeon.c advent.h funcs.h sizes.h adventure.text Makefile control
.c.o:
@@
-37,6
+37,9
@@
database.o: database.c database.h sizes.h
database.c database.h: dungeon
./dungeon
database.c database.h: dungeon
./dungeon
+linenoise.o: linenoise/linenoise.h
+ $(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c
+
dungeon: dungeon.c
$(CC) $(CCFLAGS) -o $@ $<
dungeon: dungeon.c
$(CC) $(CCFLAGS) -o $@ $<