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

NAME

6       mkoctfile - Compile dynamic-load modules for GNU Octave
7

SYNOPSIS

9       mkoctfile [OPTION]... file...
10

DESCRIPTION

12       mkoctfile is used to compile C, C++, or Fortran source code in to a dy‐
13       namically loadable .oct file for octave(1).
14

OPTIONS

16       -h, -?, --help
17               Print help message.
18
19       -Idir   Add include directory dir to compile commands.
20
21       -idirafterdir
22               Add include directory to second include search path after '-I'.
23
24       -Ddef   Add definition def to compiler command.
25
26       -llib   Add library lib to link command.
27
28       -Ldir   Add library directory dir to link command.
29
30       -Rdir   Pass -Rdir to link command.
31
32       -g      Enable debugging option for all compilers.
33
34       -pthread
35               Add -pthread to link command.
36
37       -W...   Pass flags to the compiler such as -Wa,OPTION.
38
39       -Wl,... Pass flags to the linker such as -Wl,-rpath=...
40
41       -M, --depend
42               Generate dependency files (.d) for C and C++ source files.
43
44       -c      Compile but do not link.
45
46       --link-stand-alone
47               Link a stand-alone executable file.
48
49       -s, --strip
50               Strip the output file.
51
52       --mex   Create a MEX file.  Set the default output extension to .mex.
53
54       -o file, --output file
55               Output filename.  Default extension is .oct (or .mex  if  --mex
56               is specified) unless linking a stand-alone executable.
57
58       -p VAR, --print VAR
59               Print  configuration  variable VAR.  There are three categories
60               of variables:
61
62               Octave configuration variables that users may override with en‐
63               vironment variables.  These are used in commands that mkoctfile
64               executes.
65                   ALL_CFLAGS                  INCLUDEDIR
66                   ALL_CXXFLAGS                LAPACK_LIBS
67                   ALL_FFLAGS                  LDFLAGS
68                   ALL_LDFLAGS                 LD_STATIC_FLAG
69                   BLAS_LIBS                   LFLAGS
70                   CC                          LIBDIR
71                   CFLAGS                      LIBOCTAVE
72                   CPICFLAG                    LIBOCTINTERP
73                   CPPFLAGS                    OCTAVE_LINK_OPTS
74                   CXX                         OCTINCLUDEDIR
75                   CXXFLAGS                    OCTAVE_LIBS
76                   CXXLD                       OCTAVE_LINK_DEPS
77                   CXXPICFLAG                  OCTLIBDIR
78                   DL_LDFLAGS                  OCT_LINK_DEPS
79                   F77                         OCT_LINK_OPTS
80                   F77_INTEGER8_FLAG           RDYNAMIC_FLAG
81                   FFLAGS                      SPECIAL_MATH_LIB
82                   FPICFLAG                    XTRA_CFLAGS
83                   INCFLAGS                    XTRA_CXXFLAGS
84
85               Octave configuration variables as above, but  currently  unused
86               by mkoctfile.
87                   AR
88                   DEPEND_EXTRA_SED_PATTERN
89                   DEPEND_FLAGS
90                   FFTW3F_LDFLAGS
91                   FFTW3F_LIBS
92                   FFTW3_LDFLAGS
93                   FFTW3_LIBS
94                   FFTW_LIBS
95                   FLIBS
96                   LIBS
97                   RANLIB
98                   READLINE_LIBS
99
100               Octave  configuration  variables that are provided for informa‐
101               tional  purposes  only.   Except  for   OCTAVE_HOME   and   OC‐
102               TAVE_EXEC_HOME, users may not override these variables.
103
104               If  OCTAVE_HOME or OCTAVE_EXEC_HOME are set in the environment,
105               then other variables are adjusted accordingly with  OCTAVE_HOME
106               or  OCTAVE_EXEC_HOME  substituted for the original value of the
107               directory specified by the --prefix  or  --exec-prefix  options
108               that were used when Octave was configured.
109                   API_VERSION                 LOCALFCNFILEDIR
110                   ARCHLIBDIR                  LOCALOCTFILEDIR
111                   BINDIR                      LOCALSTARTUPFILEDIR
112                   CANONICAL_HOST_TYPE         LOCALVERARCHLIBDIR
113                   DATADIR                     LOCALVERFCNFILEDIR
114                   DATAROOTDIR                 LOCALVEROCTFILEDIR
115                   DEFAULT_PAGER               MAN1DIR
116                   EXEC_PREFIX                 MAN1EXT
117                   EXEEXT                      MANDIR
118                   FCNFILEDIR                  OCTAVE_EXEC_HOME
119                   IMAGEDIR                    OCTAVE_HOME
120                   INFODIR                     OCTAVE_VERSION
121                   INFOFILE                    OCTDATADIR
122                   LIBEXECDIR                  OCTDOCDIR
123                   LOCALAPIARCHLIBDIR          OCTFILEDIR
124                   LOCALAPIFCNFILEDIR          OCTFONTSDIR
125                   LOCALAPIOCTFILEDIR          STARTUPFILEDIR
126                   LOCALARCHLIBDIR
127
128       -v, --verbose
129               Echo commands as they are executed.
130
131       file    Compile or link file.  Recognized file types are:
132                  .c    C source
133                  .cc   C++ source
134                  .cp   C++ source
135                  .cpp  C++ source
136                  .CPP  C++ source
137                  .cxx  C++ source
138                  .c++  C++ source
139                  .C    C++ source
140                  .f    Fortran source (fixed form)
141                  .F    Fortran source (fixed form)
142                  .f90  Fortran source (free form)
143                  .F90  Fortran source (free form)
144                  .o    object file
145                  .a    library file
146

AUTHOR

148       John W. Eaton <jwe@octave.org>
149
150       This  manual page was contributed by Dirk Eddelbuettel <edd@debian.org>
151       for the Debian GNU/Linux distribution but may be used by others.
152

SEE ALSO

154       octave (1).
155
156
157
158GNU Octave                      3 January 2014                    MKOCTFILE(1)
Impressum