forked from shakfu/chuck-max
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
114 lines (88 loc) · 2.57 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
CHUCK_PACKAGE := "$(HOME)/Documents/Max\ 8/Packages/chuck-max"
SCRIPTS := source/scripts
BUILD := build
CONFIG = Release
THIRDPARTY = $(BUILD)/thirdparty
LIB = $(THIRDPARTY)/install/lib
CHUCK = $(THIRDPARTY)/install/bin/chuck
.PHONY: all native universal full light fauck warpbuf dev clean reset setup test \
test-fauck test-warpbuf install_deps install_deps_light install_fauck_deps \
install_warpbuf_deps
all: native
native:
@mkdir -p build && \
cd build && \
cmake -GXcode .. && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
universal:
@mkdir -p build && \
cd build && \
cmake -GXcode -DC74_BUILD_FAT=ON .. && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
install_deps:
./source/scripts/install_deps.sh
install_deps_light:
./source/scripts/install_deps_light.sh
full: install_deps
@mkdir -p build && \
cd build && \
cmake -GXcode .. -DENABLE_WARPBUF=ON -DENABLE_FAUCK=ON && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
light: install_deps_light
@mkdir -p build && \
cd build && \
cmake -GXcode .. -DENABLE_WARPBUF=ON -DENABLE_FAUCK=ON && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
install_fauck_deps:
./source/scripts/install_fauck_deps.sh
fauck: install_fauck_deps
@mkdir -p build && \
cd build && \
cmake -GXcode .. -DENABLE_FAUCK=ON && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
install_warpbuf_deps:
./source/scripts/install_warpbuf_deps.sh
warbuf: install_warpbuf_deps
@mkdir -p build && \
cd build && \
cmake -GXcode .. -DENABLE_WARPBUF=ON && \
cmake --build . --config '$(CONFIG)' && \
cmake --install . --config '$(CONFIG)'
link:
@cd examples && rm -f chuck && ln -s ../build/$(CONFIG)/chuck .
dev:
@mkdir -p build && cd build && cmake .. && make
clean:
@rm -rf \
build/$(CONFIG) \
build/*.ck \
build/*.cmake \
build/*.xcodeproj \
build/build \
build/CMake* \
build/install* \
build/package \
build/source \
externals
reset:
@rm -rf build externals
setup:
@git submodule init
@git submodule update
@if ! [ -L "$(CHUCK_PACKAGE)" ]; then \
ln -s "$(shell pwd)" "$(CHUCK_PACKAGE)" ; \
echo "... symlink created" ; \
else \
echo "... symlink already exists" ; \
fi
test:
@cd examples && ./chuck --chugin-path:chugins stk/rhodey-song.ck -v3
test-fauck:
@cd examples && ./chuck --chugin-path:chugins fauck/test.ck -v3
test-warpbuf:
@cd examples && ./chuck --chugin-path:chugins warpbuf/warpbuf_basic.ck -v3