And the solution
This commit is contained in:
parent
18f29579e0
commit
c785089647
4
Makefile
4
Makefile
|
@ -4,8 +4,8 @@ OCAMLOPT_FLAGS:=-output-complete-obj
|
||||||
|
|
||||||
.PHONY: ocaml
|
.PHONY: ocaml
|
||||||
ocaml:
|
ocaml:
|
||||||
dune build ocaml/hello.a
|
dune build --verbose ocaml/hello.exe.o
|
||||||
cp _build/default/ocaml/hello.a $(BUILD)/libfoo.a
|
ar -rs $(BUILD)/libfoo.a _build/default/ocaml/hello.exe.o
|
||||||
|
|
||||||
ocaml-manual:
|
ocaml-manual:
|
||||||
mkdir -p $(BUILD)
|
mkdir -p $(BUILD)
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
(library
|
(executable
|
||||||
(name hello))
|
(name hello)
|
||||||
|
(modes object))
|
||||||
|
|
|
@ -2,3 +2,4 @@ let hello () = "hello"
|
||||||
|
|
||||||
let () =
|
let () =
|
||||||
Callback.register "Hello callback" hello;
|
Callback.register "Hello callback" hello;
|
||||||
|
Callback.register "Bye callback" Bye.bye;
|
||||||
|
|
Loading…
Reference in a new issue