1
2OCAMLMKTOP(1) General Commands Manual OCAMLMKTOP(1)
3
4
5
7 ocamlmktop - Building custom toplevel systems
8
9
11 ocamlmktop [ -v ] [ -cclib libname ] [ -ccopt option ] [ -custom [
12 -o exec-file ] [ -I lib-dir ] filename ...
13
14
16 The ocamlmktop(1) command builds Objective Caml toplevels that contain
17 user code preloaded at start-up. The ocamlmktop(1) command takes as
18 argument a set of x.cmo and x.cma files, and links them with the object
19 files that implement the Objective Caml toplevel. If the -custom flag
20 is given, C object files and libraries (.o and .a files) can also be
21 given on the command line and are linked in the resulting toplevel.
22
23
25 The following command-line options are recognized by ocamlmktop(1).
26
27 -v Print the version number of the compiler.
28
29 -cclib -llibname
30 Pass the -llibname option to the C linker when linking in ``cus‐
31 tom runtime'' mode (see the corresponding option for ocamlc(1).
32
33 -ccopt Pass the given option to the C compiler and linker, when linking
34 in ``custom runtime'' mode. See the corresponding option for
35 ocamlc(1).
36
37 -custom
38 Link in ``custom runtime'' mode. See the corresponding option
39 for ocamlc(1).
40
41 -I directory
42 Add the given directory to the list of directories searched for
43 compiled interface files (.cmo and .cma).
44
45 -o exec-file
46 Specify the name of the toplevel file produced by the linker.
47 The default is is a.out.
48
49
51 ocamlc(1).
52
53
54
55 OCAMLMKTOP(1)