1MKOCTFILE(1) General Commands Manual MKOCTFILE(1)
2
3
4
6 mkoctfile - Compile dynamic-load modules for GNU Octave
7
9 mkoctfile [OPTION]... file...
10
12 mkoctfile is used to compile C, C++, or Fortran source code in to a
13 dynamically loadable .oct file for octave(1).
14
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
63 environment variables. These are used in commands that mkoct‐
64 file executes.
65 ALL_CFLAGS LAPACK_LIBS
66 ALL_CXXFLAGS LDFLAGS
67 ALL_FFLAGS LD_CXX
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 CXXPICFLAG OCTAVE_LINK_DEPS
77 DL_LD 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 INCLUDEDIR
85
86 Octave configuration variables as above, but currently unused
87 by mkoctfile.
88 AR
89 DEPEND_EXTRA_SED_PATTERN
90 DEPEND_FLAGS
91 FFTW3F_LDFLAGS
92 FFTW3F_LIBS
93 FFTW3_LDFLAGS
94 FFTW3_LIBS
95 FFTW_LIBS
96 FLIBS
97 LIBS
98 RANLIB
99 READLINE_LIBS
100
101 Octave configuration variables that are provided for informa‐
102 tional purposes only. Except for OCTAVE_HOME and
103 OCTAVE_EXEC_HOME, users may not override these variables.
104
105 If OCTAVE_HOME or OCTAVE_EXEC_HOME are set in the environment,
106 then other variables are adjusted accordingly with OCTAVE_HOME
107 or OCTAVE_EXEC_HOME substituted for the original value of the
108 directory specified by the --prefix or --exec-prefix options
109 that were used when Octave was configured.
110 API_VERSION LOCALFCNFILEDIR
111 ARCHLIBDIR LOCALOCTFILEDIR
112 BINDIR LOCALSTARTUPFILEDIR
113 CANONICAL_HOST_TYPE LOCALVERARCHLIBDIR
114 DATADIR LOCALVERFCNFILEDIR
115 DATAROOTDIR LOCALVEROCTFILEDIR
116 DEFAULT_PAGER MAN1DIR
117 EXEC_PREFIX MAN1EXT
118 EXEEXT MANDIR
119 FCNFILEDIR OCTAVE_EXEC_HOME
120 IMAGEDIR OCTAVE_HOME
121 INFODIR OCTAVE_VERSION
122 INFOFILE OCTDATADIR
123 LIBEXECDIR OCTDOCDIR
124 LOCALAPIARCHLIBDIR OCTFILEDIR
125 LOCALAPIFCNFILEDIR OCTFONTSDIR
126 LOCALAPIOCTFILEDIR STARTUPFILEDIR
127 LOCALARCHLIBDIR
128
129 -v, --verbose
130 Echo commands as they are executed.
131
132 file Compile or link file. Recognized file types are:
133 .c C source
134 .cc C++ source
135 .cp C++ source
136 .cpp C++ source
137 .CPP C++ source
138 .cxx C++ source
139 .c++ C++ source
140 .C C++ source
141 .f Fortran source (fixed form)
142 .F Fortran source (fixed form)
143 .f90 Fortran source (free form)
144 .F90 Fortran source (free form)
145 .o object file
146 .a library file
147
149 John W. Eaton <jwe@octave.org>
150
151 This manual page was contributed by Dirk Eddelbuettel <edd@debian.org>
152 for the Debian GNU/Linux distribution but may be used by others.
153
155 octave (1).
156
157
158
159GNU Octave 3 January 2014 MKOCTFILE(1)