forked from sirikata/sirikata
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
69 lines (56 loc) · 1.62 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
all:
cd build/cmake && \
cmake . && \
$(MAKE) $(*)
release:
cd build/cmake && \
cmake . -DCMAKE_BUILD_TYPE=Release && \
$(MAKE) $(*)
debug:
cd build/cmake && \
cmake . -DCMAKE_BUILD_TYPE=Debug && \
$(MAKE) $(*)
test:
cd build/cmake && \
cmake . && \
$(MAKE) test $(*)
tests:
cd build/cmake && \
cmake . && \
$(MAKE) tests $(*)
clean:
cd build/cmake && \
( [ -e Makefile ] && $(MAKE) clean $(*) ) || true
#========== Dependencies ===========
dependencies:
case "`uname`" in \
*arwin*) \
svn co http://sirikata.googlecode.com/svn/trunk/osx10.4 dependencies \
;; \
*MINGW*|*CYGWIN*|*win32*) \
if [ x = x"$(VCVER)" ]; then \
echo To force a specific version of visual studio, set VCVER to 8 or 9 ; \
[ -e c:/Program\ Files/Microsoft\ Visual\ Studio\ 9*/VC/bin ] && \
svn co http://sirikata.googlecode.com/svn/trunk/win32vc9 dependencies || \
svn co http://sirikata.googlecode.com/svn/trunk/win32vc8 dependencies ; \
else \
svn co http://sirikata.googlecode.com/svn/trunk/win32vc$(VCVER) dependencies ; \
fi \
;; \
*) \
svn co http://sirikata.googlecode.com/svn/trunk/source dependencies \
;; \
esac ; \
[ -d dependencies ]
update-dependencies: dependencies
git submodule init || true
git submodule update || true
cd dependencies && svn update
minimaldepends: update-dependencies
$(MAKE) -C dependencies minimaldepends $(*)
minimalfulldepends: update-dependencies
$(MAKE) -C dependencies minimalrootdepends minimaldepends $(*)
depends: update-dependencies
$(MAKE) -C dependencies depends $(*)
fulldepends: update-dependencies
$(MAKE) -C dependencies fulldepends $(*)