1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
.\" Hey, EMACS: -*- nroff -*-
.TH OCAMLMKLIB 1 "August 19, 2004"
.SH NAME
ocamlmklib \- generate libraries with mixed C / Caml code.
.SH SYNOPSIS
.B ocalmklib
.RI [ options ] " files"
.SH DESCRIPTION
The
.B ocamlmklib
command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking and dynamic linking modes.
.SH OPTIONS
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.BI \-cclib\ lib
C library passed to ocamlc
.B \-a
or
.BR ocamlopt (1)
.B \-a
only.
.TP
.BI \-ccopt\ opt
C option passed to
.BR ocamlc (1)
.B \-a
or
.BR ocamlopt (1)
.B \-a
only.
.TP
.B \-custom
Disable dynamic loading.
.TP
.BI \-dllpath\ dir
Add
.I dir
to the run-time search path for DLLs.
.TP
.BI \-I\ dir
Add
.I dir
to the path searched for Caml object files.
.TP
.B \-failsafe
Fall back to static linking if DLL construction failed.
.TP
.BI \-ldopt\ opt
C option passed to the shared linker only.
.TP
.B \-linkall
Build Caml archive with link-all behavior.
.TP
.BI \-l lib
Specify a dependent C library.
.TP
.BI \-L dir
Add
.I dir
to the path searched for C libraries.
.TP
.BI \-ocamlc\ cmd
Use
.I cmd
in place of
.BR ocamlc (1).
.TP
.BI \-ocamlopt\ cmd
Use
.I cmd
in place of
.BR ocamlopt (1).
.TP
.BI \-o\ name
Generated Caml library is named
.IR name .cma
or
.IR name .cmxa.
.TP
.BI \-oc\ name
Generated C library is named
.RI dll name .so
or
.RI lib name .a.
.TP
.BI \-rpath\ dir
Same as
.B \-dllpath
.IR dir .
.TP
.BI \-R dir
Same as
.BR \-rpath .
.TP
.B \-verbose
Print commands before executing them.
.TP
\fB\-Wl\fR, \fB\-rpath \fIdir
Same as
.B \-dllpath
.IR dir .
.TP
\fB\-Wl\fR, \fB\-rpath\ \-Wl \fIdir
Same as
.B \-dllpath
.IR dir .
.TP
\fB\-Wl\fR, \fB\-R\fIdir
Same as
.B \-dllpath
.IR dir .
.TP
.BI \-F dir
Specify a framework directory (MacOSX).
.TP
.BI \-framework\ name
Use framework
.I name
(MacOSX).
.SH SEE ALSO
.BR ocamlc (1),
.BR ocamlopt (1).
.SH AUTHOR
This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>,
for the Debian project (but may be used by others).
|