-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 886 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
PREFIX=$(shell pwd | sed 's/\(cellwars\).*/\1/')
LIBDIR=${PREFIX}/lib
INCLUDEDIR=${PREFIX}/include/Container
OPT=-Wall -Wextra -Werror -fmax-errors=1 -fno-rtti -ggdb
INC=-I${PREFIX}/include $(pkg-config --cflags glfw3 glm)
LOCAL_LIB=-L${LIBDIR} -lapplication -lrenderutils -lepsilon -lhieroparser -lmisc -lcontainer -lmisc -llogger -lglad
SYSTEM_LIB=$(shell pkg-config --libs glfw3 glm) -ldl
default: main
main:
g++ ${OPT} ${INC} src/Main.cpp ${LOCAL_LIB} ${SYSTEM_LIB} -o cellwars
local_libs: glad logger misc stb epsilon container hieroparser renderutils application
glad:
cd src/glad && make
logger:
cd src/logger && make
misc:
cd src/Misc && make
stb:
cd src/stb && make
epsilon:
cd src/Epsilon && make
container:
cd src/Container && make
hieroparser:
cd src/HieroParser && make
renderutils:
cd src/RenderUtils && make
application:
cd src/Application && make