-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeV2
More file actions
32 lines (31 loc) · 934 Bytes
/
Copy pathmakeV2
File metadata and controls
32 lines (31 loc) · 934 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
UNAME := $(shell uname)
Compiler=g++ -std=c++11
SRC=Source/
OBJ=Objects/
RSC=Resource/
EXEC=spaceRash.out
ifeq ($(UNAME), Linux)
LIBS=-lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -lboost_system -lboost_thread -lboost_serialization -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -lGL -lGLU
INCS=-I/usr/include/bullet
execute:$(EXEC)
./$<
$(EXEC):
make all
all:
$(Compiler) $(SRC)main.cpp $(LIBS) $(INCS) -o $(EXEC)
clean:
rm $(EXEC) *.tang
endif
ifeq ($(UNAME), Darwin)
LIBS=-lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -lboost_system -lboost_thread-mt -lboost_serialization -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
INCS=-I /usr/local/Cellar/bullet/2.82/include/bullet/
FRAMEWORKS=-framework OpenGL -framework GLUT
execute: $(EXEC)
./$<
$(EXEC):
make all
all:
$(Compiler) $(SRC)main.cpp $(LIBS) $(INCS) $(FRAMEWORKS) -o $(EXEC)
clean:
rm $(EXEC) *.tang
endif