forked from mfp/oraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOMakefile
More file actions
73 lines (55 loc) · 1.59 KB
/
Copy pathOMakefile
File metadata and controls
73 lines (55 loc) · 1.59 KB
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
USE_OCAMLFIND = true
BYTE_ENABLED = true
NATIVE_ENABLED = true
OCAMLFINDFLAGS = -syntax camlp4o -ppopt -lwt-debug
OCAMLFLAGS = -g -w +a-4-6-9-27..29-30-32..99 -warn-error -a -bin-annot
OCAMLOPTFLAGS = -inline 1000
VERSION = 0.1
OCAMLPACKS[] =
batteries
lwt.unix
lwt.syntax
lwt.syntax.log
extprot
tls.lwt
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
OBJECTS[] =
oraft
oraft_lwt
oraft_lwt_tls
oraft_proto
oraft_util
RSM
OCamlGeneratedFiles(oraft_proto)
oraft_proto.ml: oraft_proto.proto
extprotc $<
LIBS = $(OCamlLibrary oraft, $(OBJECTS))
section
OCAML_LIBS = oraft
PROGRAMS = $(OCamlProgram test_DES, test_DES) \
$(OCamlProgram dict, dict)
.DEFAULT: $(PROGRAMS)
%.sig: %.ml %.cmo
$(OCAMLFIND) $(OCAMLC) -package camlp4.macro,$(concat \,, $(OCAMLPACKS)) \
-syntax camlp4o \
$(mapprefix -I, $(OCAMLINCLUDES)) \
$(OCAMLFLAGS) $(OCAMLCFLAGS) -i $< > $@
.DEFAULT: $(LIBS)
META: META.in
sed s/VERSION/$(VERSION)/g $< > $@
.PHONY: clean install uninstall
install: $(LIBS) META
ocamlfind remove oraft
ocamlfind install oraft META \
oraft.{a,cma,cmxa,mli,cmi,cmt,cmti} \
oraft_lwt.{mli,cmi,cmt,cmti} \
oraft_lwt_tls.{cmi,cmt} \
RSM.{mli,cmi,cmt,cmti}
uninstall:
ocamlfind remove oraft
clean:
rm -f $(filter-proper-targets $(ls R, .))
# vim: set expandtab: