-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
57 lines (48 loc) · 1.35 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
BUILDTYPE ?= Debug
JOBS ?= 1
ARCH ?= x64
all: libcandor.a can
build:
./candor_gyp -f make -Dosx_arch=$(ARCH)
libcandor.a: build
$(MAKE) -j $(JOBS) -C out candor
ln -sf out/$(BUILDTYPE)/libcandor.a libcandor.a
can: build
$(MAKE) -j $(JOBS) -C out can
ln -sf out/$(BUILDTYPE)/can can
test-runner: build
$(MAKE) -j $(JOBS) -C out test
ln -sf out/$(BUILDTYPE)/test test-runner
test: test-runner can
@./test-runner splaytree
@./test-runner list
@./test-runner parser
@./test-runner scope
# @./test-runner fullgen
# @./test-runner hir
# @./test-runner lir
@./test-runner functional
@./test-runner binary
@./test-runner numbers
@./test-runner api
@./test-runner gc
@./can test/functional/return.can
@./can test/functional/basics.can
@./can test/functional/arrays.can
@./can test/functional/objects.can
@./can test/functional/binary.can
@./can test/functional/while.can
@./can test/functional/clone.can
@./can test/functional/functions.can
@./can test/functional/strings.can
@./can test/functional/regressions/regr-1.can
@./can test/functional/regressions/regr-2.can
@./can test/functional/regressions/regr-3.can
@./can test/functional/regressions/regr-4.can
@./can test/functional/regressions/regr-5.can
lint:
@./tools/presubmit.py
clean:
-rm -rf out
-rm libcandor.a can test-runner
.PHONY: clean all build test lint libcandor.a can test-runner