File: mkoctfile.1

package info (click to toggle)
octave3.2 3.2.4-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 62,936 kB
  • ctags: 37,353
  • sloc: cpp: 219,497; fortran: 116,336; ansic: 10,264; sh: 5,508; makefile: 4,245; lex: 3,573; yacc: 3,062; objc: 2,042; lisp: 1,692; awk: 860; perl: 844
file content (118 lines) | stat: -rw-r--r-- 3,628 bytes parent folder | download
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
.\" Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008
.\"               Dirk Eddelbuettel
.\"
.\" This file is part of Octave.
.\"
.\" Octave is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 3 of the License, or (at
.\" your option) any later version.
.\"
.\" Octave is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with Octave; see the file COPYING.  If not, see
.\" <http://www.gnu.org/licenses/>.
.\"
.\" This page was contributed by Dirk Eddelbuettel <edd@debian.org>
.\"
.TH MKOCTFILE 1 "1 November 2002" "GNU Octave"
.SH NAME
mkoctfile \- Compile dynamic-load modules for GNU Octave
.SH SYNOPSIS
.BR mkoctfile\  [\-IDIR]\ [\-DDEF]\ [\-lLIB]\ [\-LDIR]\ [\-M|\-\-depend]\ 
[\-c]\ [\-o FILE|\-\-output FILE]\ [\-p VAR|\-\-print VAR]\ [\-s|\-\-strip]\ 
[\-v|\-\-verbose]\ [\-h|\-?|\-\-help]\ \fIfile\fP .\|.\|.  
.SH DESCRIPTION
.PP
\fImkoctfile\fP is used to compile source C, C++ or Fortran source code in
dynamically loadable 
.I .oct
file for 
.BR octave (1).
.SH OPTIONS
\fImkoctfile\fP accepts the following options:
.TP 8
.B \-IDIR
Add include directory DIR to compile commands.
.TP 8
.B \-DDEF
Add definition DEF to compiler call.
.TP 8
.B \-lLIB
Add library LIB to link command.
.TP 8
.B \-LDIR
Add library directory DIR to link command.
.TP 8
.B \-M|\-\-depend
Generate dependency files (.d) for C and C++ source files.
.TP 8
.B \-c
Compile but do not link.
.TP 8
.B \-o FILE|\-\-output FILE
Output file name; default extension is .oct (or .mex if \-\-mex is
specified) unless linking a stand-alone executable.
.TP
.B \-p VAR|\-\-print VAR
Print configuration variable VAR.  Recognized variables are:
.RS
    ALL_CFLAGS                FFTW_LIBS     
    ALL_CXXFLAGS              FLIBS       
    ALL_FFLAGS                FPICFLAG      
    ALL_LDFLAGS               INCFLAGS      
    BLAS_LIBS                 LDFLAGS             
    CC                        LD_CXX              
    CFLAGS                    LD_STATIC_FLAG
    CPICFLAG                  LFLAGS              
    CPPFLAGS                  LIBCRUFT      
    CXX                       LIBOCTAVE     
    CXXFLAGS                  LIBOCTINTERP  
    CXXPICFLAG                LIBREADLINE   
    DEPEND_EXTRA_SED_PATTERN  LIBS        
    DEPEND_FLAGS              OCTAVE_LIBS   
    DL_LD                     RDYNAMIC_FLAG 
    DL_LDFLAGS                RLD_FLAG      
    F2C                       SED         
    F2CFLAGS                  XTRA_CFLAGS   
    F77                       XTRA_CXXFLAGS 
    FFLAGS
.RE
.TP 8
.B \-\-link-stand-alone
Link a stand-alone executable file.
.TP 8
.B \-\-mex
Assume we are creating a MEX file.  Set the default output extension
to .mex.
.TP 8
.B \-s|--strip
Strip the output file.
.TP 8
.B \-v|--verbose
Echo commands as they are executed.
.TP 8
.B file
Compile or link file. Recognised file types are 
.RS
    .c    C source
    .cc   C++ source
    .C    C++ source
    .cpp  C++ source
    .f    Fortran source
    .F    Fortran source
    .o    object file
    .a    library file
.SH SEE ALSO
.BR octave (1).
.RE
.SH AUTHOR
John W. Eaton <jwe@octave.org>

This manual page was contributed by Dirk Eddelbuettel
<edd@debian.org> for the Debian GNU/Linux distribution but 
may be used by others.