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 74 75
|
BIN := compiler/${COMPILER} compiler/${MINIFIER}
INTF := lib/*.cmi
IMPL := lib/$(LIBNAME).cma \
lib/syntax/pa_js.cmo \
lib/dll$(LIBNAME)$(DLLEXT) \
lib/lib$(LIBNAME)$(LIBEXT)
ifeq "${BEST}" "opt"
ifeq "${NATDYNLINK}" "YES"
IMPL += lib/syntax/pa_js.cmx lib/syntax/pa_js.cmxs
endif
endif
ifneq "${WITH_GRAPHICS}" ""
IMPL += lib/graphics/graphics.cma
INTF += lib/graphics/*.cmi
endif
OTHERS := runtime/runtime.js runtime/weak.js \
runtime/classlist.js \
runtime/toplevel.js \
runtime/graphics.js
COMP_INTF := compiler/compiler.cmi
COMP_IMPL := compiler/compiler.cma
COMP_NAT_IMPL := compiler/compiler.cmxa
COMP_NATDYN_IMPL := compiler/compiler.cmxs
OCAMLBUILD_IMPL := ocamlbuild_js_of_ocaml.cma
INTF += ocamlbuild/_build/ocamlbuild_js_of_ocaml.cmi
ifeq "${BEST}" "opt"
OCAMLBUILD_IMPL += ocamlbuild_js_of_ocaml.cmxa ocamlbuild_js_of_ocaml.a
ifeq "${NATDYNLINK}" "YES"
OCAMLBUILD_IMPL += ocamlbuild_js_of_ocaml.cmxs
endif
endif
IMPL += $(addprefix ocamlbuild/_build/,$(OCAMLBUILD_IMPL))
ifneq "${WITH_DERIVING}" ""
JSON := lib/deriving_json/deriving_Json.cmi \
lib/deriving_json/deriving_Json_lexer.cmi
INTF += $(JSON)
INTF += lib/syntax/pa_deriving_Json.cmi
IMPL += lib/syntax/pa_deriving_Json.cmo \
lib/syntax/pa_deriving_Json.cmi \
lib/deriving_json.cma
NATIMPL := lib/deriving_json.cmxa \
lib/deriving_json.cmxs \
lib/deriving_json$(LIBEXT) \
NATIMPL += $(JSON:.cmi=.cmx)
ifeq "${NATDYNLINK}" "YES"
NATIMPL += lib/syntax/pa_deriving_Json.cmx \
lib/syntax/pa_deriving_Json.cmxs
COMP_IMPL += $(COMP_NATDYN_IMPL)
endif
ifeq "$(BEST)" "opt"
IMPL += $(NATIMPL)
COMP_IMPL += $(COMP_NAT_IMPL)
endif
endif
DOC := ${INTF:.cmi=.mli}
|