fix the dune build
parent
239de4d870
commit
9eb9d04751
|
@ -22,9 +22,11 @@
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets ocamltest_config.ml)
|
(targets ocamltest_config.ml)
|
||||||
(deps ../Makefile.config ../Makefile.common ../Makefile.best_binaries Makefile
|
(deps ../Makefile.config ../Makefile.build_config
|
||||||
|
../Makefile.common ../Makefile.best_binaries
|
||||||
|
Makefile
|
||||||
./ocamltest_config.ml.in ./getocamloptdefaultflags)
|
./ocamltest_config.ml.in ./getocamloptdefaultflags)
|
||||||
(action (run make %{targets})))
|
(action (run make %{targets} COMPUTE_DEPS=false)))
|
||||||
|
|
||||||
;; FIXME: handle UNIX_OR_WIN32 or something similar
|
;; FIXME: handle UNIX_OR_WIN32 or something similar
|
||||||
(library
|
(library
|
||||||
|
|
18
runtime/dune
18
runtime/dune
|
@ -16,28 +16,32 @@
|
||||||
(targets primitives)
|
(targets primitives)
|
||||||
(mode fallback)
|
(mode fallback)
|
||||||
(deps alloc.c array.c compare.c extern.c floats.c gc_ctrl.c hash.c intern.c
|
(deps alloc.c array.c compare.c extern.c floats.c gc_ctrl.c hash.c intern.c
|
||||||
interp.c ints.c io.c lexing.c md5.c meta.c obj.c parsing.c signals.c
|
interp.c ints.c io.c
|
||||||
str.c sys.c callback.c weak.c finalise.c stacks.c dynlink.c
|
lexing.c md5.c meta.c memprof.c obj.c parsing.c signals.c str.c sys.c
|
||||||
backtrace_byt.c backtrace.c spacetime_byt.c afl.c bigarray.c)
|
callback.c weak.c
|
||||||
|
finalise.c stacks.c dynlink.c backtrace_byt.c backtrace.c
|
||||||
|
spacetime_byt.c afl.c
|
||||||
|
bigarray.c eventlog.c)
|
||||||
(action (with-stdout-to %{targets} (run %{dep:gen_primitives.sh}))))
|
(action (with-stdout-to %{targets} (run %{dep:gen_primitives.sh}))))
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets libcamlrun.a)
|
(targets libcamlrun.a)
|
||||||
(mode fallback)
|
(mode fallback)
|
||||||
(deps ../Makefile.config ../Makefile.common Makefile
|
(deps ../Makefile.config ../Makefile.build_config
|
||||||
|
../Makefile.common Makefile
|
||||||
(glob_files caml/*.h)
|
(glob_files caml/*.h)
|
||||||
interp.c misc.c stacks.c fix_code.c startup_aux.c startup_byt.c
|
interp.c misc.c stacks.c fix_code.c startup_aux.c startup_byt.c
|
||||||
freelist.c major_gc.c minor_gc.c memory.c alloc.c roots_byt.c
|
freelist.c major_gc.c minor_gc.c memory.c alloc.c roots_byt.c
|
||||||
globroots.c fail_byt.c signals.c signals_byt.c printexc.c
|
globroots.c fail_byt.c signals.c signals_byt.c printexc.c
|
||||||
backtrace_byt.c backtrace.c compare.c ints.c floats.c str.c array.c
|
backtrace_byt.c backtrace.c compare.c ints.c floats.c str.c array.c
|
||||||
io.c extern.c intern.c hash.c sys.c meta.c parsing.c gc_ctrl.c md5.c
|
io.c extern.c intern.c hash.c sys.c meta.c parsing.c gc_ctrl.c eventlog.c
|
||||||
obj.c lexing.c callback.c debugger.c weak.c compact.c finalise.c
|
md5.c obj.c lexing.c callback.c debugger.c weak.c compact.c finalise.c
|
||||||
custom.c dynlink.c spacetime_byt.c afl.c unix.c win32.c bigarray.c
|
custom.c dynlink.c spacetime_byt.c afl.c unix.c win32.c bigarray.c
|
||||||
main.c memprof.c domain.c)
|
main.c memprof.c domain.c)
|
||||||
(action
|
(action
|
||||||
(progn
|
(progn
|
||||||
(bash "touch .depend") ; hack.
|
(bash "touch .depend") ; hack.
|
||||||
(run make %{targets})
|
(run make %{targets} COMPUTE_DEPS=false)
|
||||||
(bash "rm .depend"))))
|
(bash "rm .depend"))))
|
||||||
|
|
||||||
;; HACK
|
;; HACK
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
(mode fallback)
|
(mode fallback)
|
||||||
(deps (:mk Makefile)
|
(deps (:mk Makefile)
|
||||||
../Makefile.config
|
../Makefile.config
|
||||||
|
; for now the utils Makefile does not use build_config
|
||||||
config.mlp)
|
config.mlp)
|
||||||
(action (system "make -f %{mk} %{targets}")))
|
(action (system "make -f %{mk} %{targets}")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue