File: OMakefile

package info (click to toggle)
bin-prot 1.2.23-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 620 kB
  • ctags: 1,699
  • sloc: ml: 5,126; ansic: 1,586; makefile: 121
file content (41 lines) | stat: -rw-r--r-- 986 bytes parent folder | download
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
OCAML_LIBRARIES =
OCAMLPACKS = bigarray

LIB_CNAMES = common_stubs write_stubs read_stubs

LIB_MLNAMES = \
  binable \
  nat0 common unsafe_common \
  unsafe_write_c unsafe_read_c \
  size write_ml read_ml \
  write_c read_c \
  type_class \
  map_to_safe \
  utils

$(addsuffixes .cmi .cmo .cmx .o, read_ml write_ml): int_codes.mlh

pa_bin_prot.cmi pa_bin_prot.cmo: $(LIBDIR)/pa_type_conv.cmi $(LIBDIR)/pa_type_conv.cmo

OCamlPreprocess(camlp4orf, pa_bin_prot)

OCamlPreprocess($(PA_CPP), size write_ml read_ml unsafe_read_c type_class)

OCamlMakeLibPackage(bin_prot)

foreach(suff, .cmi .cmo)
  pa_file = pa_bin_prot$(suff)
  $(LIBDIR)/$(pa_file): $(pa_file) bin_prot
    rm(-f $@)
    symlink($<, $@)

.PHONY: pa_bin_prot

.DEFAULT: pa_bin_prot
pa_bin_prot: $(LIBDIR)/pa_bin_prot.cmi $(LIBDIR)/pa_bin_prot.cmo

InstantiateOCamlEnv()

doc: bin_prot $(OCAMLDOC_PP)
  $(OCamlDocs Bin_prot, *.mli *.ml, \
  "Support for reading and writing OCaml-values in a type-safe binary protocol.")