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

NAME

6       ocamlmktop - Building custom toplevel systems
7
8

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

24       The following command-line options are recognized by ocamlmktop(1).
25
26       -v     Print the version string of the compiler and exit.
27
28       -vnum or -version
29              Print the version number of the compiler in short form and exit.
30
31       -cclib -llibname
32              Pass the -llibname option to the C linker when linking in ``cus‐
33              tom runtime'' mode (see the corresponding option for ocamlc(1).
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       -custom
40              Link in ``custom runtime'' mode. See  the  corresponding  option
41              for ocamlc(1).
42
43       -I directory
44              Add  the given directory to the list of directories searched for
45              compiled interface files (.cmo and .cma).
46
47       -o exec-file
48              Specify the name of the toplevel file produced  by  the  linker.
49              The default is is a.out.
50
51

SEE ALSO

53       ocamlc(1).
54
55
56
57                                                                 OCAMLMKTOP(1)
Impressum