Move database compilation out into its own tool (for now).

This commit is contained in:
Jason S. Ninneman 2017-05-28 21:46:54 -07:00
parent d6b59a1c12
commit f0528b0ded
14 changed files with 588 additions and 404 deletions

17
database/Makefile Normal file
View 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