forked from sirikata/sirikata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
151 lines (131 loc) · 3.78 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
all:
case "`uname`" in \
*arwin*|*MINGW*|*CYGWIN*|*win32*) \
cd build/cmake && \
cmake . && \
$(MAKE) $(*) \
;; \
*) \
cd build/cmake && \
./cmake_with_tools.sh . && \
$(MAKE) $(*) \
;; \
esac ;
release:
case "`uname`" in \
*arwin*|*MINGW*|*CYGWIN*|*win32*) \
cd build/cmake && \
cmake . -DCMAKE_BUILD_TYPE=Release && \
$(MAKE) $(*) \
;; \
*) \
cd build/cmake && \
./cmake_with_tools.sh . -DCMAKE_BUILD_TYPE=Release && \
$(MAKE) $(*) \
;; \
esac ;
# Leaving out cmake_with_tools since this is probably running in a
# chroot where the caching is pointless
debian-release:
cd build/cmake && \
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release && \
$(MAKE) $(*)
debug:
case "`uname`" in \
*arwin*|*MINGW*|*CYGWIN*|*win32*) \
cd build/cmake && \
cmake . -DCMAKE_BUILD_TYPE=Debug && \
$(MAKE) $(*) \
;; \
*) \
cd build/cmake && \
./cmake_with_tools.sh . -DCMAKE_BUILD_TYPE=Debug && \
$(MAKE) $(*) \
;; \
esac ;
# These all assume you've already run one of the standard builds, so
# they don't need to use cmake_with_tools.
.PHONY: test
test:
cd build/cmake && \
cmake . && \
$(MAKE) test $(*)
tests:
cd build/cmake && \
cmake . && \
$(MAKE) tests $(*)
install:
cd build/cmake && \
$(MAKE) install $(*)
clean:
cd build/cmake && \
( test -e Makefile && $(MAKE) clean $(*) ) || true
DEPVC8REV=HEAD
DEPVC9REV=27
DEPOSXREV=99
DEPSOURCE=79
DEPARCHINDEP=7
#========== Dependencies ===========
distributions:
case "`uname`" in \
*arwin*) \
svn co -r$(DEPOSXREV) http://sirikataosx.googlecode.com/svn/trunk dependencies \
;; \
*MINGW*|*CYGWIN*|*win32*) \
if [ x = x"$(VCVER)" ]; then \
echo To force a specific version of visual studio, set VCVER to 8 or 9 ; \
svn co -r$(DEPVC9REV) http://sirikatawin32.googlecode.com/svn/trunk dependencies ; \
else \
if [ x"9" = x"$(VCVER)" ]; then \
svn co -r$(DEPVC9REV) http://sirikatawin32.googlecode.com/svn/trunk dependencies ; \
else \
svn co -r$(DEPVC8REV) http://sirikata.googlecode.com/svn/trunk/win32vc$(VCVER) dependencies ; \
fi \
fi \
;; \
*) \
svn co -r$(DEPSOURCE) http://sirikataunix.googlecode.com/svn/trunk dependencies \
;; \
esac ; \
svn co -r$(DEPARCHINDEP) http://sirikatamachindep.googlecode.com/svn/trunk/ dependencies/machindependencies
update-dependencies: distributions
git submodule update --init --recursive || true
case "`uname`" in \
*arwin*) \
cd dependencies && svn update -r$(DEPOSXREV) \
;; \
*MINGW*|*CYGWIN*|*win32*) \
if [ x = x"$(VCVER)" ]; then \
echo To force a specific version of visual studio, set VCVER to 8 or 9 ; \
cd dependencies && [ -e c:/Program\ Files/Microsoft\ Visual\ Studio\ 9*/VC/bin ] && \
svn update -r$(DEPVC9REV) || \
svn update -r$(DEPVC8REV); \
else \
if [ x"9" = x"$(VCVER)" ]; then \
cd dependencies && svn update -r$(DEPVC9REV) ; \
else \
cd dependencies && svn update -r$(DEPVC8REV); \
fi \
fi \
;; \
*) \
cd dependencies && svn update -r$(DEPSOURCE) \
;; \
esac ; \
svn co -r$(DEPARCHINDEP) http://sirikatamachindep.googlecode.com/svn/trunk/ machindependencies
minimal-depends: update-dependencies
$(MAKE) -C dependencies minimal-depends $(*)
minimal-graphics-depends: update-dependencies
$(MAKE) -C dependencies minimal-graphics-depends $(*)
minimal-depends-with-root: update-dependencies
$(MAKE) -C dependencies minimalrootdepends minimaldepends $(*)
headless-depends: update-dependencies
$(MAKE) -C dependencies headless-depends $(*)
depends: update-dependencies
$(MAKE) -C dependencies depends $(*)
full-headless-depends: update-dependencies
$(MAKE) -C dependencies full-headless-depends $(*)
full-depends: update-dependencies
$(MAKE) -C dependencies full-depends $(*)
docs: Doxyfile
doxygen