Move database compilation out into its own tool (for now).
This commit is contained in:
parent
d6b59a1c12
commit
f0528b0ded
14 changed files with 588 additions and 404 deletions
17
database/Makefile
Normal file
17
database/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Makefile for the open-adventure database
|
||||
|
||||
OBJS=compile.o
|
||||
SOURCES=$(OBJS:.o=.c) adventure.text
|
||||
OPTIONS=-ggdb -Wall -std=c99
|
||||
|
||||
.c.o:
|
||||
gcc $(OPTIONS) -O $(DBX) -c $<
|
||||
|
||||
database: compile
|
||||
./compile
|
||||
gcc $(OPTIONS) -O $(DBX) -c database.c
|
||||
|
||||
compile: $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) compile database.c database.h
|
Loading…
Add table
Add a link
Reference in a new issue