-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
90 lines (77 loc) · 2.84 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
#
# Copyright (c) 2030 by Milos Toisc. All rights reserved.
# License: http://www.opensource.org/licenses/BSD-2-Clause
#
GENIE=../build/tools/bin/$(OS)/genie
all:
$(GENIE) vs2015
$(GENIE) vs2017
$(GENIE) --gcc=android-arm gmake
$(GENIE) --gcc=android-mips gmake
$(GENIE) --gcc=android-x86 gmake
$(GENIE) --gcc=mingw-gcc gmake
$(GENIE) --gcc=linux-gcc gmake
$(GENIE) --gcc=osx gmake
$(GENIE) --gcc=ios-arm gmake
$(GENIE) --gcc=ios-simulator gmake
$(GENIE) --gcc=ios-simulator64 gmake
$(GENIE) xcode4
gmake-linux:
$(GENIE) --file=genie/genie.lua --gcc=linux-gcc gmake
linux-debug32: gmake-linux
make -R -C ../.build/linux/gcc/rprof/projects config=debug32
linux-release32: gmake-linux
make -R -C ../.build/linux/gcc/rprof/projects config=release32
linux-debug64: gmake-linux
make -R -C ../.build/linux/gcc/rprof/projects config=debug64
linux-release64: gmake-linux
make -R -C ../.build/linux/gcc/rprof/projects config=release64
linux: linux-debug64 linux-release64 ## linux-debug32 linux-release32
gmake-mingw-gcc:
$(GENIE) --file=genie/genie.lua --gcc=mingw-gcc gmake
mingw-gcc-debug32: gmake-mingw-gcc
make -R -C ../.build/windows/mingw-gcc/rprof/projects config=debug32
mingw-gcc-release32: gmake-mingw-gcc
make -R -C ../.build/windows/mingw-gcc/rprof/projects config=release32
mingw-gcc-debug64: gmake-mingw-gcc
make -R -C ../.build/windows/mingw-gcc/rprof/projects config=debug64
mingw-gcc-release64: gmake-mingw-gcc
make -R -C ../.build/windows/mingw-gcc/rprof/projects config=release64
mingw-gcc: mingw-gcc-debug32 mingw-gcc-release32 mingw-gcc-debug64 mingw-gcc-release64
gmake-mingw-clang:
$(GENIE) --file=genie/genie.lua --clang=mingw-clang gmake
mingw-clang-debug32: gmake-mingw-clang
make -R -C ../.build/windows/mingw-clang/rprof/projects config=debug32
mingw-clang-release32: gmake-mingw-clang
make -R -C ../.build/windows/mingw-clang/rprof/projects config=release32
mingw-clang-debug64: gmake-mingw-clang
make -R -C ../.build/windows/mingw-clang/rprof/projects config=debug64
mingw-clang-release64: gmake-mingw-clang
make -R -C ../.build/windows/mingw-clang/rprof/projects config=release64
mingw-clang: mingw-clang-debug32 mingw-clang-release32 mingw-clang-debug64 mingw-clang-release64
vs2015:
$(GENIE) --file=genie/genie.lua vs2015
vs2017:
$(GENIE) --file=genie/genie.lua vs2017
../.build/osx/clang/rprof/projects:
$(GENIE) --file=genie/genie.lua --gcc=osx gmake
osx-debug64: ../.build/osx/clang/rprof/projects
make -C ../.build/osx/clang/rprof/projects config=debug64
osx-release64: ../.build/osx/clang/rprof/projects
make -C ../.build/osx/clang/rprof/projects config=release64
osx: osx-debug64 osx-release64
clean:
@echo Cleaning...
-@rm -rf ../.build
###
SILENT ?= @
UNAME := $(shell uname)
ifeq ($(UNAME),$(filter $(UNAME),Linux GNU Darwin))
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
OS=darwin
else
OS=linux
endif
else
OS=windows
endif