forked from m-rap/reindeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (59 loc) · 2.43 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#------------------------------------------------------------------------------#
# This makefile was generated by 'cbp2make' tool rev.147 #
#------------------------------------------------------------------------------#
WRKDIR = `pwd`
MAKE = make
all: bullet glew glfw glm bullettest_bullettest_linux
bullettest_bullettest_linux:
$(MAKE) -C BulletTest all
clean: clean_bullettest_bullettest_linux
clean_bullettest_bullettest_linux:
$(MAKE) -C BulletTest clean
.PHONY: clean_bullettest_bullettest_linux
bullet:
(test -d ./tmp || mkdir ./tmp)
cd ./tmp &&\
(test -f bullet-2.82-r2704.tgz || wget "https://bullet.googlecode.com/files/bullet-2.82-r2704.tgz") &&\
tar zxvf bullet-2.82-r2704.tgz
cd ./tmp/bullet-2.82-r2704 &&\
(test -d Unix\ Makefiles || mkdir Unix\ Makefiles) &&\
cd Unix\ Makefiles &&\
cmake -G "Unix Makefiles" . ../ &&\
make BulletCollision BulletDynamics LinearMath &&\
find ./src -name '*.a' -exec cp {} ../../../lib/linux \; &&\
cd ../src &&\
rsync -arv --include '*/' --include '*.h' --exclude '*' . ../../../include
.PHONY: bullet
glew:
(test -d ./tmp || mkdir ./tmp)
cd ./tmp &&\
wget --content-disposition -N "http://downloads.sourceforge.net/project/glew/glew/1.11.0/glew-1.11.0.tgz?r=&ts=1414547568&use_mirror=softlayer-sng" &&\
tar zxvf glew-1.11.0.tgz
cd ./tmp/glew-1.11.0 &&\
make lib/libGLEW.a &&\
find ./lib -name '*.a' -exec cp {} ../../lib/linux \; &&\
cd ./include &&\
rsync -arv --include '*/' --include '*.h' --exclude '*' . ../../../include
.PHONY: glew
glfw:
(test -d ./tmp || mkdir ./tmp)
cd ./tmp &&\
wget --content-disposition -N "http://downloads.sourceforge.net/project/glfw/glfw/3.0.4/glfw-3.0.4.zip?r=http%3A%2F%2Fwww.glfw.org%2Fdownload.html&ts=1414548419&use_mirror=cznic" &&\
unzip glfw-3.0.4.zip
cd ./tmp/glfw-3.0.4 &&\
(test -d Unix\ Makefiles || mkdir Unix\ Makefiles) &&\
cd Unix\ Makefiles &&\
cmake -G "Unix Makefiles" . ../ &&\
make glfw &&\
find ./src -name '*.a' -exec cp {} ../../../lib/linux \; &&\
cd ../include &&\
rsync -arv --include '*/' --include '*.h' --exclude '*' . ../../../include
.PHONY: glfw
glm:
(test -d ./tmp || mkdir ./tmp)
cd ./tmp &&\
wget --content-disposition -N "http://downloads.sourceforge.net/project/ogl-math/glm-0.9.5.4/glm-0.9.5.4.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fogl-math%2Ffiles%2F&ts=1414549219&use_mirror=softlayer-sng" &&\
unzip glm-0.9.5.4.zip
cd ./tmp/glm/ &&\
cp -r ./glm ../../include
.PHONY: glm