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

NAME

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

SYNOPSIS

9       mkoctfile [-IDIR] [-DDEF] [-lLIB] [-LDIR] [-M|--depend]        [-c] [-o
10       FILE|--output  FILE] [-p  VAR|--print   VAR] [-s|--strip]    [-v|--ver‐
11       bose] [-h|-?|--help] file ...
12

DESCRIPTION

14       mkoctfile  is  used  to compile source C, C++ or Fortran source code in
15       dynamically loadable .oct file for octave(1).
16

OPTIONS

18       mkoctfile accepts the following options:
19
20       -IDIR   Add include directory DIR to compile commands.
21
22       -DDEF   Add definition DEF to compiler call.
23
24       -lLIB   Add library LIB to link command.
25
26       -LDIR   Add library directory DIR to link command.
27
28       -M|--depend
29               Generate dependency files (.d) for C and C++ source files.
30
31       -c      Compile but do not link.
32
33       -o FILE|--output FILE
34               Output file name; default extension is .oct (or .mex  if  --mex
35               is specified) unless linking a stand-alone executable.
36
37       -p VAR|--print VAR
38               Print configuration variable VAR.  Recognized variables are:
39                   ALL_CFLAGS                FFTW_LIBS
40                   ALL_CXXFLAGS              FLIBS
41                   ALL_FFLAGS                FPICFLAG
42                   ALL_LDFLAGS               INCFLAGS
43                   BLAS_LIBS                 LDFLAGS
44                   CC                        LD_CXX
45                   CFLAGS                    LD_STATIC_FLAG
46                   CPICFLAG                  LFLAGS
47                   CPPFLAGS                  LIBCRUFT
48                   CXX                       LIBOCTAVE
49                   CXXFLAGS                  LIBOCTINTERP
50                   CXXPICFLAG                LIBREADLINE
51                   DEPEND_EXTRA_SED_PATTERN  LIBS
52                   DEPEND_FLAGS              OCTAVE_LIBS
53                   DL_LD                     RDYNAMIC_FLAG
54                   DL_LDFLAGS                RLD_FLAG
55                   F2C                       SED
56                   F2CFLAGS                  XTRA_CFLAGS
57                   F77                       XTRA_CXXFLAGS
58                   FFLAGS
59
60       --link-stand-alone
61               Link a stand-alone executable file.
62
63       --mex   Assume  we  are  creating  a  MEX file.  Set the default output
64               extension to .mex.
65
66       -s|--strip
67               Strip the output file.
68
69       -v|--verbose
70               Echo commands as they are executed.
71
72       file    Compile or link file. Recognised file types are
73                   .c    C source
74                   .cc   C++ source
75                   .C    C++ source
76                   .cpp  C++ source
77                   .f    Fortran source
78                   .F    Fortran source
79                   .o    object file
80                   .a    library file
81

SEE ALSO

83       octave(1).
84

AUTHOR

86       John W. Eaton <jwe@octave.org>
87
88       This manual page was contributed by Dirk Eddelbuettel  <edd@debian.org>
89       for the Debian GNU/Linux distribution but may be used by others.
90
91
92
93GNU Octave                      1 November 2002                   MKOCTFILE(1)
Impressum