forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdune
125 lines (120 loc) · 2.66 KB
/
dune
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
;**************************************************************************
;* *
;* OCaml *
;* *
;* Thomas Refis, Jane Street Europe *
;* *
;* Copyright 2018 Jane Street Group LLC *
;* *
;* All rights reserved. This file is distributed under the terms of *
;* the GNU Lesser General Public License version 2.1, with the *
;* special exception on linking described in the file LICENSE. *
;* *
;**************************************************************************
(rule
(targets primitives)
(mode fallback)
(deps
; matches the line structure of files in gen_primitives.sh
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
memprof.c
obj.c
parsing.c
signals.c
str.c
sys.c
callback.c
weak.c
finalise.c
stacks.c
dynlink.c
backtrace_byt.c
backtrace.c
afl.c
bigarray.c
prng.c
eventlog.c
misc.c
domain.c
float32.c
simd.c
blake2.c)
(action
(with-stdout-to
%{targets}
(run %{dep:gen_primitives.sh}))))
(rule
(targets
libasmrun.a
libasmrund.a
libasmruni.a
libasmrun_pic.a
libasmrunnnp.a
libasmrun_shared.so
libcamlrun.a
libcamlrund.a
libcamlruni.a
libcamlrun_pic.a
libcamlrun_shared.so
ocamlrun
ocamlrund
ocamlruni
ld.conf
sak)
(mode fallback)
(deps
../Makefile.config
../Makefile.build_config
../Makefile.config_if_required
../Makefile.common
Makefile
(glob_files caml/*.h)
caml/domain_state.tbl
primitives
signals_osdep.h
(glob_files *.S)
(glob_files *.c))
(action
(no-infer
(progn
(bash "touch .depend") ; hack.
(run make "SAK_LINK=cc -o $(1) $(2)" COMPUTE_DEPS=false sak)
(run make -sj8 %{targets} COMPUTE_DEPS=false)
(bash "rm .depend")))))
(install
(files ocamlrun ocamlrund ocamlruni)
(section bin)
(package ocaml_runtime_stdlib))
(install
(files
ld.conf
libcamlrun.a
libcamlrund.a
libcamlruni.a
libcamlrun_pic.a
libcamlrun_shared.so)
(section lib)
(package ocaml_runtime_stdlib))
(install
(files
libasmrun.a
libasmrund.a
libasmruni.a
libasmrun_pic.a
libasmrunnnp.a
libasmrun_shared.so)
(section lib)
(package ocaml_runtime_stdlib))