Debian Codegraph @

examples/07-dependent-projects/Makefile

raw
1 #
2 # Pure OCaml, project depends on library code from a local project
3 #
4 # For more details, see:
5 # https://ocaml.org/learn/tutorials/ocamlbuild/Working_on_dependent_projects_with_ocamlbuild.html
6 #
7
8 # - The -I flag introduces sub-directories
9
10 .PHONY: all clean byte native profile debug test
11
12 OCB_FLAGS = -I src -I libdemo
13 OCB = ocamlbuild $(OCB_FLAGS)
14
15 all: native byte
16
17 clean:
18 $(OCB) -clean
19
20 native:
21 $(OCB) main.native
22
23 byte:
24 $(OCB) main.byte
25
26 profile:
27 $(OCB) -tag profile main.native
28
29 debug:
30 $(OCB) -tag debug main.byte
31
32 test: native
33 ./main.native groucho harpo chico