Fix dependencies so parallel make works (issue #4).
This commit is contained in:
parent
aacd3a5f8d
commit
80bf70f0a6
1 changed files with 6 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -10,14 +10,14 @@ else ifeq "$(GCCVERSIONGTEQ4)" "1"
|
||||||
CC=c99
|
CC=c99
|
||||||
endif
|
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 database.o
|
||||||
SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO adventure.text advent.text control misc.h main.h share.h funcs.h
|
SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO adventure.text advent.text control misc.h main.h share.h funcs.h
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CCFLAGS) -O $(DBX) -c $<
|
$(CC) $(CCFLAGS) -O $(DBX) -c $<
|
||||||
|
|
||||||
advent: $(OBJS) database.o
|
advent: $(OBJS) database.o
|
||||||
$(CC) $(CCFLAGS) -O $(DBX) -o advent $(OBJS) database.o $(LIBS)
|
$(CC) $(CCFLAGS) -O $(DBX) -o advent $(OBJS) $(LIBS)
|
||||||
|
|
||||||
main.o: main.h misc.h funcs.h database.h
|
main.o: main.h misc.h funcs.h database.h
|
||||||
|
|
||||||
|
@ -31,6 +31,10 @@ score.o: misc.h main.h share.h database.h
|
||||||
|
|
||||||
misc.o: misc.h main.h database.h
|
misc.o: misc.h main.h database.h
|
||||||
|
|
||||||
|
database.o: database.h
|
||||||
|
|
||||||
|
funcs.h: database.h
|
||||||
|
|
||||||
database.c database.h: compile adventure.text
|
database.c database.h: compile adventure.text
|
||||||
./compile
|
./compile
|
||||||
$(CC) $(CCFLAGS) -O $(DBX) -c database.c
|
$(CC) $(CCFLAGS) -O $(DBX) -c database.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue