2 include ..
/Makefile.conf
6 OBJS
=pretty_print.cmx util.cmx dgraph.cmx \
7 javascript.cmx js_output.cmx js_simpl.cmx \
8 instr.cmx code.cmx primitive.cmx
subst.cmx pure_fun.cmx deadcode.cmx \
10 tailcall.cmx freevars.cmx phisimpl.cmx \
11 linker.cmx generate.cmx parse.cmx driver.cmx
13 COMPOBJS
=$(OBJS
) main.cmx
15 compile
: $(COMPOBJS
:cmx
=cmo
)
16 ocamlfind ocamlc
-package findlib
,str
-linkpkg
-o
$@
$^
18 $(COMPILER
): $(COMPOBJS
)
19 ocamlfind ocamlopt
-package findlib
,str
-linkpkg
-o
$@
$^
21 compiler.cma
: $(OBJS
:cmx
=cmo
)
22 ocamlfind ocamlc
-a
-o
$@
$^
25 ocamlfind ocamlopt
-package findlib
,str
-c
$<
28 ocamlfind ocamlc
-package findlib
,str
-c
$<
31 ocamlfind ocamlc
-package findlib
,str
-c
$<
35 rm -f js_of_ocaml compile
38 ocamldep
*.ml
*.mli
> .depend