forked from crownengine/crown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
64 lines (57 loc) · 2.25 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
#
# Copyright (c) 2012-2015 Daniele Bartolini and individual contributors.
# License: https://github.com/taylor001/crown/blob/master/LICENSE
#
UNAME := $(shell uname)
ifeq ($(UNAME), $(filter $(UNAME), Linux))
OS=linux
else
OS=windows
endif
GENIE=third/bx/tools/bin/$(OS)/genie
android-build:
$(GENIE) --file=genie/genie.lua --with-luajit --compiler=android-arm gmake
android-arm-debug: android-build
make -R -C .build/projects/android config=debug
android-arm-development: android-build
make -R -C .build/projects/android config=development
android-arm-release: android-build
make -R -C .build/projects/android config=release
android-arm: android-arm-debug android-arm-development android-arm-release
linux-build:
$(GENIE) --file=genie/genie.lua --with-luajit --with-openal --with-tools --compiler=linux-gcc gmake
linux-debug32: linux-build
make -R -C .build/projects/linux config=debug32
linux-development32: linux-build
make -R -C .build/projects/linux config=development32
linux-release32: linux-build
make -R -C .build/projects/linux config=release32
linux-debug64: linux-build
make -R -C .build/projects/linux config=debug64
linux-development64: linux-build
make -R -C .build/projects/linux config=development64
linux-release64: linux-build
make -R -C .build/projects/linux config=release64
linux: linux-debug32 linux-development32 linux-release32 linux-debug64 linux-development64 linux-release64
windows-build:
$(GENIE) --file=genie\genie.lua --with-luajit --with-openal --with-tools vs2013
windows-debug32: windows-build
devenv .build/projects/vs2013/crown.sln /Build "debug|Win32"
windows-development32: windows-build
devenv .build/projects/vs2013/crown.sln /Build "development|Win32"
windows-release32: windows-build
devenv .build/projects/vs2013/crown.sln /Build "release|Win32"
windows-debug64: windows-build
devenv .build/projects/vs2013/crown.sln /Build "debug|x64"
windows-development64: windows-build
devenv .build/projects/vs2013/crown.sln /Build "development|x64"
windows-release64: windows-build
devenv .build/projects/vs2013/crown.sln /Build "release|x64"
.PHONY: docs
docs:
doxygen docs/Doxyfile.doxygen
rst2html2 --stylesheet=html4css1.css,docs/style.css docs/lua_api.txt .build/docs/lua_api.html
.PHONY: clean
clean:
@echo Cleaning...
-@rm -rf .build