1OCAMLMKTOP(1)               General Commands Manual              OCAMLMKTOP(1)
2
3
4

NAME

6       ocamlmktop - Building custom toplevel systems
7
8

SYNOPSIS

10       ocamlmktop  [  -v  ]  [  -cclib libname ] [ -ccopt option ] [ -custom [
11       -o exec-file ] [ -I lib-dir ] filename ...
12
13

DESCRIPTION

15       The ocamlmktop(1) command builds Objective Caml toplevels that  contain
16       user  code  preloaded  at start-up.  The ocamlmktop(1) command takes as
17       argument a set of x.cmo and x.cma files, and links them with the object
18       files  that implement the Objective Caml toplevel.  If the -custom flag
19       is given, C object files and libraries (.o and .a files)  can  also  be
20       given on the command line and are linked in the resulting toplevel.
21
22

OPTIONS

24       The following command-line options are recognized by ocamlmktop(1).
25
26
27       -v     Print the version number of the compiler.
28
29
30       -cclib -llibname
31              Pass the -llibname option to the C linker when linking in ``cus‐
32              tom runtime'' mode (see the corresponding option for ocamlc(1).
33
34
35       -ccopt Pass the given option to the C compiler and linker, when linking
36              in  ``custom  runtime''  mode.  See the corresponding option for
37              ocamlc(1).
38
39
40       -custom
41              Link in ``custom runtime'' mode. See  the  corresponding  option
42              for ocamlc(1).
43
44
45       -Idirectory
46              Add  the given directory to the list of directories searched for
47              compiled interface files (.cmo and .cma).
48
49
50       -o exec-file
51              Specify the name of the toplevel file produced  by  the  linker.
52              The default is is a.out.
53
54

SEE ALSO

56       ocamlc(1).
57
58
59
60                                                                 OCAMLMKTOP(1)
Impressum