1
ACLOCAL_AMFLAGS = -I m4
5
EXTRA_DIST=stdcompat.opam dune stdcompat.ml stdcompat__native.ml_byte \
6
stdcompat__native.ml_native stdcompat_tests.ml stdcompat__native.mli \
7
stdcompat__pervasives.mli stdcompat__arg.mli stdcompat__lazy.mli \
8
stdcompat__char.mli stdcompat__uchar.mli stdcompat__sys.mli stdcompat__buffer.mli \
9
stdcompat__string.mli stdcompat__stringLabels.mli stdcompat__bytes.mli \
10
stdcompat__bytesLabels.mli stdcompat__list.mli stdcompat__listLabels.mli \
11
stdcompat__stack.mli \
12
stdcompat__hashtbl.mli stdcompat__set.mli \
13
stdcompat__map.mli stdcompat__weak.mli \
14
stdcompat__stream.mli stdcompat__digest.mli stdcompat__nativeint.mli \
16
stdcompat__int64.mli stdcompat__int32.mli stdcompat__filename.mli \
17
stdcompat__array.mli stdcompat__arrayLabels.mli \
18
stdcompat__float.mli stdcompat__queue.mli stdcompat__ephemeron.mli \
19
stdcompat__spacetime.mli stdcompat__moreLabels.mli stdcompat__lexing.mli \
20
stdcompat__option.mli stdcompat__result.mli stdcompat__bool.mli \
21
stdcompat__fun.mli stdcompat__format.mli stdcompat__printf.mli stdcompat__stdlib.mli \
24
MODULES = stdcompat__init.ml stdcompat__root.ml stdcompat__seq_s.ml \
25
stdcompat__seq.ml stdcompat__tools.ml \
26
stdcompat__pervasives_s.ml stdcompat__arg_s.ml stdcompat__lazy_s.ml \
27
stdcompat__char_s.ml stdcompat__uchar_s.ml stdcompat__buffer_s.ml \
28
stdcompat__string_s.ml stdcompat__stringLabels_s.ml stdcompat__bytes_s.ml \
29
stdcompat__bytesLabels_s.ml stdcompat__list_s.ml stdcompat__listLabels_s.ml \
30
stdcompat__stack_s.ml \
31
stdcompat__hashtbl_s.ml stdcompat__set_s.ml \
32
stdcompat__map_s.ml stdcompat__weak_s.ml stdcompat__sys_s.ml \
33
stdcompat__stream_s.ml stdcompat__digest_s.ml stdcompat__nativeint_s.ml \
35
stdcompat__int64_s.ml stdcompat__int32_s.ml stdcompat__filename_s.ml \
36
stdcompat__array_s.ml stdcompat__arrayLabels_s.ml \
37
stdcompat__float_s.ml stdcompat__queue_s.ml stdcompat__ephemeron_s.ml \
38
stdcompat__spacetime_s.ml stdcompat__moreLabels_s.ml stdcompat__lexing_s.ml \
39
stdcompat__option_s.ml stdcompat__result_s.ml stdcompat__bool_s.ml \
40
stdcompat__fun_s.ml stdcompat__stdlib_s.ml stdcompat__printf_s.ml \
41
stdcompat__pervasives.ml stdcompat__arg.ml stdcompat__lazy.ml \
42
stdcompat__char.ml stdcompat__uchar.ml stdcompat__sys.ml stdcompat__buffer.ml \
43
stdcompat__string.ml stdcompat__stringLabels.ml stdcompat__bytes.ml \
44
stdcompat__bytesLabels.ml stdcompat__list.ml stdcompat__listLabels.ml \
45
stdcompat__stack.ml stdcompat__hashtbl_ext.ml \
46
stdcompat__hashtbl.ml stdcompat__set.ml \
47
stdcompat__map.ml stdcompat__weak.ml \
48
stdcompat__stream.ml stdcompat__digest.ml stdcompat__nativeint.ml \
50
stdcompat__int64.ml stdcompat__int32.ml stdcompat__filename.ml \
51
stdcompat__array.ml stdcompat__arrayLabels.ml \
52
stdcompat__float.ml stdcompat__queue.ml stdcompat__ephemeron.ml \
53
stdcompat__spacetime.ml stdcompat__moreLabels.ml stdcompat__lexing.ml \
54
stdcompat__option.ml stdcompat__result.ml stdcompat__bool.ml \
55
stdcompat__fun.ml stdcompat__format.ml stdcompat__printf.ml stdcompat__stdlib.ml
57
mypkg_SCRIPTS = META stdcompat.cmi stdcompat__native.cmi $(MODULES:.ml=.cmi)
59
if OCAML_SUPPORTS_BYTECODE
60
mypkg_SCRIPTS += stdcompat.cma
63
if OCAML_SUPPORTS_NATIVE
64
mypkg_SCRIPTS += stdcompat.cmxa stdcompat.a stdcompat.cmx \
65
stdcompat__native.cmx $(MODULES:.ml=.cmx)
68
if OCAML_SUPPORTS_SHARED
69
mypkg_SCRIPTS += stdcompat.cmxs
72
PACKAGES = $(RESULT_PKG) $(SEQ_PKG) $(UCHAR_PKG)
73
OCAMLFLAGS = $(PACKAGES:%=-package %)
74
OCAMLCFLAGS = $(OCAMLFLAGS) -I @srcdir@
75
OCAMLLDFLAGS = $(OCAMLFLAGS)
77
if OCAML_SUPPORTS_NO_ALIAS_DEPS
78
OCAMLFLAGS += -no-alias-deps
81
SUFFIXES = .ml .mli .cmi .cmo .cmx .cmxa .cmxs
86
$(OCAMLBEST) -c $(OCAMLCFLAGS) $< -o $@
89
$(OCAMLC) -c $(OCAMLCFLAGS) $< -o $@
92
$(OCAMLOPT) -c $(OCAMLCFLAGS) $< -o $@
94
stdcompat.cma : stdcompat__native.cmo $(MODULES:.ml=.cmo) stdcompat.cmo
95
$(OCAMLC) $(OCAMLLDFLAGS) -a $^ -o $@
97
stdcompat.cmxa : stdcompat__native.cmx $(MODULES:.ml=.cmx) stdcompat.cmx
98
$(OCAMLOPT) $(OCAMLLDFLAGS) -a $^ -o $@
100
stdcompat.a : stdcompat.cmxa
102
stdcompat.cmxs : stdcompat__native.cmx $(MODULES:.ml=.cmx) stdcompat.cmx
103
$(OCAMLOPT) $(OCAMLLDFLAGS) -shared $^ -o $@
105
stdcompat__native.cmo : stdcompat__native.ml_byte
106
$(OCAMLC) $(OCAMLCFLAGS) -c -impl stdcompat__native.ml_byte
108
stdcompat__native.cmx : stdcompat__native.ml_native
109
$(OCAMLOPT) $(OCAMLCFLAGS) -c -impl stdcompat__native.ml_native
114
.depend : $(MODULES) $(MODULES:.ml=.mli) stdcompat.ml stdcompat.mli stdcompat__native.ml_byte
115
cp stdcompat__native.ml_byte stdcompat__native.ml
116
$(OCAMLDEP) stdcompat__native.ml $^ >$@ || rm -f .depend
119
tests : stdcompat_tests
122
stdcompat_tests: stdcompat.$(CMAX) stdcompat_tests.ml
123
$(OCAMLBEST) stdcompat.$(CMAX) stdcompat_tests.ml -o $@
127
CLEANFILES = *.cmi *.cmo *.cmx *.cmt *.cmti *.o *.a stdcompat.cma \
128
stdcompat.cmxa stdcompat__native.ml \
129
stdcompat.cmxs stdcompat_tests $(bin_SCRIPTS) .depend