-
Notifications
You must be signed in to change notification settings - Fork 1
/
OMakefile
53 lines (34 loc) · 1.28 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
.PHONY: all install clean
# This project requires ocamlfind (default - false).
#
USE_OCAMLFIND = true
BYTE_ENABLED = true
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
#
# Various options
#
OCAMLFLAGS += -dtypes -g
FILES[] = find_ear_rails parse_ruby_methods
.SUBDIRS: diamondback-ruby-0.20090726
PROGRAM = find_ear_rails
GETOPT_DIR=$(shell ocamlfind query getopt)
OCAMLGRAPH_DIR=$(shell ocamlfind query ocamlgraph)
OCAMLINCLUDES += diamondback-ruby-0.20090726/src/cfg diamondback-ruby-0.20090726/src/dyn diamondback-ruby-0.20090726/src/parser diamondback-ruby-0.20090726/src/typing diamondback-ruby-0.20090726/src/ $(GETOPT_DIR) $(OCAMLGRAPH_DIR)
OCAML_LIBS += diamondback-ruby-0.20090726/libdruby
OCAML_OTHER_LIBS += nums unix str getopt graph
# OCAML_CLIBS +=
# OCAML_OTHER_LIBS +=
# OCAML_LIB_FLAGS +=
#
.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
ALL_FILES = $`(ls R, .) #`
ALL_TARGETS = $`(filter-targets $(ALL_FILES))) #`
TARGETS = $`(filter-proper-targets $(ALL_TARGETS)) #`
ANNOTS = $`(filter-exists $(replacesuffixes .ml, .annot, \
$(filter %.ml, $(ALL_TARGETS)))) #`
clean:
rm -f $(TARGETS)
rm -f $(ANNOTS)