| 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 |
(ocamllex |
| 16 |
(modules tsl_lexer) |
| 17 |
(mode fallback)) |
| 18 |
|
| 19 |
(ocamlyacc |
| 20 |
(modules tsl_parser) |
| 21 |
(mode fallback)) |
| 22 |
|
| 23 |
;; FIXME: handle UNIX_OR_WIN32 or something similar |
| 24 |
(library |
| 25 |
(name ocamltest_core_and_plugin) |
| 26 |
(modes byte) |
| 27 |
(wrapped false) |
| 28 |
(flags (:standard -nostdlib)) |
| 29 |
(libraries ocamlcommon stdlib unix) |
| 30 |
(modules (:standard \ options main ocamltest_unix_dummy ocamltest_unix_real)) |
| 31 |
(c_flags (-DCAML_INTERNALS -I%{project_root}/runtime)) ; fixme |
| 32 |
(c_names run_unix run_stubs)) |
| 33 |
|
| 34 |
(rule |
| 35 |
(targets empty.ml) |
| 36 |
(deps (source_tree %{project_root}/runtime/caml)) |
| 37 |
(action (write-file %{targets} "(* hack *)"))) |
| 38 |
|
| 39 |
(executable |
| 40 |
(name main) |
| 41 |
(modes byte) |
| 42 |
(flags (:standard -nostdlib)) |
| 43 |
(modules options main) |
| 44 |
(libraries ocamltest_core_and_plugin runtime stdlib)) |
| 45 |
|
| 46 |
(rule (copy main.exe ocamltest.byte)) |