-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 729 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 729 Bytes
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
TARGET = main
TEST = test
OPTS = -pp camlp4o -use-ocamlfind
TAGS = annot,debug
LIBS =
PKGS = ocamlgraph,oUnit,batteries
EXTENSION = byte
RUN_TEST = ./$(TEST).$(EXTENSION)
DOCDIR = pcesk.docdir
CFLAGS = -w A -w -4 -w -27 -short-paths
OCAMLBUILD = ocamlbuild $(OPTS) -tags $(TAGS) -pkgs $(PKGS) -cflags "$(CFLAGS)"
.PHONY: all test test_bin clean
all:
$(OCAMLBUILD) $(TARGET).$(EXTENSION)
test_bin:
$(OCAMLBUILD) $(TEST).$(EXTENSION)
test: test_bin
$(RUN_TEST) -k 0 -gc
$(RUN_TEST) -k 0 -gc -s
# $(RUN_TEST) -k 0
$(RUN_TEST) -k 1 -gc
$(RUN_TEST) -k 1 -gc -s
# $(RUN_TEST) -k 1 # Will very likely timeout
doc:
$(OCAMLBUILD) $(DOCDIR)/index.html
clean:
$(OCAMLBUILD) -clean