Implement tests grid-view and backtraces
[tiger.ml.git] / compiler / Makefile
... / ...
CommitLineData
1MAKEFLAGS := --no-builtin-rules
2
3EXE_TYPE := native # byte | native
4EXECUTABLES := tigerc tigert
5OCAMLBUILD_FLAGS_PKGS := -pkg unix
6OCAMLBUILD_FLAGS_DIRS := -I src/exe -I src/lib/tiger
7OCAMLBUILD_FLAGS_COMP := -cflags '-g -w A'
8OCAMLBUILD_FLAGS_YACC := -yaccflag '-v'
9OCAMLBUILD := \
10 ocamlbuild \
11 $(OCAMLBUILD_FLAGS_PKGS) \
12 $(OCAMLBUILD_FLAGS_COMP) \
13 $(OCAMLBUILD_FLAGS_DIRS) \
14 $(OCAMLBUILD_FLAGS_YACC)
15
16.PHONY: \
17 all \
18 build \
19 clean \
20 test
21
22all: clean
23 @$(MAKE) -s test
24
25build:
26 @$(OCAMLBUILD) $(addsuffix .$(EXE_TYPE),$(EXECUTABLES))
27 @mkdir -p bin/exe
28 $(foreach exe,$(EXECUTABLES),cp _build/src/exe/$(exe).$(EXE_TYPE) bin/exe/$(exe); )
29 @rm $(addsuffix .$(EXE_TYPE),$(EXECUTABLES))
30
31clean:
32 @$(OCAMLBUILD) -clean
33 @rm -rf ./bin
34
35test: build
36 @./bin/exe/tigert
This page took 0.027036 seconds and 4 git commands to generate.