aboutsummaryrefslogtreecommitdiffstats
path: root/lib/monoucha0/Makefile
blob: 3e7a52586fa6662070c18706f6e9e2aa5bbb89d5 (plain) (blame)
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
NIM ?= nim
TESTDIR ?= /tmp/chagashi_test
FLAGS += --debugger:native --mm:refc

.PHONY: all
all: test

.PHONY: test_basic
test_basic:
	$(NIM) $(FLAGS) r -p:. test/basic.nim
	$(NIM) $(FLAGS) r -p:. -d:monouchaUseOpt=1 test/basic.nim

.PHONY: test_regexonly
test_regexonly:
	$(NIM) $(FLAGS) r -d:lreOnly=1 -p:. test/regexonly.nim
	$(NIM) $(FLAGS) r -d:lreOnly=1 -p:. -d:monouchaUseOpt=1 test/basic.nim

.PHONY: test_manual
test_manual:
	$(NIM) $(FLAGS) r -p:. test/manual.nim
	$(NIM) $(FLAGS) r -p:. -d:monouchaUseOpt=1 test/manual.nim

.PHONY: test_etc
test_etc:
	$(NIM) $(FLAGS) r -p:. test/etc.nim
	$(NIM) $(FLAGS) r -p:. -d:monouchaUseOpt=1 test/etc.nim

.PHONY: test
test: test_basic test_regexonly test_manual test_etc