-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
23 lines (18 loc) · 879 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
output_dir := ./build
create_output_dir := mkdir -p $(output_dir)
glm_dir := ./MP-APS/3rdParty/glm/
glad_dir := ./MP-APS/3rdParty/glad/include/
glad_src := ./MP-APS/3rdParty/glad/src/glad.c
stb_dir := ./MP-APS/3rdParty/stb/
pugixml_dir := ./MP-APS/3rdParty/pugixml/include/
nuklear_dir := ./MP-APS/3rdParty/nuklear/include/
fmt_dir := ./MP-APS/3rdParty/fmt/include/
fmt_src := ./MP-APS/3rdParty/fmt/src/
libs := -lstdc++fs -lGL -lglfw -lpthread -lassimp -ltbb
all:
make clean
$(create_output_dir)
g++ -std=c++17 -Wall -Wextra -Wno-unused-variable -march=native -isystem -O3 -o $(output_dir)/MP-APS -I$(glm_dir) -I$(glad_dir) -I$(stb_dir) -I$(fmt_dir) -I$(pugixml_dir) -I$(nuklear_dir) ./MP-APS/*.cpp ./MP-APS/Core/*.cpp ./MP-APS/Demos/*.cpp ./MP-APS/Graphics/*.cpp $(glad_src) $(fmt_src)/format.cc $(libs)
cp -r ./MP-APS/Data/ $(output_dir)
clean:
rm -rf $(output_dir)