-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (40 loc) · 1.02 KB
/
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
43
44
45
46
47
48
CC=gcc
CFLAGS=-g -O0 -Wall -Wextra -MD
CXX=g++
CXXFLAGS=$(CFLAGS) -std=c++11 -Iexternal/rapidxml-1.13 -Iexternal/oolua-2.0.1/include -Iexternal/lua-5.3.2/include
CXXFLAGS+=-DDEBUG
LDFLAGS=-L.
default: warsim
warsim_SRC=\
src/main.cpp\
src/country.cpp\
src/factory.cpp\
src/policy.cpp\
src/recipe.cpp\
src/resource.cpp\
src/serializer.cpp\
src/stockpile.cpp\
src/territory.cpp\
src/territorymanager.cpp\
src/world.cpp\
src/scriptbindings.cpp\
src/render/camera.cpp\
src/render/node.cpp\
src/render/transform.cpp\
src/render/vector.cpp\
src/render/sprite.cpp\
src/render/spritesheet.cpp\
src/render/render.cpp\
src/render/scene.cpp\
src/render/group.cpp\
warsim_OBJ=$(warsim_SRC:.cpp=.o)
warsim: $(warsim_OBJ) $(warsim_SRC) liboolua.a liblua5.a
$(CXX) $(CXXFLAGS) -o warsim $(warsim_OBJ) $(LDFLAGS) -loolua -llua5 -lSDL2
include oolua.mk
include lua5.mk
clean:
-rm -f warsim
-find . -name "*.o" -exec rm {} \;
-find . -name "*.d" -exec rm {} \;
-rm -f liblua5.a liboolua.a
-include $(shell find -name "*.d")