-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOMakefile
55 lines (41 loc) · 1.03 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
USE_OCAMLFIND = true
BYTE_ENABLED = true
NATIVE_ENABLED = true
OCAMLFLAGS = -thread -g -w A-4-29-33-41-44-45 -bin-annot
GEN[] =
netamqp_methods_0_9.ml
netamqp_methods_0_9.mli
FILES[] =
netamqp_rtypes
netamqp_types
netamqp_transport
netamqp_methods_0_9
netamqp_endpoint
netamqp_connection
netamqp_channel
netamqp_exchange
netamqp_queue
netamqp_basic
netamqp_tx
OCAMLPACKS[] += rpc pcre
LocalOCamlGeneratedFiles($(GEN))
.PHONY: clean
clean:
rm -f *.o *.a *.cm* *~ *.annot
rm -f amqp_gen $(GEN)
.DEFAULT: $(OCamlLibrary netamqp, $(FILES))
$(GEN): amqp_gen amqp0-9-1.xml
./amqp_gen
amqp_gen: amqp_gen.ml
ocamlfind ocamlc -package pxp,pcre -linkpkg -o amqp_gen amqp_gen.ml
doc/html: $(addsuffix .mli, $(FILES))
rm -rf doc/html
mkdir doc/html
ocamlfind ocamldoc -html -stars -d doc/html \
-package "$(OCAMLPACKS)" -css-style style.css \
-t "Netamqp - AMQP client" \
$(addsuffix .mli, $(FILES))
cp style.css doc/html
#section
# OCAML_LIBS = dns
# OCamlProgram(resolve, resolve)