-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 867 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 867 Bytes
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
export PATH := /usr/local/bin:$(PATH)
define JS
endef
define LLJS
src/Four.ljs \
src/math/Quaternion.ljs \
src/math/Vector3.ljs \
src/math/Matrix3.ljs \
src/math/Matrix4.ljs
endef
define EXPORTED_FUNCS
malloc,\
reset,\
main
endef
build:
# -------------------------------------------------------
# ** C O N C A T A L L L L J S
cat $(LLJS) > temp.ljs
# -------------------------------------------------------
# ** C O M P I L E L L J S A S M
./LLJS/bin/ljc -o build/Four.js -b temp.ljs
# -------------------------------------------------------
# ** C O N C A T J S F I L E S
cat $(JS) >> build/Four.js
# -------------------------------------------------------
# ** M I N I F Y
uglifyjs --no-seqs build/Four.js > build/Four.min.js
# -------------------------------------------------------
# ** C L E A N U P
.PHONY: build