-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.18 KB
/
Makefile
File metadata and controls
52 lines (40 loc) · 1.18 KB
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
49
50
51
52
OS:=$(shell uname)
OBJS = Main.o Shader.o Model.o Camera.o Framebuffer.o MotionBlur.o \
Ship.o Body.o BodyEmitter.o HUD.o HUDComponent.o StatusBar.o \
Gate.o MusicManager.o ParticleEngine.o ParticleEmitter.o Particle.o \
StatusText.o Level.o LevelManager.o SpaceBat.o
ifeq ($(OS), Darwin)
CXXFLAGS = -g -Wall -Ilinux/include -I/usr/local/include/bullet
LIBS = -Llinux/lib64 -Llinux/lib \
-lBulletDynamics -lBulletCollision -lLinearMath \
-framework sfml-network \
-framework sfml-window \
-framework sfml-graphics \
-framework sfml-system \
-framework sfml-audio \
-lassimp \
-framework OpenGL \
-framework GLUT
main: $(OBJS)
g++ -g -Wall -o $@ $^ $(LIBS)
run: main
LD_LIBRARY_PATH=linux/lib64 ./main
else
CXXFLAGS = -g -Wall -Ilinux/include -I/usr/class/cs248/include -I/usr/local/include/bullet
LIBS = -Llinux/lib64 -Llinux/lib \
-lBulletDynamics -lBulletCollision -lLinearMath \
-lsfml-network \
-lsfml-window \
-lsfml-graphics \
-lsfml-system \
-lsfml-audio \
-lassimp \
-lGLU \
-lGLEW
main: $(OBJS)
g++ -g -Wall -o $@ $^ $(LIBS)
run: main
LD_LIBRARY_PATH=/usr/class/cs248/lib:linux/lib64:linux/lib ./main
endif
clean:
rm -rf main *.o