Mercurial > octave-nkf
annotate liboctave/Makefile.in @ 8655:d48a1837d2bc
Add missing libqrupdate to liboctave link dependencies
author | Benjamin Lindner <lindnerben@gmx.net> |
---|---|
date | Tue, 03 Feb 2009 09:11:48 +0100 |
parents | f8b3ece45bda |
children | d5af326a3ede |
rev | line source |
---|---|
3 | 1 # Makefile for octave's liboctave directory |
2 # | |
7017 | 3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
4 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton | |
5 # | |
7016 | 6 # This file is part of Octave. |
7 # | |
8 # Octave is free software; you can redistribute it and/or modify it | |
9 # under the terms of the GNU General Public License as published by the | |
10 # Free Software Foundation; either version 3 of the License, or (at | |
11 # your option) any later version. | |
12 # | |
13 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 # for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with Octave; see the file COPYING. If not, see | |
20 # <http://www.gnu.org/licenses/>. | |
3 | 21 |
22 TOPDIR = .. | |
23 | |
24 srcdir = @srcdir@ | |
411 | 25 top_srcdir = @top_srcdir@ |
5451 | 26 VPATH = @srcdir@ |
3 | 27 |
28 include $(TOPDIR)/Makeconf | |
29 | |
651 | 30 INSTALL = @INSTALL@ |
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
32 INSTALL_DATA = @INSTALL_DATA@ | |
33 | |
6137 | 34 DLL_CDEFS = @OCTAVE_DLL_DEFS@ |
35 DLL_CXXDEFS = @OCTAVE_DLL_DEFS@ | |
6087 | 36 |
4760 | 37 LINK_DEPS = \ |
5451 | 38 -L../libcruft -L. $(RLD_FLAG) \ |
5619 | 39 $(LIBCRUFT) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \ |
6241 | 40 $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) \ |
8655
d48a1837d2bc
Add missing libqrupdate to liboctave link dependencies
Benjamin Lindner <lindnerben@gmx.net>
parents:
8618
diff
changeset
|
41 $(ARPACK_LIBS) $(QRUPDATE_LIBS) $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) $(REGEX_LIBS) $(LIBS) $(FLIBS) |
5164 | 42 |
4493 | 43 MATRIX_INC := Array.h Array2.h Array3.h ArrayN.h DiagArray2.h \ |
5781 | 44 Array-util.h ArrayN-idx.h MArray-defs.h \ |
4517 | 45 MArray.h MArray2.h MDiagArray2.h Matrix.h MArrayN.h \ |
8386
a5e080076778
make balance more Matlab-compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
8385
diff
changeset
|
46 base-lu.h base-aepbal.h dim-vector.h mx-base.h mx-op-defs.h \ |
4517 | 47 mx-defs.h mx-ext.h CColVector.h CDiagMatrix.h CMatrix.h \ |
48 CNDArray.h CRowVector.h CmplxAEPBAL.h CmplxCHOL.h \ | |
8335 | 49 CmplxGEPBAL.h CmplxHESS.h CmplxLU.h CmplxQR.h CmplxQRP.h \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
50 CmplxSCHUR.h CmplxSVD.h EIG.h fEIG.h boolMatrix.h boolNDArray.h \ |
4517 | 51 chMatrix.h chNDArray.h dColVector.h dDiagMatrix.h dMatrix.h \ |
8335 | 52 dNDArray.h dRowVector.h dbleAEPBAL.h dbleCHOL.h DET.h \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
53 dbleGEPBAL.h dbleHESS.h dbleLU.h dbleQR.h dbleQRP.h dbleSCHUR.h \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
54 dbleSVD.h boolSparse.h CSparse.h dSparse.h MSparse-defs.h MSparse.h \ |
5506 | 55 Sparse.h sparse-base-lu.h SparseCmplxLU.h SparsedbleLU.h \ |
5915 | 56 sparse-base-chol.h SparseCmplxCHOL.h \ |
5681 | 57 SparsedbleCHOL.h SparseCmplxQR.h SparseQR.h Sparse-op-defs.h \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8335
diff
changeset
|
58 MatrixType.h PermMatrix.h \ |
4902 | 59 int8NDArray.h uint8NDArray.h int16NDArray.h uint16NDArray.h \ |
4906 | 60 int32NDArray.h uint32NDArray.h int64NDArray.h uint64NDArray.h \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
61 intNDArray.h \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
62 fCColVector.h fCRowVector.h fCDiagMatrix.h fCMatrix.h fCNDArray.h \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
63 fColVector.h fRowVector.h fDiagMatrix.h fMatrix.h fNDArray.h \ |
7809
3af309919efc
Makefile fix for single precision
David Bateman <dbateman@free.fr>
parents:
7789
diff
changeset
|
64 fCmplxAEPBAL.h fCmplxGEPBAL.h fCmplxHESS.h fCmplxCHOL.h \ |
8335 | 65 fCmplxLU.h fCmplxSCHUR.h fCmplxSVD.h fCmplxQR.h \ |
7809
3af309919efc
Makefile fix for single precision
David Bateman <dbateman@free.fr>
parents:
7789
diff
changeset
|
66 fCmplxQRP.h floatAEPBAL.h \ |
8335 | 67 floatCHOL.h floatGEPBAL.h floatHESS.h floatLU.h \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
68 floatSCHUR.h floatSVD.h floatQR.h floatQRP.h |
466 | 69 |
4544 | 70 MX_OP_INC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx list_h_files=1 $(srcdir)/mx-ops) |
2829 | 71 |
4544 | 72 VX_OP_INC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx list_h_files=1 $(srcdir)/vx-ops) |
3582 | 73 |
5164 | 74 SPARSE_MX_OP_INC := $(shell $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx list_h_files=1 $(srcdir)/sparse-mx-ops) |
75 | |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
76 OPT_BASE := $(addsuffix -opts, DASPK DASRT DASSL LSODE Quad) |
7449 | 77 OPT_IN := $(addsuffix .in, $(OPT_BASE)) |
78 OPT_INC := $(addsuffix .h, $(OPT_BASE)) | |
3998 | 79 |
4058 | 80 INCLUDES := Bounds.h CollocWt.h DAE.h DAEFunc.h DAERT.h \ |
81 DAERTFunc.h DASPK.h DASRT.h DASSL.h FEGrid.h \ | |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
82 LinConst.h LP.h LSODE.h \ |
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
83 ODE.h ODEFunc.h ODES.h ODESFunc.h \ |
5173 | 84 Objective.h QP.h Quad.h Range.h base-dae.h \ |
4118 | 85 base-de.h base-min.h byte-swap.h cmd-edit.h cmd-hist.h \ |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7466
diff
changeset
|
86 data-conv.h dir-ops.h file-ops.h file-stat.h functor.h getopt.h \ |
4399 | 87 glob-match.h idx-vector.h kpse-xfns.h \ |
7231 | 88 lo-ieee.h lo-mappers.h lo-math.h lo-specfun.h \ |
6375 | 89 lo-sysdep.h lo-utils.h mach-info.h md5.h oct-alloc.h oct-cmplx.h \ |
4906 | 90 oct-env.h oct-fftw.h oct-getopt.h oct-group.h oct-inttypes.h \ |
8385
6e9660cd3bf2
Ensure oct-locbuf.h is installed with the install target
David Bateman <dbateman@free.fr>
parents:
8367
diff
changeset
|
91 oct-locbuf.h oct-lookup.h oct-md5.h oct-mutex.h oct-norm.h \ |
6e9660cd3bf2
Ensure oct-locbuf.h is installed with the install target
David Bateman <dbateman@free.fr>
parents:
8367
diff
changeset
|
92 oct-passwd.h oct-rand.h oct-rl-edit.h oct-rl-hist.h oct-shlib.h \ |
6e9660cd3bf2
Ensure oct-locbuf.h is installed with the install target
David Bateman <dbateman@free.fr>
parents:
8367
diff
changeset
|
93 oct-sort.h oct-spparms.h oct-syscalls.h oct-sparse.h oct-time.h \ |
6e9660cd3bf2
Ensure oct-locbuf.h is installed with the install target
David Bateman <dbateman@free.fr>
parents:
8367
diff
changeset
|
94 oct-uname.h pathlen.h pathsearch.h prog-args.h \ |
7779
791231dac333
Add regexp matching to Fwho and Fclear
David Bateman <dbateman@free.fr>
parents:
7671
diff
changeset
|
95 randgamma.h randmtzig.h randpoisson.h regex-match.h \ |
7885 | 96 sparse-sort.h statdefs.h str-vec.h \ |
5506 | 97 sparse-util.h sun-utils.h sysdir.h systime.h syswait.h \ |
6796 | 98 $(MATRIX_INC) |
99 | |
100 BUILT_INCLUDES := oct-types.h mx-ops.h \ | |
7449 | 101 $(OPT_INC) \ |
3582 | 102 $(MX_OP_INC) \ |
5164 | 103 $(VX_OP_INC) \ |
104 $(SPARSE_MX_OP_INC) | |
3 | 105 |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8400
diff
changeset
|
106 TEMPLATE_SRC := Array.cc ArrayN.cc eigs-base.cc DiagArray2.cc \ |
4850 | 107 MArray.cc MArray2.cc MArrayN.cc MDiagArray2.cc \ |
8388
3cbe3054fa7e
remove reference to non-existing file
Jaroslav Hajek <highegg@gmail.com>
parents:
8386
diff
changeset
|
108 base-lu.cc oct-sort.cc sparse-base-lu.cc \ |
8385
6e9660cd3bf2
Ensure oct-locbuf.h is installed with the install target
David Bateman <dbateman@free.fr>
parents:
8367
diff
changeset
|
109 sparse-base-chol.cc sparse-dmsolve.cc |
308 | 110 |
2493 | 111 TI_SRC := Array-C.cc Array-b.cc Array-ch.cc Array-i.cc Array-d.cc \ |
7885 | 112 Array-f.cc Array-fC.cc Array-s.cc Array-str.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
113 Array-idx-vec.cc MArray-C.cc MArray-ch.cc MArray-i.cc MArray-d.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
114 MArray-f.cc MArray-fC.cc MArray-s.cc MSparse-C.cc MSparse-d.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
115 Sparse-C.cc Sparse-b.cc Sparse-d.cc oct-inttypes.cc |
759 | 116 |
5781 | 117 MATRIX_SRC := Array-util.cc CColVector.cc \ |
4588 | 118 CDiagMatrix.cc CMatrix.cc CNDArray.cc CRowVector.cc \ |
8335 | 119 CmplxAEPBAL.cc CmplxCHOL.cc CmplxGEPBAL.cc CmplxHESS.cc \ |
4588 | 120 CmplxLU.cc CmplxQR.cc CmplxQRP.cc CmplxSCHUR.cc CmplxSVD.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
121 EIG.cc fEIG.cc boolMatrix.cc boolNDArray.cc chMatrix.cc \ |
4902 | 122 chNDArray.cc dColVector.cc dDiagMatrix.cc dMatrix.cc \ |
4669 | 123 dNDArray.cc dRowVector.cc dbleAEPBAL.cc dbleCHOL.cc \ |
8335 | 124 dbleGEPBAL.cc dbleHESS.cc dbleLU.cc dbleQR.cc dbleQRP.cc \ |
5164 | 125 dbleSCHUR.cc dbleSVD.cc boolSparse.cc CSparse.cc dSparse.cc \ |
126 MSparse.cc Sparse.cc SparseCmplxLU.cc SparsedbleLU.cc \ | |
5610 | 127 SparseCmplxCHOL.cc SparsedbleCHOL.cc \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8335
diff
changeset
|
128 SparseCmplxQR.cc SparseQR.cc MatrixType.cc PermMatrix.cc \ |
4902 | 129 int8NDArray.cc uint8NDArray.cc int16NDArray.cc uint16NDArray.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
130 int32NDArray.cc uint32NDArray.cc int64NDArray.cc uint64NDArray.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
131 fCColVector.cc fCRowVector.cc fCDiagMatrix.cc fCMatrix.cc fCNDArray.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
132 fColVector.cc fRowVector.cc fDiagMatrix.cc fMatrix.cc fNDArray.cc \ |
8335 | 133 fCmplxAEPBAL.cc fCmplxCHOL.cc fCmplxGEPBAL.cc \ |
7809
3af309919efc
Makefile fix for single precision
David Bateman <dbateman@free.fr>
parents:
7789
diff
changeset
|
134 fCmplxHESS.cc fCmplxLU.cc fCmplxSCHUR.cc fCmplxSVD.cc fCmplxQR.cc \ |
8335 | 135 fCmplxQRP.cc floatAEPBAL.cc floatCHOL.cc \ |
7809
3af309919efc
Makefile fix for single precision
David Bateman <dbateman@free.fr>
parents:
7789
diff
changeset
|
136 floatGEPBAL.cc floatHESS.cc floatLU.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7779
diff
changeset
|
137 floatSCHUR.cc floatSVD.cc floatQR.cc floatQRP.cc |
2829 | 138 |
4544 | 139 MX_OP_SRC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx list_cc_files=1 $(srcdir)/mx-ops) |
466 | 140 |
4544 | 141 VX_OP_SRC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx list_cc_files=1 $(srcdir)/vx-ops) |
3582 | 142 |
5164 | 143 SPARSE_MX_OP_SRC := $(shell $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx list_cc_files=1 $(srcdir)/sparse-mx-ops) |
144 | |
8400
7b6e1fc1cb90
implement obstack-like optimization of local buffers
Jaroslav Hajek <highegg@gmail.com>
parents:
8388
diff
changeset
|
145 LIBOCTAVE_CXX_SOURCES := oct-locbuf.cc Bounds.cc CollocWt.cc DASPK.cc DASRT.cc \ |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
146 DASSL.cc FEGrid.cc LinConst.cc LSODE.cc ODES.cc \ |
3990 | 147 Quad.cc Range.cc data-conv.cc dir-ops.cc \ |
3912 | 148 file-ops.cc file-stat.cc glob-match.cc idx-vector.cc \ |
149 lo-ieee.cc lo-mappers.cc lo-specfun.cc lo-sysdep.cc \ | |
150 lo-utils.cc mach-info.cc oct-alloc.cc oct-env.cc \ | |
8303
b11c31849b44
improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
7934
diff
changeset
|
151 oct-fftw.cc oct-group.cc oct-mutex.cc oct-md5.cc \ |
b11c31849b44
improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
7934
diff
changeset
|
152 oct-norm.cc oct-passwd.cc oct-rand.cc \ |
6375 | 153 oct-shlib.cc oct-spparms.cc oct-syscalls.cc oct-time.cc oct-uname.cc \ |
7779
791231dac333
Add regexp matching to Fwho and Fclear
David Bateman <dbateman@free.fr>
parents:
7671
diff
changeset
|
154 prog-args.cc regex-match.cc \ |
7885 | 155 sparse-sort.cc sparse-util.cc str-vec.cc \ |
1533 | 156 $(TEMPLATE_SRC) \ |
157 $(TI_SRC) \ | |
6796 | 158 $(MATRIX_SRC) |
159 | |
160 BUILT_LIBOCTAVE_CXX_SOURCES := \ | |
3582 | 161 $(MX_OP_SRC) \ |
5164 | 162 $(VX_OP_SRC) \ |
163 $(SPARSE_MX_OP_SRC) | |
3 | 164 |
4378 | 165 LIBOCTAVE_C_SOURCES := f2c-main.c filemode.c getopt.c getopt1.c \ |
6375 | 166 lo-cieee.c lo-cutils.c md5.c mkdir.c oct-getopt.c \ |
5730 | 167 randgamma.c randmtzig.c randpoisson.c rename.c \ |
6111 | 168 rmdir.c strftime.c strptime.c strcasecmp.c strncase.c \ |
6375 | 169 tempname.c tempnam.c |
3857 | 170 |
6796 | 171 LIBOCTAVE_SOURCES := $(LIBOCTAVE_CXX_SOURCES) $(BUILT_LIBOCTAVE_CXX_SOURCES) \ |
172 $(LIBOCTAVE_C_SOURCES) | |
3857 | 173 |
174 LIBOCT_READLINE_CXX_SOURCES := cmd-edit.cc cmd-hist.cc | |
175 | |
176 LIBOCT_READLINE_C_SOURCES := oct-rl-edit.c oct-rl-hist.c | |
177 | |
178 LIBOCT_READLINE_SOURCES := $(LIBOCT_READLINE_CXX_SOURCES) $(LIBOCT_READLINE_C_SOURCES) | |
179 | |
4399 | 180 LIBOCT_PATHSEARCH_CXX_SOURCES := pathsearch.cc |
3857 | 181 |
4378 | 182 LIBOCT_PATHSEARCH_C_SOURCES := kpse-xfns.c |
3857 | 183 |
184 LIBOCT_PATHSEARCH_SOURCES := \ | |
185 $(LIBOCT_PATHSEARCH_C_SOURCES) $(LIBOCT_PATHSEARCH_CXX_SOURCES) | |
186 | |
187 SOURCES := \ | |
188 $(LIBOCTAVE_SOURCES) \ | |
189 $(LIBOCT_READLINE_SOURCES) \ | |
190 $(LIBOCT_PATHSEARCH_SOURCES) | |
191 | |
4946 | 192 EXTRAS := mx-inlines.cc kpse.cc intNDArray.cc |
1682 | 193 |
6796 | 194 INCLUDES_FOR_INSTALL := $(INCLUDES) $(BUILT_INCLUDES) $(TEMPLATE_SRC) $(EXTRAS) |
2941 | 195 |
6796 | 196 DISTFILES := $(addprefix $(srcdir)/, Makefile.in ChangeLog mk-ops.awk \ |
197 mx-ops vx-ops sparse-mk-ops.awk sparse-mx-ops oct-types.h.in \ | |
198 $(LIBOCTAVE_CXX_SOURCES) \ | |
199 $(LIBOCT_READLINE_SOURCES) \ | |
200 $(LIBOCT_PATHSEARCH_SOURCES) \ | |
201 $(LIBOCTAVE_C_SOURCES) \ | |
7449 | 202 $(INCLUDES) $(EXTRAS) $(OPT_IN)) \ |
6796 | 203 $(BUILT_LIBOCTAVE_CXX_SOURCES) $(BUILT_INCLUDES) |
5164 | 204 |
5451 | 205 MAKEDEPS_1 := $(patsubst %.cc, %.d, $(SOURCES)) |
1767 | 206 MAKEDEPS := $(patsubst %.c, %.d, $(MAKEDEPS_1)) |
1682 | 207 |
3857 | 208 LIBOCTAVE_OBJECTS := \ |
209 $(LIBOCTAVE_CXX_SOURCES:.cc=.o) \ | |
6796 | 210 $(BUILT_LIBOCTAVE_CXX_SOURCES:.cc=.o) \ |
4102 | 211 $(LIBOCTAVE_C_SOURCES:.c=.o) \ |
3857 | 212 $(LIBOCT_READLINE_CXX_SOURCES:.cc=.o) \ |
4102 | 213 $(LIBOCT_READLINE_C_SOURCES:.c=.o) \ |
3857 | 214 $(LIBOCT_PATHSEARCH_CXX_SOURCES:.cc=.o) \ |
215 $(LIBOCT_PATHSEARCH_C_SOURCES:.c=.o) | |
3 | 216 |
1682 | 217 ifeq ($(SHARED_LIBS), true) |
218 ifdef CXXPICFLAG | |
3857 | 219 LIBOCTAVE_PICOBJ := $(addprefix pic/, $(LIBOCTAVE_OBJECTS)) |
1682 | 220 else |
3857 | 221 LIBOCTAVE_PICOBJ := $(LIBOCTAVE_OBJECTS) |
1682 | 222 endif |
223 endif | |
3 | 224 |
3141 | 225 all: libraries |
3 | 226 .PHONY: all |
227 | |
5866 | 228 objects: $(LIBOCTAVE_OBJECTS) |
3613 | 229 |
3206 | 230 stmp-pic: pic |
231 @if [ -f stmp-pic ]; then \ | |
232 true; \ | |
233 else \ | |
234 echo "touch stmp-pic"; \ | |
235 touch stmp-pic; \ | |
236 fi | |
237 | |
3029 | 238 pic: |
239 @if [ -d pic ]; then \ | |
240 true; \ | |
2358 | 241 else \ |
3029 | 242 echo "mkdir pic"; \ |
243 mkdir pic; \ | |
2358 | 244 fi |
1668 | 245 |
7449 | 246 PREREQ := $(OPT_INC) $(VX_OP_INC) $(VX_OP_SRC) \ |
5164 | 247 $(MX_OP_INC) $(MX_OP_SRC) mx-ops.h \ |
248 $(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC) | |
3998 | 249 |
3029 | 250 ifeq ($(SHARED_LIBS), true) |
3034 | 251 ifeq ($(STATIC_LIBS), true) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
252 LIBRARIES = $(LIBPRE)octave.$(LIBEXT) $(SHLLIBPRE)octave.$(SHLEXT_VER) |
3034 | 253 else |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
254 LIBRARIES = $(SHLLIBPRE)octave.$(SHLEXT_VER) |
3034 | 255 endif |
3029 | 256 else |
3034 | 257 ifeq ($(STATIC_LIBS), true) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
258 LIBRARIES = $(LIBPRE)octave.$(LIBEXT) |
3034 | 259 else |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
260 LIBRARIES = |
3034 | 261 endif |
3029 | 262 endif |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
263 |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
264 libraries: $(LIBRARIES) |
3029 | 265 .PHONY: libraries |
3 | 266 |
6051 | 267 $(LIBPRE)octave.$(LIBEXT): $(LIBOCTAVE_OBJECTS) |
3615 | 268 rm -f $@ |
4378 | 269 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS) |
3615 | 270 $(RANLIB) $@ |
271 | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
272 $(SHLLIBPRE)octave.$(SHLEXT_VER): $(SHLLIBPRE)octave.$(SHLEXT) |
3857 | 273 rm -f $@ |
274 $(LN_S) $< $@ | |
275 | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
276 $(SHLLIBPRE)octave.$(SHLEXT): $(LIBOCTAVE_PICOBJ) |
3857 | 277 rm -f $@ |
4229 | 278 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ \ |
4378 | 279 $(LIBOCTAVE_PICOBJ) $(LINK_DEPS) |
3857 | 280 |
4102 | 281 $(LIBOCTAVE_PICOBJ): stmp-pic |
1773 | 282 |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7449
diff
changeset
|
283 ifndef omit_deps |
7449 | 284 $(MAKEDEPS): $(PREREQ) |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7449
diff
changeset
|
285 endif |
7448 | 286 |
3 | 287 check: all |
288 .PHONY: check | |
289 | |
2129 | 290 install: install-lib install-inc |
2128 | 291 .PHONY: install |
292 | |
2811 | 293 install-strip: |
294 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install | |
295 .PHONY: install-strip | |
296 | |
2129 | 297 install-lib: |
4413 | 298 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir) |
3034 | 299 if $(STATIC_LIBS); then \ |
6051 | 300 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ |
301 $(INSTALL_DATA) $(LIBPRE)octave.$(LIBEXT) \ | |
302 $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ | |
303 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \ | |
3034 | 304 fi |
1682 | 305 if $(SHARED_LIBS); then \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
306 rm -f $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB_VER); \ |
4480 | 307 $(INSTALL) \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
308 $(SHLLIBPRE)octave.$(SHLLIB) $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB_VER); \ |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
309 rm -f $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB); \ |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
310 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(SHLLIBPRE)octave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB)); \ |
4102 | 311 if test x$(SHLBIN) != x ; then \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
312 rm -f $(DESTDIR)$(bindir)/$(SHLBINPRE)octave.$(SHLBIN); \ |
4473 | 313 $(INSTALL_PROGRAM) \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
314 $(SHLBINPRE)octave.$(SHLBIN) $(DESTDIR)$(bindir)/$(SHLBINPRE)octave.$(SHLBIN); \ |
4102 | 315 fi; \ |
1682 | 316 fi |
2129 | 317 .PHONY: install-lib |
2128 | 318 |
2129 | 319 install-inc: |
4413 | 320 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave |
3029 | 321 for f in $(INCLUDES_FOR_INSTALL); do \ |
4413 | 322 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
4103 | 323 if [ -f $$f ]; then \ |
4413 | 324 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
4103 | 325 else \ |
4413 | 326 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
4103 | 327 fi ; \ |
3 | 328 done |
2129 | 329 .PHONY: install-inc |
3 | 330 |
331 uninstall: | |
6051 | 332 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
333 rm -f $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB) |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
334 rm -f $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octave.$(SHLLIB_VER) |
4102 | 335 if test x$(SHLBIN) != x; then \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
336 rm -f $(DESTDIR)$(bindir)/$(SHLBINPRE)octave.$(SHLBIN); \ |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
337 rm -f $(DESTDIR)$(bindir)/$(SHLBINPRE)octave.$(SHLBIN_VER); \ |
4102 | 338 fi |
6366 | 339 for f in $(INCLUDES_FOR_INSTALL); do rm -f $(DESTDIR)$(octincludedir)/octave/$$f; done |
3 | 340 .PHONY: uninstall |
341 | |
342 tags: $(SOURCES) | |
343 ctags $(SOURCES) | |
344 | |
345 TAGS: $(SOURCES) | |
346 etags $(SOURCES) | |
347 | |
348 clean: | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
349 rm -f $(LIBPRE)octave.$(LIBEXT) |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
350 rm -f $(SHLLIBPRE)octave.$(SHLEXT_VER) $(SHLLIBPRE)octave.$(SHLEXT) |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
351 rm -f $(SHLBINPRE)octave.$(SHLBIN_VER) $(SHLBINPRE)octave.$(SHLBIN) |
5866 | 352 rm -f $(LIBOCTAVE_OBJECTS) $(MAKEDEPS) $(LIBOCTAVE_PICOBJ) stmp-pic |
3141 | 353 -rmdir pic |
3 | 354 .PHONY: clean |
355 | |
356 mostlyclean: clean | |
357 .PHONY: mostlyclean | |
358 | |
359 distclean: clean | |
7449 | 360 rm -f Makefile so_locations oct-types.h $(PREREQ) |
3 | 361 .PHONY: distclean |
362 | |
1391 | 363 maintainer-clean: distclean |
3029 | 364 rm -f tags TAGS |
1391 | 365 .PHONY: maintainer-clean |
3 | 366 |
7449 | 367 dist: $(PREREQ) |
6467 | 368 ln $(DISTFILES) ../`cat ../.fname`/liboctave |
3 | 369 .PHONY: dist |
370 | |
7449 | 371 $(OPT_INC) : %.h : %.in $(top_srcdir)/mk-opts.pl |
3998 | 372 @echo making $@ from $< |
4014 | 373 @perl $(top_srcdir)/mk-opts.pl --opt-class-header $< > $@-t |
7449 | 374 @mv $@-t $@ |
3998 | 375 |
4544 | 376 $(VX_OP_INC) $(VX_OP_SRC) : $(srcdir)/mk-ops.awk vx-ops |
377 $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx $(srcdir)/vx-ops | |
378 | |
379 $(MX_OP_INC) $(MX_OP_SRC) : $(srcdir)/mk-ops.awk mx-ops | |
380 $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx $(srcdir)/mx-ops | |
381 | |
5164 | 382 $(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC) : $(srcdir)/sparse-mk-ops.awk sparse-mx-ops |
383 $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx $(srcdir)/sparse-mx-ops | |
384 | |
4544 | 385 mx-ops.h : $(srcdir)/mk-ops.awk mx-ops |
4547 | 386 $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx make_inclusive_header=mx-ops.h $(srcdir)/mx-ops > $@-t |
6152 | 387 $(simple-move-if-change-rule) |
4544 | 388 |
7448 | 389 ifdef omit_deps |
390 .PHONY: $(MAKEDEPS) | |
391 endif | |
4544 | 392 |
7448 | 393 -include $(MAKEDEPS) |