2008-09-15 07:12:56 -07:00
|
|
|
\" $Id$
|
1999-02-25 06:25:54 -08:00
|
|
|
.TH OCAMLMKTOP 1
|
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
ocamlmktop \- Building custom toplevel systems
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ocamlmktop
|
|
|
|
[
|
2010-05-20 07:06:29 -07:00
|
|
|
.BR \-v | \-version | \-vnum
|
1999-02-25 06:25:54 -08:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI \-cclib \ libname
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI \-ccopt \ option
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-custom
|
|
|
|
[
|
|
|
|
.BI \-o \ exec-file
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI \-I \ lib-dir
|
|
|
|
]
|
|
|
|
.I filename ...
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
2008-09-15 07:05:30 -07:00
|
|
|
The
|
1999-02-25 06:25:54 -08:00
|
|
|
.BR ocamlmktop (1)
|
|
|
|
command builds Objective Caml toplevels that
|
|
|
|
contain user code preloaded at start-up.
|
2008-09-15 07:05:30 -07:00
|
|
|
The
|
1999-02-25 06:25:54 -08:00
|
|
|
.BR ocamlmktop (1)
|
|
|
|
command takes as argument a set of
|
2008-09-15 07:05:30 -07:00
|
|
|
.IR x .cmo
|
1999-02-25 06:25:54 -08:00
|
|
|
and
|
2008-09-15 07:05:30 -07:00
|
|
|
.IR x .cma
|
|
|
|
files, and links them with the object files that implement the Objective
|
1999-02-25 06:25:54 -08:00
|
|
|
Caml toplevel. If the
|
2008-09-15 07:05:30 -07:00
|
|
|
.B \-custom
|
1999-02-25 06:25:54 -08:00
|
|
|
flag is given, C object files and libraries (.o and .a files) can also
|
|
|
|
be given on the command line and are linked in the resulting toplevel.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
|
2008-09-15 07:05:30 -07:00
|
|
|
The following command-line options are recognized by
|
1999-02-25 06:25:54 -08:00
|
|
|
.BR ocamlmktop (1).
|
|
|
|
.TP
|
|
|
|
.B \-v
|
2010-05-20 07:06:29 -07:00
|
|
|
Print the version string of the compiler and exit.
|
|
|
|
.TP
|
|
|
|
.BR \-vnum or \-version
|
|
|
|
Print the version number of the compiler in short form and exit.
|
1999-02-25 06:25:54 -08:00
|
|
|
.TP
|
2008-09-15 07:05:30 -07:00
|
|
|
.BI \-cclib\ \-l libname
|
|
|
|
Pass the
|
1999-02-25 06:25:54 -08:00
|
|
|
.BI \-l libname
|
|
|
|
option to the C linker when linking in
|
|
|
|
``custom runtime'' mode (see the corresponding option for
|
|
|
|
.BR ocamlc (1).
|
|
|
|
.TP
|
|
|
|
.B \-ccopt
|
|
|
|
Pass the given option to the C compiler and linker, when linking in
|
|
|
|
``custom runtime'' mode. See the corresponding option for
|
|
|
|
.BR ocamlc (1).
|
|
|
|
.TP
|
|
|
|
.B \-custom
|
|
|
|
Link in ``custom runtime'' mode. See the corresponding option for
|
|
|
|
.BR ocamlc (1).
|
|
|
|
.TP
|
2008-09-15 07:05:30 -07:00
|
|
|
.BI \-I \ directory
|
1999-02-25 06:25:54 -08:00
|
|
|
Add the given directory to the list of directories searched for
|
|
|
|
compiled interface files (.cmo and .cma).
|
|
|
|
.TP
|
2008-09-15 07:05:30 -07:00
|
|
|
.BI \-o \ exec\-file
|
1999-02-25 06:25:54 -08:00
|
|
|
Specify the name of the toplevel file produced by the linker.
|
2008-09-15 07:05:30 -07:00
|
|
|
The default is is
|
1999-02-25 06:25:54 -08:00
|
|
|
.BR a.out .
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ocamlc (1).
|