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 (rule
24 (targets ocamltest_config.ml)
25 (deps ../Makefile.config ../Makefile.common ../Makefile.best_binaries Makefile
26 ./ocamltest_config.ml.in ./getocamloptdefaultflags)
27 (action (run make %{targets})))
28
29 ;; FIXME: handle UNIX_OR_WIN32 or something similar
30 (library
31 (name ocamltest_core_and_plugin)
32 (modes byte)
33 (wrapped false)
34 (flags (:standard -nostdlib))
35 (libraries ocamlcommon stdlib)
36 (modules (:standard \ options main))
37 (c_flags (-DCAML_INTERNALS -I%{project_root}/runtime)) ; fixme
38 (c_names run_unix run_stubs ocamltest_stdlib_stubs))
39
40 (rule
41 (targets empty.ml)
42 (deps (source_tree %{project_root}/runtime/caml))
43 (action (write-file %{targets} "(* hack *)")))
44
45 (executable
46 (name main)
47 (modes byte)
48 (flags (:standard -nostdlib))
49 (modules options main)
50 (libraries ocamltest_core_and_plugin runtime stdlib))
51
52 (rule (copy main.exe ocamltest.byte))
53