| 1 |
;************************************************************************** |
| 2 |
;* * |
| 3 |
;* OCaml * |
| 4 |
;* * |
| 5 |
;* Thomas Refis, Jane Street Europe * |
| 6 |
;* * |
| 7 |
;* Copyright 2018 Jane Street Group LLC * |
| 8 |
;* * |
| 9 |
;* All rights reserved. This file is distributed under the terms of * |
| 10 |
;* the GNU Lesser General Public License version 2.1, with the * |
| 11 |
;* special exception on linking described in the file LICENSE. * |
| 12 |
;* * |
| 13 |
;************************************************************************** |
| 14 |
|
| 15 |
(rule |
| 16 |
(targets arch.ml CSE.ml proc.ml reload.ml scheduling.ml selection.ml |
| 17 |
stackframe.ml) |
| 18 |
(mode fallback) |
| 19 |
(deps (:conf ../Makefile.config) |
| 20 |
(glob_files amd64/*.ml) |
| 21 |
(glob_files arm64/*.ml) |
| 22 |
(glob_files power/*.ml) |
| 23 |
(glob_files riscv/*.ml) |
| 24 |
(glob_files s390x/*.ml)) |
| 25 |
(action (bash "cp `grep '^ARCH=' %{conf} | cut -d'=' -f2`/*.ml ."))) |
| 26 |
|
| 27 |
(rule |
| 28 |
(targets emit.ml) |
| 29 |
(mode fallback) |
| 30 |
(deps (:conf ../Makefile.config) |
| 31 |
amd64/emit.mlp |
| 32 |
arm64/emit.mlp |
| 33 |
power/emit.mlp |
| 34 |
riscv/emit.mlp |
| 35 |
s390x/emit.mlp) |
| 36 |
(action |
| 37 |
(progn |
| 38 |
(with-stdout-to contains-input-name |
| 39 |
(bash "echo `grep '^ARCH=' %{conf} | cut -d'=' -f2`/emit.mlp")) |
| 40 |
(with-stdout-to %{targets} |
| 41 |
(progn |
| 42 |
(bash "echo \\# 1 \\\"`cat contains-input-name`\\\"") |
| 43 |
(bash "%{dep:../tools/cvt_emit.exe} < `cat contains-input-name`")))))) |