-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
59 lines (40 loc) · 1.72 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
all: libs clis tests docs
libs: java js lua py cpp
clis: cli-py cli-cpp cli-hlc
_:
java: _
haxe apparentridges/ApparentRidges.hx -D real_position --java java/ApparentRidges
js: _
haxe apparentridges/ApparentRidges.hx --js js/apparentridges.js
lua: _
haxe apparentridges/ApparentRidges.hx -D lua_jit -D lua_vanilla --lua lua/apparentridges.lua
py: _
haxe apparentridges/ApparentRidges.hx --python py/apparentridges.py
c: _
haxe apparentridges/ApparentRidges.hx -hl hl/c/main.c
cd hl/c; gcc -O3 main.c -o out.o -I. -lhl -I/usr/local/Cellar/hashlink/1.11_1/libexec/include -L /usr/local/Cellar/hashlink/1.11_1/libexec/lib;
cd hl/c; ar rcs libapparentridges.a out.o
c-example: _
cd hl/c; gcc -O3 example.c -I. -lhl -I/usr/local/Cellar/hashlink/1.11_1/libexec/include -L /usr/local/Cellar/hashlink/1.11_1/libexec/lib;
cpp: _
haxe apparentridges/ApparentRidges.hx --cpp cpp/ApparentRidges/ -D static_link
processing: java
cp java/ApparentRidges/ApparentRidges.jar processing/ApparentRidges/library/ApparentRidges.jar;
cpp-example: _
cd cpp; g++ example.cpp -I/usr/local/lib/haxe/lib/hxcpp/4,1,15/include -I ./ApparentRidges/include --std=c++11 -L./ApparentRidges/ -loutput
cli-py: _
haxe --main Cli.hx --python py/cli.py
cli-cpp: _
haxe --main Cli.hx --cpp cpp/cli/
cli-hlc: _
haxe -hl hl/cli/main.c -main Cli;
cd hl/cli; gcc -O3 main.c -o cli -I. -lhl -I/usr/local/Cellar/hashlink/1.11_1/libexec/include -L /usr/local/Cellar/hashlink/1.11_1/libexec/lib;
tests: _
node js/generatesamples.js all
test-%: _
node js/generatesamples.js $*
docs: _
haxe apparentridges.ApparentRidges -xml docs/ApparentRidges.xml -D doc-gen
haxelib run dox -i docs/ApparentRidges.xml -o docs/pages/ -in "^apparentridges"
linguist: _
python fix_linguist.py