-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (36 loc) · 953 Bytes
/
Makefile
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
LIBTCODDIR=libtcod-1.5.1
SDLDIR=SDL-1.2.14
CFLAGS=$(FLAGS) -I$(LIBTCODDIR)/include -I$(SDLDIR)/include -IBrogueCode -IPlatformCode -DBROGUE_TCOD
%.o : %.c
gcc $(CFLAGS) -g -O2 -s -o $@ -c $<
OBJS=BrogueCode/Architect.o \
BrogueCode/Combat.o \
BrogueCode/Dijkstra.o \
BrogueCode/Globals.o \
BrogueCode/IO.o \
BrogueCode/Buttons.o \
BrogueCode/MainMenu.o \
BrogueCode/Items.o \
BrogueCode/Light.o \
BrogueCode/Monsters.o \
BrogueCode/Movement.o \
BrogueCode/RogueMain.o \
BrogueCode/Random.o \
BrogueCode/Recordings.o \
BrogueCode/Grid.o \
BrogueCode/Time.o \
PlatformCode/main.o \
PlatformCode/platformdependent.o \
PlatformCode/tcod-platform.o \
PlatformCode/cJSON.o
all : brogue
brogue : ${OBJS}
g++ -o brogue.exe ${OBJS} -L. -L$(LIBTCODDIR)/ -g -lwebsockets_static -lZLIB -lws2_32 -static-libgcc\
-static-libstdc++
.PHONY: run
run : brogue
./brogue
.PHONY: clean
clean:
$(RM) BrogueCode/*.o
$(RM) PlatformCode/*.o