annotate liboctave/Makefile.in @ 7017:a1dbe9d80eee

[project @ 2007-10-12 21:27:11 by jwe]
author jwe
date Fri, 12 Oct 2007 21:27:37 +0000
parents 93c65f2a5668
children 2eb392d058bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
1 # Makefile for octave's liboctave directory
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
2 #
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
5 #
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
6 # This file is part of Octave.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
7 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
8 # Octave is free software; you can redistribute it and/or modify it
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
9 # under the terms of the GNU General Public License as published by the
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
10 # Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
11 # your option) any later version.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
12 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
13 # Octave is distributed in the hope that it will be useful, but WITHOUT
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
16 # for more details.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
17 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
18 # You should have received a copy of the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
19 # along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 7000
diff changeset
20 # <http://www.gnu.org/licenses/>.
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
21
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
22 TOPDIR = ..
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
23
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
24 srcdir = @srcdir@
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 308
diff changeset
25 top_srcdir = @top_srcdir@
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5330
diff changeset
26 VPATH = @srcdir@
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
27
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
28 include $(TOPDIR)/Makeconf
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
29
651
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 573
diff changeset
30 INSTALL = @INSTALL@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 573
diff changeset
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 573
diff changeset
32 INSTALL_DATA = @INSTALL_DATA@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 573
diff changeset
33
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6111
diff changeset
34 DLL_CDEFS = @OCTAVE_DLL_DEFS@
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6111
diff changeset
35 DLL_CXXDEFS = @OCTAVE_DLL_DEFS@
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6051
diff changeset
36
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4713
diff changeset
37 LINK_DEPS = \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5330
diff changeset
38 -L../libcruft -L. $(RLD_FLAG) \
5619
e9112ff172b1 [project @ 2006-02-13 20:05:36 by dbateman]
dbateman
parents: 5610
diff changeset
39 $(LIBCRUFT) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \
6241
b84b59b614c5 [project @ 2007-01-11 07:35:52 by jwe]
jwe
parents: 6152
diff changeset
40 $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) \
5619
e9112ff172b1 [project @ 2006-02-13 20:05:36 by dbateman]
dbateman
parents: 5610
diff changeset
41 $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) $(LIBS) $(FLIBS)
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
42
4493
49d88738a4a0 [project @ 2003-09-03 16:21:18 by jwe]
jwe
parents: 4480
diff changeset
43 MATRIX_INC := Array.h Array2.h Array3.h ArrayN.h DiagArray2.h \
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 5765
diff changeset
44 Array-util.h ArrayN-idx.h MArray-defs.h \
4517
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
45 MArray.h MArray2.h MDiagArray2.h Matrix.h MArrayN.h \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
46 base-lu.h dim-vector.h mx-base.h mx-op-defs.h \
4517
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
47 mx-defs.h mx-ext.h CColVector.h CDiagMatrix.h CMatrix.h \
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
48 CNDArray.h CRowVector.h CmplxAEPBAL.h CmplxCHOL.h \
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
49 CmplxDET.h CmplxHESS.h CmplxLU.h CmplxQR.h CmplxQRP.h \
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
50 CmplxSCHUR.h CmplxSVD.h EIG.h boolMatrix.h boolNDArray.h \
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
51 chMatrix.h chNDArray.h dColVector.h dDiagMatrix.h dMatrix.h \
b4449b1193ac [project @ 2003-09-20 02:06:06 by jwe]
jwe
parents: 4513
diff changeset
52 dNDArray.h dRowVector.h dbleAEPBAL.h dbleCHOL.h dbleDET.h \
4902
bd043a433918 [project @ 2004-06-14 18:46:20 by jwe]
jwe
parents: 4850
diff changeset
53 dbleHESS.h dbleLU.h dbleQR.h dbleQRP.h dbleSCHUR.h dbleSVD.h \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
54 boolSparse.h CSparse.h dSparse.h MSparse-defs.h MSparse.h \
5506
b4cfbb0ec8c4 [project @ 2005-10-23 19:09:32 by dbateman]
dbateman
parents: 5455
diff changeset
55 Sparse.h sparse-base-lu.h SparseCmplxLU.h SparsedbleLU.h \
5915
b2e1be30c8e9 [project @ 2006-07-28 18:08:56 by jwe]
jwe
parents: 5866
diff changeset
56 sparse-base-chol.h SparseCmplxCHOL.h \
5681
233d98d95659 [project @ 2006-03-16 17:48:55 by dbateman]
dbateman
parents: 5619
diff changeset
57 SparsedbleCHOL.h SparseCmplxQR.h SparseQR.h Sparse-op-defs.h \
5785
6b9cec830d72 [project @ 2006-05-03 19:32:46 by dbateman]
dbateman
parents: 5781
diff changeset
58 MatrixType.h \
4902
bd043a433918 [project @ 2004-06-14 18:46:20 by jwe]
jwe
parents: 4850
diff changeset
59 int8NDArray.h uint8NDArray.h int16NDArray.h uint16NDArray.h \
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4902
diff changeset
60 int32NDArray.h uint32NDArray.h int64NDArray.h uint64NDArray.h \
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4902
diff changeset
61 intNDArray.h
466
05d84a40195d [project @ 1994-06-06 01:12:05 by jwe]
jwe
parents: 411
diff changeset
62
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
63 MX_OP_INC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx list_h_files=1 $(srcdir)/mx-ops)
2829
6655bdca97fb [project @ 1997-03-25 23:58:24 by jwe]
jwe
parents: 2811
diff changeset
64
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
65 VX_OP_INC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx list_h_files=1 $(srcdir)/vx-ops)
3582
a93683ccc9ba [project @ 2000-02-05 10:00:49 by jwe]
jwe
parents: 3519
diff changeset
66
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
67 SPARSE_MX_OP_INC := $(shell $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx list_h_files=1 $(srcdir)/sparse-mx-ops)
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
68
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
69 OPTS_INC_DATA := DASPK-opts.in DASRT-opts.in DASSL-opts.in \
5173
1278a2bc1527 [project @ 2005-03-02 01:33:37 by jwe]
jwe
parents: 5169
diff changeset
70 LSODE-opts.in NLEqn-opts.in Quad-opts.in
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
71
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
72 OPTS_INC := $(OPTS_INC_DATA:.in=.h)
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
73
4058
980308741392 [project @ 2002-09-09 02:08:28 by jwe]
jwe
parents: 4038
diff changeset
74 INCLUDES := Bounds.h CollocWt.h DAE.h DAEFunc.h DAERT.h \
980308741392 [project @ 2002-09-09 02:08:28 by jwe]
jwe
parents: 4038
diff changeset
75 DAERTFunc.h DASPK.h DASRT.h DASSL.h FEGrid.h \
7000
e87f860624cc [project @ 2007-10-10 17:50:59 by jwe]
jwe
parents: 6796
diff changeset
76 LinConst.h LP.h LSODE.h NLConst.h NLEqn.h \
4058
980308741392 [project @ 2002-09-09 02:08:28 by jwe]
jwe
parents: 4038
diff changeset
77 NLFunc.h NLP.h ODE.h ODEFunc.h ODES.h ODESFunc.h \
5173
1278a2bc1527 [project @ 2005-03-02 01:33:37 by jwe]
jwe
parents: 5169
diff changeset
78 Objective.h QP.h Quad.h Range.h base-dae.h \
4118
eb68fe7e78d1 [project @ 2002-10-23 01:29:32 by jwe]
jwe
parents: 4108
diff changeset
79 base-de.h base-min.h byte-swap.h cmd-edit.h cmd-hist.h \
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4307
diff changeset
80 data-conv.h dir-ops.h file-ops.h file-stat.h getopt.h \
4399
286a3345aa8e [project @ 2003-05-01 03:00:28 by jwe]
jwe
parents: 4378
diff changeset
81 glob-match.h idx-vector.h kpse-xfns.h \
5765
7ba9ad1fec11 [project @ 2006-04-17 05:05:15 by jwe]
jwe
parents: 5730
diff changeset
82 lo-ieee.h lo-mappers.h lo-specfun.h \
6375
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
83 lo-sysdep.h lo-utils.h mach-info.h md5.h oct-alloc.h oct-cmplx.h \
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4902
diff changeset
84 oct-env.h oct-fftw.h oct-getopt.h oct-group.h oct-inttypes.h \
6375
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
85 oct-md5.h oct-passwd.h oct-rand.h oct-rl-edit.h oct-rl-hist.h \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
86 oct-shlib.h oct-sort.h oct-spparms.h oct-syscalls.h \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
87 oct-sparse.h oct-time.h oct-uname.h \
5730
109fdf7b3dcb [project @ 2006-04-03 19:18:26 by jwe]
jwe
parents: 5681
diff changeset
88 pathlen.h pathsearch.h prog-args.h \
109fdf7b3dcb [project @ 2006-04-03 19:18:26 by jwe]
jwe
parents: 5681
diff changeset
89 randgamma.h randmtzig.h randpoisson.h \
109fdf7b3dcb [project @ 2006-04-03 19:18:26 by jwe]
jwe
parents: 5681
diff changeset
90 so-array.h sparse-sort.h statdefs.h str-vec.h \
5506
b4cfbb0ec8c4 [project @ 2005-10-23 19:09:32 by dbateman]
dbateman
parents: 5455
diff changeset
91 sparse-util.h sun-utils.h sysdir.h systime.h syswait.h \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
92 $(MATRIX_INC)
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
93
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
94 BUILT_INCLUDES := oct-types.h mx-ops.h \
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
95 $(OPTS_INC) \
3582
a93683ccc9ba [project @ 2000-02-05 10:00:49 by jwe]
jwe
parents: 3519
diff changeset
96 $(MX_OP_INC) \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
97 $(VX_OP_INC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
98 $(SPARSE_MX_OP_INC)
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
99
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 4507
diff changeset
100 TEMPLATE_SRC := Array.cc ArrayN.cc DiagArray2.cc \
4850
8cc4818a0de0 [project @ 2004-04-06 17:06:34 by jwe]
jwe
parents: 4760
diff changeset
101 MArray.cc MArray2.cc MArrayN.cc MDiagArray2.cc \
5681
233d98d95659 [project @ 2006-03-16 17:48:55 by dbateman]
dbateman
parents: 5619
diff changeset
102 base-lu.cc oct-sort.cc sparse-base-lu.cc sparse-base-chol.cc \
233d98d95659 [project @ 2006-03-16 17:48:55 by dbateman]
dbateman
parents: 5619
diff changeset
103 sparse-dmsolve.cc
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 292
diff changeset
104
2493
8ed4362aa0d6 [project @ 1996-11-11 02:35:04 by jwe]
jwe
parents: 2475
diff changeset
105 TI_SRC := Array-C.cc Array-b.cc Array-ch.cc Array-i.cc Array-d.cc \
4648
dca0236ad77c [project @ 2003-11-23 19:36:33 by jwe]
jwe
parents: 4646
diff changeset
106 Array-s.cc Array-so.cc Array-str.cc Array-idx-vec.cc \
5072
97b62f0c1bee [project @ 2004-11-09 05:51:30 by jwe]
jwe
parents: 4946
diff changeset
107 MArray-C.cc MArray-ch.cc MArray-i.cc MArray-d.cc MArray-s.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
108 MSparse-C.cc MSparse-d.cc Sparse-C.cc Sparse-b.cc Sparse-d.cc \
5072
97b62f0c1bee [project @ 2004-11-09 05:51:30 by jwe]
jwe
parents: 4946
diff changeset
109 oct-inttypes.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 651
diff changeset
110
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 5765
diff changeset
111 MATRIX_SRC := Array-util.cc CColVector.cc \
4588
19bfd295f400 [project @ 2003-11-10 17:18:48 by jwe]
jwe
parents: 4547
diff changeset
112 CDiagMatrix.cc CMatrix.cc CNDArray.cc CRowVector.cc \
19bfd295f400 [project @ 2003-11-10 17:18:48 by jwe]
jwe
parents: 4547
diff changeset
113 CmplxAEPBAL.cc CmplxCHOL.cc CmplxDET.cc CmplxHESS.cc \
19bfd295f400 [project @ 2003-11-10 17:18:48 by jwe]
jwe
parents: 4547
diff changeset
114 CmplxLU.cc CmplxQR.cc CmplxQRP.cc CmplxSCHUR.cc CmplxSVD.cc \
4669
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4648
diff changeset
115 EIG.cc boolMatrix.cc boolNDArray.cc chMatrix.cc \
4902
bd043a433918 [project @ 2004-06-14 18:46:20 by jwe]
jwe
parents: 4850
diff changeset
116 chNDArray.cc dColVector.cc dDiagMatrix.cc dMatrix.cc \
4669
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4648
diff changeset
117 dNDArray.cc dRowVector.cc dbleAEPBAL.cc dbleCHOL.cc \
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4648
diff changeset
118 dbleDET.cc dbleHESS.cc dbleLU.cc dbleQR.cc dbleQRP.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
119 dbleSCHUR.cc dbleSVD.cc boolSparse.cc CSparse.cc dSparse.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
120 MSparse.cc Sparse.cc SparseCmplxLU.cc SparsedbleLU.cc \
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5547
diff changeset
121 SparseCmplxCHOL.cc SparsedbleCHOL.cc \
5785
6b9cec830d72 [project @ 2006-05-03 19:32:46 by dbateman]
dbateman
parents: 5781
diff changeset
122 SparseCmplxQR.cc SparseQR.cc MatrixType.cc \
4902
bd043a433918 [project @ 2004-06-14 18:46:20 by jwe]
jwe
parents: 4850
diff changeset
123 int8NDArray.cc uint8NDArray.cc int16NDArray.cc uint16NDArray.cc \
bd043a433918 [project @ 2004-06-14 18:46:20 by jwe]
jwe
parents: 4850
diff changeset
124 int32NDArray.cc uint32NDArray.cc int64NDArray.cc uint64NDArray.cc
2829
6655bdca97fb [project @ 1997-03-25 23:58:24 by jwe]
jwe
parents: 2811
diff changeset
125
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
126 MX_OP_SRC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx list_cc_files=1 $(srcdir)/mx-ops)
466
05d84a40195d [project @ 1994-06-06 01:12:05 by jwe]
jwe
parents: 411
diff changeset
127
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
128 VX_OP_SRC := $(shell $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx list_cc_files=1 $(srcdir)/vx-ops)
3582
a93683ccc9ba [project @ 2000-02-05 10:00:49 by jwe]
jwe
parents: 3519
diff changeset
129
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
130 SPARSE_MX_OP_SRC := $(shell $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx list_cc_files=1 $(srcdir)/sparse-mx-ops)
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
131
7000
e87f860624cc [project @ 2007-10-10 17:50:59 by jwe]
jwe
parents: 6796
diff changeset
132 LIBOCTAVE_CXX_SOURCES := Bounds.cc CollocWt.cc DASPK.cc DASRT.cc \
e87f860624cc [project @ 2007-10-10 17:50:59 by jwe]
jwe
parents: 6796
diff changeset
133 DASSL.cc FEGrid.cc LinConst.cc LSODE.cc NLEqn.cc ODES.cc \
3990
46388d6a4e44 [project @ 2002-07-16 06:20:39 by jwe]
jwe
parents: 3984
diff changeset
134 Quad.cc Range.cc data-conv.cc dir-ops.cc \
3912
f56cd411adb4 [project @ 2002-04-28 03:12:27 by jwe]
jwe
parents: 3861
diff changeset
135 file-ops.cc file-stat.cc glob-match.cc idx-vector.cc \
f56cd411adb4 [project @ 2002-04-28 03:12:27 by jwe]
jwe
parents: 3861
diff changeset
136 lo-ieee.cc lo-mappers.cc lo-specfun.cc lo-sysdep.cc \
f56cd411adb4 [project @ 2002-04-28 03:12:27 by jwe]
jwe
parents: 3861
diff changeset
137 lo-utils.cc mach-info.cc oct-alloc.cc oct-env.cc \
6375
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
138 oct-fftw.cc oct-group.cc oct-md5.cc oct-passwd.cc oct-rand.cc \
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
139 oct-shlib.cc oct-spparms.cc oct-syscalls.cc oct-time.cc oct-uname.cc \
5547
8b0b36c2dc0c [project @ 2005-11-29 17:41:33 by jwe]
jwe
parents: 5527
diff changeset
140 prog-args.cc so-array.cc sparse-sort.cc sparse-util.cc str-vec.cc \
1533
fe059f3bae29 [project @ 1995-10-05 05:30:03 by jwe]
jwe
parents: 1530
diff changeset
141 $(TEMPLATE_SRC) \
fe059f3bae29 [project @ 1995-10-05 05:30:03 by jwe]
jwe
parents: 1530
diff changeset
142 $(TI_SRC) \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
143 $(MATRIX_SRC)
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
144
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
145 BUILT_LIBOCTAVE_CXX_SOURCES := \
3582
a93683ccc9ba [project @ 2000-02-05 10:00:49 by jwe]
jwe
parents: 3519
diff changeset
146 $(MX_OP_SRC) \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
147 $(VX_OP_SRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
148 $(SPARSE_MX_OP_SRC)
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
149
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4307
diff changeset
150 LIBOCTAVE_C_SOURCES := f2c-main.c filemode.c getopt.c getopt1.c \
6375
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
151 lo-cieee.c lo-cutils.c md5.c mkdir.c oct-getopt.c \
5730
109fdf7b3dcb [project @ 2006-04-03 19:18:26 by jwe]
jwe
parents: 5681
diff changeset
152 randgamma.c randmtzig.c randpoisson.c rename.c \
6111
ed81d74118bb [project @ 2006-10-27 02:43:23 by jwe]
jwe
parents: 6087
diff changeset
153 rmdir.c strftime.c strptime.c strcasecmp.c strncase.c \
6375
5fced7a5eee8 [project @ 2007-03-01 17:23:39 by dbateman]
dbateman
parents: 6366
diff changeset
154 tempname.c tempnam.c
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
155
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
156 LIBOCTAVE_SOURCES := $(LIBOCTAVE_CXX_SOURCES) $(BUILT_LIBOCTAVE_CXX_SOURCES) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
157 $(LIBOCTAVE_C_SOURCES)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
158
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
159 LIBOCT_READLINE_CXX_SOURCES := cmd-edit.cc cmd-hist.cc
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
160
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
161 LIBOCT_READLINE_C_SOURCES := oct-rl-edit.c oct-rl-hist.c
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
162
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
163 LIBOCT_READLINE_SOURCES := $(LIBOCT_READLINE_CXX_SOURCES) $(LIBOCT_READLINE_C_SOURCES)
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
164
4399
286a3345aa8e [project @ 2003-05-01 03:00:28 by jwe]
jwe
parents: 4378
diff changeset
165 LIBOCT_PATHSEARCH_CXX_SOURCES := pathsearch.cc
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
166
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4307
diff changeset
167 LIBOCT_PATHSEARCH_C_SOURCES := kpse-xfns.c
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
168
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
169 LIBOCT_PATHSEARCH_SOURCES := \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
170 $(LIBOCT_PATHSEARCH_C_SOURCES) $(LIBOCT_PATHSEARCH_CXX_SOURCES)
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
171
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
172 SOURCES := \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
173 $(LIBOCTAVE_SOURCES) \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
174 $(LIBOCT_READLINE_SOURCES) \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
175 $(LIBOCT_PATHSEARCH_SOURCES)
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
176
4946
48a39e2b2ab7 [project @ 2004-08-31 17:27:04 by jwe]
jwe
parents: 4906
diff changeset
177 EXTRAS := mx-inlines.cc kpse.cc intNDArray.cc
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
178
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
179 INCLUDES_FOR_INSTALL := $(INCLUDES) $(BUILT_INCLUDES) $(TEMPLATE_SRC) $(EXTRAS)
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents: 2938
diff changeset
180
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
181 DISTFILES := $(addprefix $(srcdir)/, Makefile.in ChangeLog mk-ops.awk \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
182 mx-ops vx-ops sparse-mk-ops.awk sparse-mx-ops oct-types.h.in \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
183 $(LIBOCTAVE_CXX_SOURCES) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
184 $(LIBOCT_READLINE_SOURCES) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
185 $(LIBOCT_PATHSEARCH_SOURCES) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
186 $(LIBOCTAVE_C_SOURCES) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
187 $(INCLUDES) $(EXTRAS) $(OPTS_INC_DATA)) \
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
188 $(BUILT_LIBOCTAVE_CXX_SOURCES) $(BUILT_INCLUDES)
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
189
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5330
diff changeset
190 MAKEDEPS_1 := $(patsubst %.cc, %.d, $(SOURCES))
1767
6d9270b4fad8 [project @ 1996-01-23 06:42:26 by jwe]
jwe
parents: 1758
diff changeset
191 MAKEDEPS := $(patsubst %.c, %.d, $(MAKEDEPS_1))
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
192
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
193 LIBOCTAVE_OBJECTS := \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
194 $(LIBOCTAVE_CXX_SOURCES:.cc=.o) \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6467
diff changeset
195 $(BUILT_LIBOCTAVE_CXX_SOURCES:.cc=.o) \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
196 $(LIBOCTAVE_C_SOURCES:.c=.o) \
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
197 $(LIBOCT_READLINE_CXX_SOURCES:.cc=.o) \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
198 $(LIBOCT_READLINE_C_SOURCES:.c=.o) \
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
199 $(LIBOCT_PATHSEARCH_CXX_SOURCES:.cc=.o) \
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
200 $(LIBOCT_PATHSEARCH_C_SOURCES:.c=.o)
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
201
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
202 ifeq ($(SHARED_LIBS), true)
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
203 ifdef CXXPICFLAG
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
204 LIBOCTAVE_PICOBJ := $(addprefix pic/, $(LIBOCTAVE_OBJECTS))
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
205 else
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
206 LIBOCTAVE_PICOBJ := $(LIBOCTAVE_OBJECTS)
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
207 endif
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
208 endif
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
209
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3124
diff changeset
210 all: libraries
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
211 .PHONY: all
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
212
5866
f9ac7ebf0e19 [project @ 2006-06-28 16:05:22 by jwe]
jwe
parents: 5785
diff changeset
213 objects: $(LIBOCTAVE_OBJECTS)
3613
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3597
diff changeset
214
3206
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
215 stmp-pic: pic
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
216 @if [ -f stmp-pic ]; then \
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
217 true; \
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
218 else \
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
219 echo "touch stmp-pic"; \
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
220 touch stmp-pic; \
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
221 fi
d0d2b69dc6c2 [project @ 1998-11-03 02:43:31 by jwe]
jwe
parents: 3185
diff changeset
222
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
223 pic:
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
224 @if [ -d pic ]; then \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
225 true; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2316
diff changeset
226 else \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
227 echo "mkdir pic"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
228 mkdir pic; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2316
diff changeset
229 fi
1668
6e8ac624ed9b [project @ 1995-12-26 06:35:24 by jwe]
jwe
parents: 1666
diff changeset
230
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
231 stamp-prereq: $(OPTS_INC) $(VX_OP_INC) $(VX_OP_SRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
232 $(MX_OP_INC) $(MX_OP_SRC) mx-ops.h \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
233 $(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC)
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
234 touch stamp-prereq
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
235
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
236 ifeq ($(SHARED_LIBS), true)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
237 ifeq ($(STATIC_LIBS), true)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
238 libraries: \
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
239 stamp-prereq \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
240 $(LIBPRE)octave.$(LIBEXT) $(LIBPRE)octave.$(SHLEXT_VER)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
241 else
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
242 libraries: \
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
243 stamp-prereq \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
244 $(LIBPRE)octave.$(SHLEXT_VER)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
245 endif
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
246 else
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
247 ifeq ($(STATIC_LIBS), true)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
248 libraries: \
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
249 stamp-prereq \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
250 $(LIBPRE)octave.$(LIBEXT)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
251 else
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
252 libraries: stamp-prereq
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
253 endif
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
254 endif
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
255 .PHONY: libraries
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
256
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
257 $(LIBPRE)octave.$(LIBEXT): $(LIBOCTAVE_OBJECTS)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
258 rm -f $@
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4307
diff changeset
259 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
260 $(RANLIB) $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
261
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
262 $(LIBPRE)octave.$(SHLEXT_VER): $(LIBPRE)octave.$(SHLEXT)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
263 rm -f $@
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
264 $(LN_S) $< $@
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
265
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
266 $(LIBPRE)octave.$(SHLEXT): $(LIBOCTAVE_PICOBJ)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
267 rm -f $@
4229
40153a2affd6 [project @ 2002-12-18 20:37:32 by jwe]
jwe
parents: 4228
diff changeset
268 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ \
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4307
diff changeset
269 $(LIBOCTAVE_PICOBJ) $(LINK_DEPS)
3857
f7c7ecb63a7e [project @ 2001-11-07 05:36:34 by jwe]
jwe
parents: 3827
diff changeset
270
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
271 $(LIBOCTAVE_PICOBJ): stmp-pic
1773
5215571ea783 [project @ 1996-01-23 08:10:26 by jwe]
jwe
parents: 1767
diff changeset
272
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
273 check: all
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
274 .PHONY: check
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
275
2129
5a87c7443fdb [project @ 1996-05-13 01:53:40 by jwe]
jwe
parents: 2128
diff changeset
276 install: install-lib install-inc
2128
53db3b9399f0 [project @ 1996-05-13 01:49:42 by jwe]
jwe
parents: 2055
diff changeset
277 .PHONY: install
53db3b9399f0 [project @ 1996-05-13 01:49:42 by jwe]
jwe
parents: 2055
diff changeset
278
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2686
diff changeset
279 install-strip:
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2686
diff changeset
280 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2686
diff changeset
281 .PHONY: install-strip
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2686
diff changeset
282
2129
5a87c7443fdb [project @ 1996-05-13 01:53:40 by jwe]
jwe
parents: 2128
diff changeset
283 install-lib:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4399
diff changeset
284 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
285 if $(STATIC_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
286 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
287 $(INSTALL_DATA) $(LIBPRE)octave.$(LIBEXT) \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
288 $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
289 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
290 fi
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
291 if $(SHARED_LIBS); then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
292 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \
4480
b96f2c55d5a3 [project @ 2003-07-31 14:46:50 by jwe]
jwe
parents: 4473
diff changeset
293 $(INSTALL) \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
294 $(LIBPRE)octave.$(SHLLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
295 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
296 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(LIBPRE)octave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB)); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
297 if test x$(SHLBIN) != x ; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
298 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octave.$(SHLBIN); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
299 $(INSTALL_PROGRAM) \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
300 $(LIBPRE)octave.$(SHLBIN) $(DESTDIR)$(bindir)/$(LIBPRE)octave.$(SHLBIN); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
301 fi; \
1682
e436e535e295 [project @ 1995-12-30 03:42:27 by jwe]
jwe
parents: 1668
diff changeset
302 fi
2129
5a87c7443fdb [project @ 1996-05-13 01:53:40 by jwe]
jwe
parents: 2128
diff changeset
303 .PHONY: install-lib
2128
53db3b9399f0 [project @ 1996-05-13 01:49:42 by jwe]
jwe
parents: 2055
diff changeset
304
2129
5a87c7443fdb [project @ 1996-05-13 01:53:40 by jwe]
jwe
parents: 2128
diff changeset
305 install-inc:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4399
diff changeset
306 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
307 for f in $(INCLUDES_FOR_INSTALL); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4399
diff changeset
308 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
4103
677c5f3a15be [project @ 2002-10-14 21:20:48 by jwe]
jwe
parents: 4102
diff changeset
309 if [ -f $$f ]; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4399
diff changeset
310 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f; \
4103
677c5f3a15be [project @ 2002-10-14 21:20:48 by jwe]
jwe
parents: 4102
diff changeset
311 else \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4399
diff changeset
312 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \
4103
677c5f3a15be [project @ 2002-10-14 21:20:48 by jwe]
jwe
parents: 4102
diff changeset
313 fi ; \
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
314 done
2129
5a87c7443fdb [project @ 1996-05-13 01:53:40 by jwe]
jwe
parents: 2128
diff changeset
315 .PHONY: install-inc
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
316
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
317 uninstall:
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
318 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
319 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB)
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
320 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
321 if test x$(SHLBIN) != x; then \
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
322 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octave.$(SHLBIN); \
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
323 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octave.$(SHLBIN_VER); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4072
diff changeset
324 fi
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
325 for f in $(INCLUDES_FOR_INSTALL); do rm -f $(DESTDIR)$(octincludedir)/octave/$$f; done
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
326 .PHONY: uninstall
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
327
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
328 tags: $(SOURCES)
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
329 ctags $(SOURCES)
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
330
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
331 TAGS: $(SOURCES)
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
332 etags $(SOURCES)
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
333
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
334 clean:
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 5915
diff changeset
335 rm -f $(LIBPRE)octave.$(LIBEXT) $(LIBPRE)octave.$(SHLEXT_VER) $(LIBPRE)octave.$(SHLEXT)
5866
f9ac7ebf0e19 [project @ 2006-06-28 16:05:22 by jwe]
jwe
parents: 5785
diff changeset
336 rm -f $(LIBOCTAVE_OBJECTS) $(MAKEDEPS) $(LIBOCTAVE_PICOBJ) stmp-pic
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3124
diff changeset
337 -rmdir pic
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
338 .PHONY: clean
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
339
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
340 mostlyclean: clean
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
341 .PHONY: mostlyclean
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
342
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
343 distclean: clean
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
344 rm -f Makefile so_locations stamp-prereq oct-types.h $(OPTS_INC)
4713
d803e4187494 [project @ 2004-01-22 20:31:55 by jwe]
jwe
parents: 4712
diff changeset
345 rm -f mx-ops.h $(MX_OP_INC) $(VX_OP_INC) $(MX_OP_SRC) $(VX_OP_SRC)
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
346 rm -f $(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC)
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
347 .PHONY: distclean
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
348
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1386
diff changeset
349 maintainer-clean: distclean
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 2993
diff changeset
350 rm -f tags TAGS
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1386
diff changeset
351 .PHONY: maintainer-clean
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
352
4616
33030b47385a [project @ 2003-11-15 02:01:46 by jwe]
jwe
parents: 4588
diff changeset
353 dist: stamp-prereq
6467
a84de7048629 [project @ 2007-03-27 16:05:15 by jwe]
jwe
parents: 6375
diff changeset
354 ln $(DISTFILES) ../`cat ../.fname`/liboctave
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
355 .PHONY: dist
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
356
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
357 $(OPTS_INC) : %.h : %.in $(top_srcdir)/mk-opts.pl
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
358 @echo making $@ from $<
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 3998
diff changeset
359 @perl $(top_srcdir)/mk-opts.pl --opt-class-header $< > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6137
diff changeset
360 @$(simple-move-if-change-rule)
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
361
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
362 $(VX_OP_INC) $(VX_OP_SRC) : $(srcdir)/mk-ops.awk vx-ops
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
363 $(AWK) -f $(srcdir)/mk-ops.awk prefix=vx $(srcdir)/vx-ops
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
364
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
365 $(MX_OP_INC) $(MX_OP_SRC) : $(srcdir)/mk-ops.awk mx-ops
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
366 $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx $(srcdir)/mx-ops
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
367
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
368 $(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC) : $(srcdir)/sparse-mk-ops.awk sparse-mx-ops
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
369 $(AWK) -f $(srcdir)/sparse-mk-ops.awk prefix=smx $(srcdir)/sparse-mx-ops
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5072
diff changeset
370
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
371 mx-ops.h : $(srcdir)/mk-ops.awk mx-ops
4547
308feb0e5646 [project @ 2003-10-25 01:59:15 by jwe]
jwe
parents: 4544
diff changeset
372 $(AWK) -f $(srcdir)/mk-ops.awk prefix=mx make_inclusive_header=mx-ops.h $(srcdir)/mx-ops > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6137
diff changeset
373 $(simple-move-if-change-rule)
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
374
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4523
diff changeset
375
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
376 # If missing, GNU make attempts to create them in the reverse of the
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
377 # order in which they are listed here. We rely on that fact to ensure
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
378 # that defaults.h is created before trying to create the .d files.
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
379 # Hmm. I wonder if we can count on that...
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
380
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
381 ifndef omit_deps
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
382 -include $(MAKEDEPS) stamp-prereq
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1214
diff changeset
383 endif