-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 747 Bytes
/
Makefile
File metadata and controls
42 lines (29 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
all: cgi console
cgi: dungeon.cgi
console: dungeon
CC=gcc
CPP=g++
LIBS=$(LDFLAGS) -lm -lqDecoder -lgd -lpng -lz -ldndutil -lnpcEngine -lwritetem
OPTS=$(CFLAGS) -Iinclude -O3 -Wall -DUSE_COUNTER -DCTRLOCATION="\"/tmp/dungeon.cnt\""
.SUFFIXES:
.SUFFIXES: .cpp .c .o
.cpp.o:
$(CPP) $(OPTS) -c -o $@ $<
.c.o:
$(CC) $(OPTS) -c -o $@ $<
OBJS=\
src/jbdungeon.o \
src/jbdungeondata.o \
src/jbdungeonpainter.o \
src/jbdungeonpaintergd.o \
src/jbmaze.o \
src/jbmazemask.o \
src/treasureEngine.o
dungeon.cgi: src/dungeoncgi.o $(OBJS)
$(CPP) $(OPTS) -o dungeon.cgi src/dungeoncgi.o $(OBJS) $(LIBS)
dungeon: src/main.o $(OBJS)
$(CPP) $(OPTS) -o dungeon src/main.o $(OBJS) $(LIBS)
clean:
rm -f src/*.o
rm -f dungeon.cgi
rm -f dungeon