forked from indutny/candor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (40 loc) · 1.2 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
BUILDTYPE ?= Debug
JOBS ?= 1
ARCH ?=
all: libcandor.a
build:
tools/gyp/gyp -Dosx_arch=$(ARCH) --generator-output=build --format=make \
--depth=. candor.gyp test/test.gyp
libcandor.a: build
$(MAKE) -j $(JOBS) -C build candor
ln -sf build/out/$(BUILDTYPE)/libcandor.a libcandor.a
can: build
$(MAKE) -j $(JOBS) -C build can
ln -sf build/out/$(BUILDTYPE)/can can
test-runner: build
$(MAKE) -j $(JOBS) -C build test
ln -sf build/out/$(BUILDTYPE)/test test-runner
test: test-runner can
@./test-runner parser
@./test-runner scope
@./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
clean:
-rm -rf build
-rm libcandor.a can test-runner
.PHONY: clean all build test libcandor.a can test-runner