Commit | Line | Data |
---|---|---|
1 | .PHONY: build clean | |
2 | ||
3 | EXE_TYPE := native | |
4 | ||
5 | build: | |
6 | $(eval executable_name := polymorphism) | |
7 | $(eval executable_name_ext := $(executable_name).$(EXE_TYPE)) | |
8 | @ocamlbuild \ | |
9 | -use-ocamlfind \ | |
10 | -package core \ | |
11 | -tag thread \ | |
12 | -tag short-paths \ | |
13 | -cflags "-w +A-44" \ | |
14 | src/$(executable_name_ext) | |
15 | @mkdir -p bin/ | |
16 | @cp _build/src/$(executable_name_ext) bin/$(executable_name) | |
17 | @rm $(executable_name_ext) | |
18 | ||
19 | clean: | |
20 | @ocamlbuild -clean | |
21 | @rm -rf bin/ |