-
Notifications
You must be signed in to change notification settings - Fork 1
/
OMakefile
93 lines (79 loc) · 1.84 KB
/
OMakefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
########################################################################
# Phony targets are scoped, so you probably want to declare them first.
#
.PHONY: all install clean
########################################################################
# OCaml configuration.
# Delete this section if you are not building OCaml files.
#
################################################
# Configuration. You may want to modify any of these configuration
# variables.
#
#
# This project requires ocamlfind (default - false).
#
USE_OCAMLFIND = true
#
OCAMLPACKS[] =
# pack1
# pack2
#
if $(not $(OCAMLFIND_EXISTS))
eprintln(This project requires ocamlfind, but is was not found.)
eprintln(You need to install ocamlfind and run "omake --configure".)
exit 1
#
# Include path
#
OCAMLINCLUDES +=.
#
# Compile native or byte code?
#
# The default values are defined as follows:
#
NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
# BYTE_ENABLED = $(not $(OCAMLOPT_EXISTS))
#
# Various options
#
OCAMLFLAGS +=
OCAMLCFLAGS +=
OCAMLOPTFLAGS +=
OCAML_LINK_FLAGS +=
OCAML_BYTE_LINK_FLAGS +=
OCAML_NATIVE_LINK_FLAGS +=
################################################
# Generated files
#
# Workaround for the fact that ocamldep does not pay attention to .mll
# and .mly files.
#
# OCamlGeneratedFiles(parser.ml lexer.ml)
################################################
# Build an OCaml library
#
# FILES[] =
# file1
# file2
#
# LIB = main
#
# .DEFAULT: $(OCamlLibrary $(LIB), $(FILES))
################################################
# Build an OCaml program
#
FILES[] = multidim two_d kd_tree repl
# file1
# file2
#
PROGRAM = repl
# OCAML_LIBS +=
# OCAML_CLIBS +=
OCAML_OTHER_LIBS += str
# OCAML_LIB_FLAGS +=
#
.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
.PHONY: clean
clean:
$(RM) *~ *.cm* *.o *.annot $(PROGRAM) $(PROGRAM).opt $(PROGRAM).run OMake*.omc