Mercurial > octave-nkf
annotate src/Makefile.in @ 8417:654bcfb937bf
Add the eigs and svds functions
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 23 Dec 2008 08:28:23 +0100 |
parents | c187f0e3a7ee |
children | 77fe47e73075 |
rev | line source |
---|---|
2 | 1 # Makefile for octave's src 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/>. | |
2 | 21 |
22 TOPDIR = .. | |
23 | |
411 | 24 srcdir = @srcdir@ |
25 top_srcdir = @top_srcdir@ | |
2930 | 26 VPATH = @srcdir@:@srcdir@/DLD-FUNCTIONS:@srcdir@/OPERATORS:@srcdir@/TEMPLATE-INST |
2 | 27 |
411 | 28 include $(TOPDIR)/Makeconf |
2 | 29 |
6137 | 30 DLL_CDEFS = @OCTINTERP_DLL_DEFS@ |
31 DLL_CXXDEFS = @OCTINTERP_DLL_DEFS@ | |
6087 | 32 |
651 | 33 INSTALL = @INSTALL@ |
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
35 INSTALL_DATA = @INSTALL_DATA@ | |
36 | |
2633 | 37 PT_FLAGS = -fexternal-templates -fno-implicit-templates |
38 CXXFLAGS_NO_PT_FLAGS = $(filter-out $(PT_FLAGS), $(ALL_CXXFLAGS)) | |
603 | 39 |
2390 | 40 %.df : %.cc |
529 | 41 @echo making $@ from $< |
6218 | 42 @(echo "// DO NOT EDIT! Generated automatically by mkdefs." ; \ |
43 egrep '^(///*|/\*) *PKG_ADD:' $< ; \ | |
5534 | 44 $(CXXCPP) $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) -DMAKE_BUILTINS $< \ |
45 | $(srcdir)/mkdefs) > $@-t | |
6603 | 46 @mv $@-t $@ |
1684 | 47 |
48 # How to make a .oct file from a .o file: | |
529 | 49 |
4128 | 50 ifeq ($(ENABLE_DYNAMIC_LINKING), true) |
2358 | 51 ifdef CXXPICFLAG |
4139 | 52 %.oct : pic/%.o octave$(EXEEXT) |
4759 | 53 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) |
2358 | 54 else |
4139 | 55 %.oct : %.o octave$(EXEEXT) |
4759 | 56 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) |
2358 | 57 endif |
1684 | 58 endif |
59 | |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
60 OPT_BASE := $(addsuffix -opts, DASPK DASRT DASSL LSODE Quad) |
7449 | 61 OPT_HANDLERS := $(addsuffix .cc, $(OPT_BASE)) |
62 OPT_IN := $(addprefix ../liboctave/, $(addsuffix .in, $(OPT_BASE))) | |
63 OPT_INC := $(addprefix ../liboctave/, $(addsuffix .h, $(OPT_BASE))) | |
3998 | 64 |
7619 | 65 DLD_XSRC := amd.cc balance.cc besselj.cc betainc.cc bsxfun.cc cellfun.cc \ |
66 chol.cc ccolamd.cc colamd.cc colloc.cc conv2.cc convhulln.cc daspk.cc \ | |
7580
b4aa9ef3d3ef
Port dlmread, dlmwrite, csvread and csvwrite from octave-forge
David Bateman <dbateman@free.fr>
parents:
7515
diff
changeset
|
67 dasrt.cc dassl.cc det.cc dispatch.cc dlmread.cc dmperm.cc eig.cc \ |
8392
c187f0e3a7ee
use m-file implementation for expm
Jaroslav Hajek <highegg@gmail.com>
parents:
8367
diff
changeset
|
68 fft.cc fft2.cc fftn.cc fftw.cc filter.cc find.cc \ |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8303
diff
changeset
|
69 fltk_backend.cc \ |
5819 | 70 gammainc.cc gcd.cc getgrent.cc getpwent.cc getrusage.cc \ |
7671
4fbaba9abec1
implement compiled binary lookup
Jaroslav Hajek <highegg@gmail.com>
parents:
7662
diff
changeset
|
71 givens.cc hess.cc hex2num.cc inv.cc kron.cc lookup.cc lsode.cc \ |
7662 | 72 lu.cc luinc.cc matrix_type.cc max.cc md5sum.cc pinv.cc qr.cc \ |
7788 | 73 quad.cc qz.cc rand.cc rcond.cc regexp.cc schur.cc sparse.cc \ |
7515
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7505
diff
changeset
|
74 spparms.cc sqrtm.cc svd.cc syl.cc symrcm.cc symbfact.cc \ |
f3c00dc0912b
Eliminate the rest of the dispatched sparse functions
David Bateman <dbateman@free.fr>
parents:
7505
diff
changeset
|
75 time.cc tsearch.cc typecast.cc \ |
6868 | 76 urlwrite.cc __contourc__.cc __delaunayn__.cc __dsearchn__.cc \ |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
77 __glpk__.cc __lin_interpn__.cc __magick_read__.cc __pchip_deriv__.cc \ |
7640 | 78 __qp__.cc __voronoi__.cc __convn__.cc |
529 | 79 |
2930 | 80 DLD_SRC := $(addprefix DLD-FUNCTIONS/, $(DLD_XSRC)) |
81 | |
5102 | 82 DLD_OBJ_1 := $(patsubst %.l, %.o, $(DLD_XSRC)) |
83 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_OBJ_1)) | |
2 | 84 |
4128 | 85 ifeq ($(ENABLE_DYNAMIC_LINKING), true) |
1684 | 86 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ)) |
87 ifdef CXXPICFLAG | |
88 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ)) | |
89 else | |
90 DLD_PICOBJ := $(DLD_OBJ) | |
91 endif | |
92 else | |
93 DLD_STATIC_OBJ := $(DLD_OBJ) | |
94 endif | |
95 | |
4901 | 96 OV_INTTYPE_INC := ov-base-int.h ov-int-traits.h ov-intx.h \ |
97 ov-int8.h ov-int16.h ov-int32.h ov-int64.h \ | |
98 ov-uint8.h ov-uint16.h ov-uint32.h ov-uint64.h | |
99 | |
3977 | 100 OV_INCLUDES := ov-re-mat.h ov-cx-mat.h ov-ch-mat.h ov-cs-list.h ov-list.h \ |
5848 | 101 ov-struct.h ov-scalar.h ov-range.h ov-complex.h \ |
3223 | 102 ov-colon.h ov-base.h ov-base-mat.h ov-base-scalar.h \ |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
7954
diff
changeset
|
103 ov-str-mat.h ov-bool-mat.h ov-null-mat.h ov-bool.h \ |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
104 ov-base-diag.h ov-re-diag.h ov-flt-re-diag.h ov-cx-diag.h ov-flt-cx-diag.h \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
105 ov-perm.h ov-flt-perm.h \ |
5353 | 106 ov-cell.h ov.h ov-fcn.h ov-builtin.h ov-dld-fcn.h \ |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7466
diff
changeset
|
107 ov-mex-fcn.h ov-usr-fcn.h ov-fcn-handle.h \ |
7336 | 108 ov-fcn-inline.h ov-class.h ov-typeinfo.h ov-type-conv.h \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
109 ov-flt-re-mat.h ov-flt-cx-mat.h ov-float.h ov-flt-complex.h \ |
4901 | 110 $(OV_INTTYPE_INC) |
2930 | 111 |
5164 | 112 OV_SPARSE_INCLUDES := \ |
113 ov-base-sparse.h ov-bool-sparse.h ov-cx-sparse.h ov-re-sparse.h | |
114 | |
2993 | 115 PT_INCLUDES := pt.h pt-all.h pt-arg-list.h pt-assign.h pt-binop.h \ |
7800
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
116 pt-bp.h pt-cbinop.h pt-cell.h pt-check.h pt-cmd.h pt-colon.h \ |
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
117 pt-const.h pt-decl.h pt-except.h pt-exp.h pt-fcn-handle.h \ |
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
118 pt-id.h pt-idx.h pt-jump.h pt-loop.h pt-mat.h pt-misc.h \ |
3770 | 119 pt-pr-code.h pt-select.h pt-stmt.h pt-unop.h pt-walk.h \ |
2 | 120 |
7258 | 121 INCLUDES := Cell.h base-list.h builtins.h c-file-ptr-stream.h \ |
122 comment-list.h debug.h defun-dld.h defun-int.h defun.h \ | |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7800
diff
changeset
|
123 dirfns.h dynamic-ld.h error.h file-io.h gl-render.h \ |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7800
diff
changeset
|
124 gripes.h help.h input.h lex.h load-path.h load-save.h ls-hdf5.h \ |
7258 | 125 ls-mat-ascii.h ls-mat4.h ls-mat5.h ls-oct-ascii.h \ |
126 ls-oct-binary.h ls-utils.h mex.h mexproto.h oct-errno.h \ | |
127 oct-fstrm.h oct-hist.h oct-iostrm.h oct-map.h oct-obj.h \ | |
128 oct-prcstrm.h oct-procbuf.h oct-stdstrm.h oct-stream.h \ | |
129 zfstream.h oct-strstrm.h oct-lvalue.h oct.h octave.h ops.h \ | |
130 pager.h parse.h pr-output.h procstream.h sighandlers.h \ | |
131 siglist.h sparse-xdiv.h sparse-xpow.h symtab.h sysdep.h \ | |
132 token.h toplev.h unwind-prot.h utils.h variables.h \ | |
8303
b11c31849b44
improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
8150
diff
changeset
|
133 version.h xdiv.h xnorm.h xpow.h \ |
5164 | 134 $(OV_INCLUDES) \ |
135 $(PT_INCLUDES) \ | |
136 $(OV_SPARSE_INCLUDES) | |
759 | 137 |
7336 | 138 TI_XSRC := Array-os.cc Array-tc.cc |
1684 | 139 |
2930 | 140 TI_SRC := $(addprefix TEMPLATE-INST/, $(TI_XSRC)) |
141 | |
5075 | 142 INTTYPE_OP_XSRC := op-int-concat.cc op-int-conv.cc op-double-conv.cc \ |
4901 | 143 op-i8-i8.cc op-i16-i16.cc op-i32-i32.cc op-i64-i64.cc \ |
144 op-ui8-ui8.cc op-ui16-ui16.cc op-ui32-ui32.cc op-ui64-ui64.cc | |
145 | |
5164 | 146 SPARSE_OP_XSRC := op-bm-sbm.cc op-b-sbm.cc op-cm-scm.cc op-cm-sm.cc \ |
5353 | 147 op-cs-scm.cc op-cs-sm.cc op-m-scm.cc op-m-sm.cc op-sbm-b.cc \ |
148 op-sbm-bm.cc op-sbm-sbm.cc op-scm-cm.cc op-scm-cs.cc op-scm-m.cc \ | |
5164 | 149 op-scm-s.cc op-scm-scm.cc op-scm-sm.cc op-sm-cm.cc \ |
150 op-sm-cs.cc op-sm-m.cc op-sm-s.cc op-sm-scm.cc op-sm-sm.cc \ | |
151 op-s-scm.cc op-s-sm.cc | |
152 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
153 DOUBLE_OP_XSRC := op-cm-cm.cc op-cm-cs.cc op-cm-m.cc \ |
3928 | 154 op-cm-s.cc op-cs-cm.cc op-cs-cs.cc op-cs-m.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
155 op-cs-s.cc op-m-cm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
156 op-m-cs.cc op-m-m.cc op-m-s.cc op-s-cm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
157 op-s-cs.cc op-s-m.cc op-s-s.cc |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
158 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
159 FLOAT_OP_XSRC := op-fcm-fcm.cc op-fcm-fcs.cc op-fcm-fm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
160 op-fcm-fs.cc op-fcs-fcm.cc op-fcs-fcs.cc op-fcs-fm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
161 op-fcs-fs.cc op-fm-fcm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
162 op-fm-fcs.cc op-fm-fm.cc op-fm-fs.cc op-fs-fcm.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
163 op-fs-fcs.cc op-fs-fm.cc op-fs-fs.cc |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
164 |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
165 DIAG_OP_XSRC := op-cdm-cdm.cc op-cdm-cm.cc op-cdm-cs.cc op-cdm-dm.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
166 op-cdm-m.cc op-cdm-s.cc op-cm-cdm.cc op-cm-dm.cc op-dm-cdm.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
167 op-dm-cm.cc op-dm-cs.cc op-dm-dm.cc op-dm-m.cc op-dm-s.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
168 op-m-cdm.cc op-m-dm.cc |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
169 |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
170 FDIAG_OP_XSRC := op-fcdm-fcdm.cc op-fcdm-fcm.cc op-fcdm-fcs.cc op-fcdm-fdm.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
171 op-fcdm-fm.cc op-fcdm-fs.cc op-fcm-fcdm.cc op-fcm-fdm.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
172 op-fdm-fcdm.cc op-fdm-fcm.cc op-fdm-fcs.cc op-fdm-fdm.cc \ |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
173 op-fdm-fm.cc op-fdm-fs.cc op-fm-fcdm.cc op-fm-fdm.cc |
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
174 |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
175 PERM_OP_XSRC := op-cm-pm.cc op-fcm-fpm.cc op-fm-fpm.cc op-fpm-fcm.cc \ |
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
176 op-fpm-fm.cc op-fpm-fpm.cc op-m-pm.cc op-pm-cm.cc op-pm-m.cc op-pm-pm.cc |
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
177 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
178 OP_XSRC := op-b-b.cc op-b-bm.cc op-bm-b.cc op-bm-bm.cc op-cell.cc \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
179 op-chm.cc op-class.cc op-list.cc op-range.cc op-str-m.cc \ |
7885 | 180 op-str-s.cc op-str-str.cc op-struct.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
181 $(DOUBLE_OP_XSRC) $(FLOAT_OP_XSRC) $(INTTYPE_OP_XSRC) \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
182 $(SPARSE_OP_XSRC) $(DIAG_OP_XSRC) $(FDIAG_OP_XSRC) $(PERM_OP_XSRC) |
2916 | 183 |
2930 | 184 OP_SRC := $(addprefix OPERATORS/, $(OP_XSRC)) |
185 | |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
186 OP_INCLUDES := OPERATORS/op-int.h \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
187 OPERATORS/op-dm-template.cc OPERATORS/op-dms-template.cc OPERATORS/op-pm-template.cc |
4960 | 188 |
4931 | 189 OV_INTTYPE_SRC := \ |
4901 | 190 ov-int8.cc ov-int16.cc ov-int32.cc ov-int64.cc \ |
191 ov-uint8.cc ov-uint16.cc ov-uint32.cc ov-uint64.cc | |
192 | |
5164 | 193 OV_SPARSE_SRC := \ |
194 ov-base-sparse.cc ov-bool-sparse.cc ov-cx-sparse.cc ov-re-sparse.cc | |
195 | |
5113 | 196 OV_SRC := ov-base.cc ov-ch-mat.cc \ |
3977 | 197 ov-cs-list.cc ov-list.cc ov-re-mat.cc ov-cx-mat.cc \ |
4643 | 198 ov-range.cc ov-scalar.cc ov-complex.cc ov-str-mat.cc \ |
7885 | 199 ov-struct.cc \ |
8150
283989f2da9b
make null assignment matlab compatible
Jaroslav Hajek <highegg@gmail.com>
parents:
7954
diff
changeset
|
200 ov-colon.cc ov-bool-mat.cc ov-bool.cc ov-null-mat.cc ov-cell.cc \ |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7466
diff
changeset
|
201 ov.cc ov-fcn.cc ov-builtin.cc ov-dld-fcn.cc \ |
5864 | 202 ov-mex-fcn.cc ov-usr-fcn.cc ov-fcn-handle.cc ov-fcn-inline.cc \ |
7336 | 203 ov-class.cc ov-typeinfo.cc \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
204 ov-flt-re-mat.cc ov-flt-cx-mat.cc ov-float.cc ov-flt-complex.cc \ |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
205 ov-re-diag.cc ov-flt-re-diag.cc ov-cx-diag.cc ov-flt-cx-diag.cc \ |
8367
445d27d79f4e
support permutation matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8366
diff
changeset
|
206 ov-perm.cc ov-flt-perm.cc \ |
5164 | 207 $(OV_INTTYPE_SRC) \ |
208 $(OV_SPARSE_SRC) | |
2930 | 209 |
4342 | 210 PT_SRC := pt.cc pt-arg-list.cc pt-assign.cc pt-bp.cc pt-binop.cc \ |
7800
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
211 pt-cbinop.cc pt-cell.cc pt-check.cc pt-cmd.cc pt-colon.cc \ |
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
212 pt-const.cc pt-decl.cc pt-except.cc pt-exp.cc pt-fcn-handle.cc \ |
5861b95e9879
support for compound operators, implement trans_mul, mul_trans, herm_mul and mul_herm
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
213 pt-id.cc pt-idx.cc pt-jump.cc pt-loop.cc pt-mat.cc pt-misc.cc \ |
5102 | 214 pt-pr-code.cc pt-select.cc pt-stmt.cc pt-unop.cc |
2909 | 215 |
4906 | 216 DIST_SRC := Cell.cc bitfcns.cc c-file-ptr-stream.cc comment-list.cc \ |
4120 | 217 cutils.c data.cc debug.cc defaults.cc defun.cc dirfns.cc \ |
7954 | 218 dynamic-ld.cc error.cc file-io.cc gl-render.cc graphics.cc \ |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7800
diff
changeset
|
219 gripes.cc help.cc input.cc lex.l load-path.cc load-save.cc \ |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7800
diff
changeset
|
220 ls-hdf5.cc ls-mat-ascii.cc ls-mat4.cc ls-mat5.cc ls-oct-ascii.cc \ |
4633 | 221 ls-oct-binary.cc ls-utils.cc main.c mappers.cc matherr.c \ |
5864 | 222 mex.cc oct-fstrm.cc oct-hist.cc oct-iostrm.cc oct-map.cc \ |
5654 | 223 oct-obj.cc oct-prcstrm.cc oct-procbuf.cc oct-stream.cc \ |
224 octave.cc zfstream.cc oct-strstrm.cc oct-lvalue.cc pager.cc \ | |
4633 | 225 parse.y pr-output.cc procstream.cc sighandlers.cc \ |
6111 | 226 siglist.c sparse-xdiv.cc sparse-xpow.cc strfns.cc \ |
7336 | 227 syscalls.cc symtab.cc sysdep.cc token.cc toplev.cc \ |
8303
b11c31849b44
improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
8150
diff
changeset
|
228 unwind-prot.cc utils.cc variables.cc xdiv.cc xnorm.cc xpow.cc \ |
3546 | 229 $(OV_SRC) \ |
230 $(PT_SRC) | |
3053 | 231 |
232 SOURCES := $(DIST_SRC) $(OP_SRC) $(TI_SRC) | |
759 | 233 |
6874 | 234 BUILT_EXTRAS := graphics.h mxarray.h |
6796 | 235 |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
236 EXTRAS := ov-base-int.cc ov-base-mat.cc ov-base-diag.cc ov-base-scalar.cc graphics-props.cc |
4931 | 237 |
5465 | 238 EXTRA_OBJECTS := oct-errno.o octave.o builtins.o ops.o |
239 | |
6796 | 240 INCLUDES_FOR_INSTALL := $(INCLUDES) $(EXTRAS) $(BUILT_EXTRAS) |
4931 | 241 |
2930 | 242 OBJECTS_4 := $(notdir $(SOURCES)) |
759 | 243 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4)) |
244 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3)) | |
245 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2)) | |
5465 | 246 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1)) $(EXTRA_OBJECTS) |
529 | 247 |
1684 | 248 ifeq ($(SHARED_LIBS), true) |
249 ifdef CXXPICFLAG | |
250 PICOBJ := $(addprefix pic/, $(OBJECTS)) | |
251 else | |
252 PICOBJ := $(OBJECTS) | |
253 endif | |
254 endif | |
255 | |
529 | 256 # Ugh. |
257 | |
6011 | 258 DEP_5 := $(SOURCES) $(DLD_SRC) builtins.cc oct-errno.cc ops.cc main.c |
2930 | 259 DEP_4 := $(notdir $(DEP_5)) |
2907 | 260 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4)) |
261 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3)) | |
262 DEP_1 := $(patsubst %.c, %.d, $(DEP_2)) | |
263 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1)) | |
529 | 264 |
3233 | 265 # Some stupid egreps don't like empty elements in alternation patterns, |
266 # so we have to repeat ourselves because some stupid egreps don't like | |
267 # empty elements in alternation patterns. | |
268 | |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7466
diff
changeset
|
269 DEFUN_PATTERN = "^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT)[ \t]*\\(" |
3221 | 270 |
5102 | 271 DLD_DEF_FILES_1 := $(patsubst %.l, %.df, $(DLD_XSRC)) |
272 DLD_DEF_FILES := $(patsubst %.cc, %.df, $(DLD_DEF_FILES_1)) | |
4045 | 273 |
274 DEF_4 := $(addprefix $(srcdir)/, $(SOURCES)) | |
3221 | 275 DEF_3 := $(notdir $(shell egrep -l $(DEFUN_PATTERN) $(DEF_4))) |
2907 | 276 DEF_2 := $(patsubst %.y, %.df, $(DEF_3)) |
277 DEF_1 := $(patsubst %.l, %.df, $(DEF_2)) | |
4045 | 278 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1)) $(DLD_DEF_FILES) |
2907 | 279 |
5794 | 280 DOC_FILES := $(sort $(DEF_FILES)) |
3295 | 281 |
3156 | 282 OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \ |
283 -L$(TOPDIR)/src $(RLD_FLAG) | |
2 | 284 |
5333 | 285 ifeq ($(ENABLE_DYNAMIC_LINKING), true) |
5330 | 286 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \ |
287 $(SPECIAL_MATH_LIB) $(LIBCRUFT) \ | |
7253 | 288 $(LIBPLPLOT) $(LIBGLOB) |
5330 | 289 else |
6823 | 290 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) $(QHULL_LIBS) \ |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
291 $(GLPK_LIBS) $(MAGICK_LIBS) $(REGEX_LIBS) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \ |
7253 | 292 $(LIBPLPLOT) $(LIBGLOB) |
5330 | 293 endif |
4038 | 294 |
4760 | 295 OCTINTERP_LINK_DEPS = \ |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
296 -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS) \ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
297 $(OPENGL_LIBS) |
4760 | 298 |
299 OCT_LINK_DEPS = \ | |
300 -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \ | |
5455 | 301 -L. $(LIBOCTINTERP) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \ |
6024 | 302 $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \ |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8392
diff
changeset
|
303 $(FFTW_LIBS) $(ARPACK_LIBS) $(LIBS) $(FLIBS) |
4102 | 304 |
6796 | 305 BUILT_DISTFILES = DOCSTRINGS oct-gperf.h parse.cc lex.cc y.tab.h \ |
306 $(OPT_HANDLERS) $(BUILT_EXTRAS) | |
307 | |
6909 | 308 DISTFILES = Makefile.in ChangeLog genprops.awk mkdefs mkops mkgendoc \ |
6796 | 309 mkbuiltins mk-errno-list mk-pkg-add \ |
6874 | 310 defaults.h.in graphics.h.in mxarray.h.in oct-conf.h.in \ |
311 oct-errno.cc.in octave.gperf \ | |
6796 | 312 $(INCLUDES) $(DIST_SRC) $(EXTRAS) |
2 | 313 |
5534 | 314 all: octave$(EXEEXT) $(OCT_FILES) PKG_ADD DOCSTRINGS |
2 | 315 .PHONY: all |
316 | |
3613 | 317 objects: $(OBJECTS) |
318 | |
7358 | 319 lex.o parse.o pic/lex.o pic/parse.o: \ |
5761 | 320 ALL_CXXFLAGS := $(filter-out -Wold-style-cast, $(ALL_CXXFLAGS)) |
5760 | 321 |
6080 | 322 $(DLD_PICOBJ): \ |
6137 | 323 ALL_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(ALL_CXXFLAGS)) |
6080 | 324 |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
325 fltk_backend.o pic/fltk_backend.o: \ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
326 ALL_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(ALL_CXXFLAGS) $(GRAPHICS_CFLAGS)) |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
327 |
3695 | 328 XERBLA = ../libcruft/blas-xtra/xerbla.o |
4159 | 329 ifdef FPICFLAG |
330 PIC_XERBLA = ../libcruft/blas-xtra/pic/xerbla.o | |
331 else | |
332 PIC_XERBLA = $(XERBLA) | |
333 endif | |
3695 | 334 |
3615 | 335 ifeq ($(SHARED_LIBS), true) |
336 ifeq ($(STATIC_LIBS), true) | |
6051 | 337 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) $(LIBPRE)octinterp.$(SHLEXT_VER) |
3615 | 338 else |
6051 | 339 LIBRARIES = $(LIBPRE)octinterp.$(SHLEXT_VER) |
3615 | 340 endif |
341 else | |
342 ifeq ($(STATIC_LIBS), true) | |
6051 | 343 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) |
3615 | 344 else |
3695 | 345 ## This is not going to work, but hey, you asked for it... |
3615 | 346 LIBRARIES = |
347 endif | |
348 endif | |
349 | |
350 libraries: $(LIBRARIES) | |
351 .PHONY: libraries | |
352 | |
6051 | 353 $(LIBPRE)octinterp.$(LIBEXT): $(OBJECTS) $(XERBLA) |
3615 | 354 rm -f $@ |
3775 | 355 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^ |
3615 | 356 $(RANLIB) $@ |
357 | |
6051 | 358 $(LIBPRE)octinterp.$(SHLEXT_VER): $(LIBPRE)octinterp.$(SHLEXT) |
3615 | 359 rm -f $@ |
360 $(LN_S) $< $@ | |
361 | |
6051 | 362 $(LIBPRE)octinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA) |
3615 | 363 rm -f $@ |
4102 | 364 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS) |
3615 | 365 |
7446 | 366 octave$(EXEEXT): $(LIBRARIES) main.o $(DLD_STATIC_OBJ) |
3705 | 367 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
4098 | 368 $(ALL_LDFLAGS) -o $@ \ |
4159 | 369 main.o $(DLD_STATIC_OBJ) \ |
1684 | 370 $(OCTAVE_LFLAGS) \ |
2 | 371 $(OCTAVE_LIBS) \ |
6024 | 372 $(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \ |
5610 | 373 $(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \ |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8392
diff
changeset
|
374 $(FFTW_LIBS) $(ARPACK_LIBS) $(OPENGL_LIBS) $(LIBS) $(FLIBS) |
2 | 375 |
3301 | 376 stmp-pic: pic |
377 @if [ -f stmp-pic ]; then \ | |
378 true; \ | |
379 else \ | |
380 echo "touch stmp-pic"; \ | |
381 touch stmp-pic; \ | |
382 fi | |
383 | |
3029 | 384 pic: |
385 @if [ -d pic ]; then \ | |
386 true; \ | |
2358 | 387 else \ |
3029 | 388 echo "mkdir pic"; \ |
389 mkdir pic; \ | |
2358 | 390 fi |
1684 | 391 |
3301 | 392 $(PICOBJ): stmp-pic |
3141 | 393 |
529 | 394 builtins.cc: $(DEF_FILES) mkbuiltins |
2907 | 395 @echo making $@ |
396 @echo DEF_FILES = $(DEF_FILES) | |
397 @echo $(DEF_FILES) > def-files | |
5794 | 398 @$(srcdir)/mkbuiltins def-files > $@-t |
7446 | 399 @mv $@-t $@ |
529 | 400 |
7946
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
401 ## FIXME -- maybe genprops.awk should write both output files? |
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
402 ## Or maybe there should be separate commands to generate each file? |
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
403 graphics.h graphics-props.cc: graphics.h.in genprops.awk |
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
404 @echo making graphics.h and graphics-props.cc |
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
405 @$(AWK) -f $(srcdir)/genprops.awk $< > graphics.h-t |
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
406 @mv graphics.h-t graphics.h |
6874 | 407 |
5534 | 408 PKG_ADD: $(DLD_DEF_FILES) |
5739 | 409 $(srcdir)/mk-pkg-add $(DLD_DEF_FILES) > $@-t |
7446 | 410 @mv $@-t $@ |
5102 | 411 |
4098 | 412 DOCSTRINGS: gendoc$(BUILD_EXEEXT) |
6519 | 413 @echo making $@ |
414 @./gendoc > $@-t | |
7446 | 415 @mv $@-t $@ |
3295 | 416 |
4002 | 417 doc-files: $(DOC_FILES) |
3295 | 418 @echo making $@ |
419 @echo DOC_FILES = $(DOC_FILES) | |
4002 | 420 @echo $(DOC_FILES) > $@-t |
6519 | 421 mv $@-t $@ |
4002 | 422 |
423 gendoc.cc: doc-files mkgendoc | |
424 @echo making $@ | |
3295 | 425 @$(srcdir)/mkgendoc doc-files > $@-t |
7446 | 426 @mv $@-t $@ |
3295 | 427 |
4098 | 428 gendoc$(BUILD_EXEEXT): gendoc.cc |
4299 | 429 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) |
3363 | 430 |
2944 | 431 ops.cc: $(OP_SRC) mkops |
432 @echo making $@ from $(OP_SRC) | |
4014 | 433 @$(srcdir)/mkops $(OP_SRC) > $@-t |
7446 | 434 @mv $@-t $@ |
2909 | 435 |
7449 | 436 PREREQ := defaults.h graphics.h oct-conf.h oct-errno.cc oct-gperf.h parse.cc lex.cc |
579 | 437 |
7449 | 438 $(DEF_FILES): $(OPT_INC) mkdefs |
4619 | 439 |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7455
diff
changeset
|
440 ifndef omit_deps |
7449 | 441 $(MAKEDEPS): $(OPT_INC) $(OPT_HANDLERS) $(PREREQ) |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7455
diff
changeset
|
442 endif |
529 | 443 |
2 | 444 check: all |
445 .PHONY: check | |
446 | |
2130 | 447 install: install-bin install-oct install-lib install-inc |
1684 | 448 .PHONY: install |
449 | |
2811 | 450 install-strip: |
451 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install | |
452 .PHONY: install-strip | |
453 | |
1684 | 454 install-bin: |
4413 | 455 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
456 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT) | |
457 $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT) | |
5451 | 458 cd $(DESTDIR)$(bindir) ; $(LN_S) octave-$(version)$(EXEEXT) octave$(EXEEXT) |
1684 | 459 .PHONY: install-bin |
460 | |
5739 | 461 install-oct: |
5244 | 462 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octfiledir) |
5739 | 463 $(INSTALL_DATA) PKG_ADD $(DESTDIR)$(octfiledir)/PKG_ADD |
2437 | 464 if [ -n "$(OCT_FILES)" ]; then \ |
3029 | 465 xfiles="$(OCT_FILES)"; \ |
466 for f in $$xfiles; do \ | |
4413 | 467 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \ |
3029 | 468 done; \ |
2437 | 469 fi |
2130 | 470 .PHONY: install-oct |
471 | |
1684 | 472 install-lib: |
4413 | 473 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir) |
3034 | 474 if $(STATIC_LIBS); then \ |
6051 | 475 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ |
476 $(INSTALL_DATA) $(LIBPRE)octinterp.$(LIBEXT) \ | |
477 $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ | |
478 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ | |
3034 | 479 fi |
3029 | 480 if $(SHARED_LIBS); then \ |
6051 | 481 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLEXT_VER); \ |
482 $(INSTALL) $(LIBPRE)octinterp.$(SHLLIB) \ | |
483 $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB_VER); \ | |
484 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB); \ | |
485 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(LIBPRE)octinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB)); \ | |
4102 | 486 if test x$(SHLBIN) != x ; then \ |
6051 | 487 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \ |
4473 | 488 $(INSTALL_PROGRAM) \ |
6051 | 489 $(LIBPRE)octinterp.$(SHLBIN) $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \ |
4102 | 490 fi; \ |
3029 | 491 fi |
1684 | 492 .PHONY: install-lib |
493 | |
2130 | 494 install-inc: |
4413 | 495 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave |
4931 | 496 for f in $(INCLUDES_FOR_INSTALL); do \ |
4413 | 497 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
6686 | 498 if [ -f $$f ]; then \ |
499 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f; \ | |
500 else \ | |
501 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \ | |
502 fi ; \ | |
2130 | 503 done |
3029 | 504 for f in defaults.h oct-conf.h oct-gperf.h; do \ |
4413 | 505 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
3072 | 506 if [ -f $$f ]; then \ |
4413 | 507 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f ; \ |
3072 | 508 else \ |
4413 | 509 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f ; \ |
3072 | 510 fi ; \ |
2131 | 511 done |
2639 | 512 .PHONY: install-inc |
2 | 513 |
514 uninstall: | |
4413 | 515 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT) |
6366 | 516 rm -f $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT) |
6051 | 517 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT) |
518 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB) | |
519 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB_VER) | |
4102 | 520 if test x$(SHLBIN) != x ; then \ |
6051 | 521 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \ |
522 rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN_VER); \ | |
4102 | 523 fi |
6366 | 524 for f in $(INCLUDES_FOR_INSTALL) defaults.h oct-conf.h oct-gperf.h; do \ |
4413 | 525 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
2161 | 526 done |
6366 | 527 if [ -n "$(OCT_FILES)" ]; then \ |
528 xfiles="$(OCT_FILES)"; \ | |
529 for f in $$xfiles; do \ | |
530 rm -f $(DESTDIR)$(octfiledir)/$$f; \ | |
531 done; \ | |
532 fi | |
533 rm -f $(DESTDIR)$(octfiledir)/PKG_ADD | |
6654 | 534 -rmdir $(DESTDIR)$(octincludedir)/octave |
535 -rmdir $(DESTDIR)$(octincludedir) | |
536 -rmdir $(DESTDIR)$(octlibdir) | |
537 -rmdir $(DESTDIR)$(octfiledir) | |
2 | 538 .PHONY: uninstall |
539 | |
2930 | 540 tags: $(SOURCES) $(DLD_SRC) |
541 ctags $(SOURCES) $(DLD_SRC) | |
2 | 542 |
2930 | 543 TAGS: $(SOURCES) $(DLD_SRC) |
544 etags $(SOURCES) $(DLD_SRC) | |
2 | 545 |
546 clean: | |
6051 | 547 rm -f $(LIBPRE)octinterp.$(LIBEXT) |
548 rm -f $(LIBPRE)octinterp.$(SHLEXT_VER) $(LIBPRE)octinterp.$(SHLEXT) | |
5866 | 549 rm -f $(OBJECTS) $(DLD_OBJ) $(MAKEDEPS) $(DOC_FILES) $(OCT_FILES) |
5307 | 550 rm -f $(PICOBJ) $(DLD_PICOBJ) stmp-pic gendoc$(EXEEXT) |
5794 | 551 rm -f builtins.cc ops.cc defaults.h oct-conf.h def-files |
5276 | 552 rm -f PKG_ADD |
3141 | 553 -rmdir pic |
2 | 554 .PHONY: clean |
555 | |
3301 | 556 mostlyclean: clean |
2 | 557 .PHONY: mostlyclean |
558 | |
559 distclean: clean | |
5527 | 560 rm -f Makefile octave$(EXEEXT) .fname so_locations oct-errno.cc |
7449 | 561 rm -f stamp-liboctave-prereq |
7363 | 562 rm -f doc-files gendoc.cc graphics.h graphics-props.cc mxarray.h DOCSTRINGS |
2 | 563 .PHONY: distclean |
564 | |
1391 | 565 maintainer-clean: distclean |
7452 | 566 rm -f tags TAGS y.tab.h y.output yy.lex.c lex.cc parse.cc |
7358 | 567 rm -f oct-gperf.h $(OPT_HANDLERS) |
1391 | 568 .PHONY: maintainer-clean |
2 | 569 |
1497 | 570 dist: parse.cc lex.cc oct-gperf.h |
6797 | 571 ln $(addprefix $(srcdir)/, $(DISTFILES)) ../`cat ../.fname`/src |
6796 | 572 ln $(BUILT_DISTFILES) ../`cat ../.fname`/src |
3053 | 573 for f in DLD-FUNCTIONS OPERATORS TEMPLATE-INST; do \ |
574 if [ -d ../`cat ../.fname`/src/$$f ]; then \ | |
575 true; \ | |
576 else \ | |
577 mkdir ../`cat ../.fname`/src/$$f; \ | |
578 fi; \ | |
579 done | |
6797 | 580 ln $(addprefix $(srcdir)/, $(DLD_SRC)) ../`cat ../.fname`/src/DLD-FUNCTIONS |
581 ln $(addprefix $(srcdir)/, $(OP_SRC)) ../`cat ../.fname`/src/OPERATORS | |
582 ln $(addprefix $(srcdir)/, $(OP_INCLUDES)) ../`cat ../.fname`/src/OPERATORS | |
583 ln $(addprefix $(srcdir)/, $(TI_SRC)) ../`cat ../.fname`/src/TEMPLATE-INST | |
643 | 584 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c |
2390 | 585 rm -f oct-gperf.h defaults.h oct-conf.h *.d *.df builtins.cc |
2 | 586 .PHONY: dist |
587 | |
1895 | 588 conf-dist: |
6797 | 589 ln $(addprefix $(srcdir)/, octave.cc Makefile.in) ../`cat ../.fname`/src |
1895 | 590 .PHONY: conf-dist |
591 | |
2 | 592 # Special rules -- these files need special things to be defined. |
593 | |
3998 | 594 $(OPT_HANDLERS) : %.cc : $(top_srcdir)/liboctave/%.in $(top_srcdir)/mk-opts.pl |
595 @echo making $@ from $< | |
5465 | 596 @$(PERL) $(top_srcdir)/mk-opts.pl --opt-handler-fcns $< > $@-t |
7446 | 597 @mv $@-t $@ |
3998 | 598 |
7454 | 599 ## We require Bison. |
2524 | 600 parse.cc : parse.y |
5296 | 601 @echo "expect 14 shift/reduce conflicts" |
7454 | 602 $(YACC) $(YFLAGS) --output=$@ --defines=y.tab.h $< |
2524 | 603 |
604 lex.cc : lex.l | |
6152 | 605 $(LEX) $(LFLAGS) $< > $(@F)-t |
7446 | 606 @mv $(@F)-t $@ |
2524 | 607 |
7449 | 608 |
609 $(OPT_INC) : %.h : %.in | |
610 $(MAKE) -C $(@D) $@ | |
611 | |
5658 | 612 ## We want to force an update of defaults.h and oct-conf.h every |
613 ## time make is run because some values may come from the command | |
614 ## line or the environment. The substitution rules use move-if-change, | |
615 ## so this should not cause trouble if the file already exists and the | |
616 ## newly generated file is not different. | |
617 | |
618 defaults.h: defaults.h.in ../Makeconf Makefile FORCE | |
2161 | 619 @$(do-subst-default-vals) |
620 | |
5658 | 621 oct-conf.h: oct-conf.h.in ../Makeconf Makefile FORCE |
2161 | 622 @$(do-subst-config-vals) |
2 | 623 |
5658 | 624 FORCE: |
625 .PHONY: FORCE | |
626 | |
5465 | 627 oct-errno.cc: oct-errno.cc.in ../Makeconf Makefile |
628 @echo "making $@ from $<" | |
5468 | 629 @if test -n "$(PERL)"; then \ |
5527 | 630 $(srcdir)/mk-errno-list --perl "$(PERL)" < $< > $@-t; \ |
5494 | 631 elif test -n "$(PYTHON)"; then \ |
5527 | 632 $(srcdir)/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \ |
5465 | 633 else \ |
5527 | 634 $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \ |
5465 | 635 fi |
7446 | 636 @mv $@-t $@ |
5465 | 637 |
1497 | 638 oct-gperf.h: octave.gperf |
1903 | 639 @echo "making $@ from $<" |
5527 | 640 @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< | \ |
641 $(SED) 's,lookup\[,gperf_lookup[,' > $@-t \ | |
642 || (rm -f $@-t; exit 1) | |
7446 | 643 @mv $@-t $@ |
1497 | 644 |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
645 __magick_read__.d: CPPFLAGS += $(MAGICK_INCFLAGS) |
7947
c2d50b69b19f
src/Makefile.in (__magick_read__.df): Append MAGICK_INCFLAGS to CPPFLAGS
John W. Eaton <jwe@octave.org>
parents:
7946
diff
changeset
|
646 __magick_read__.df: CPPFLAGS += $(MAGICK_INCFLAGS) |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
647 __magick_read__.o pic/__magick_read__.o: CPPFLAGS += $(MAGICK_INCFLAGS) |
7938 | 648 __magick_read__.oct: OCT_LINK_DEPS += $(MAGICK_LIBS) |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
649 |
7938 | 650 convhulln.oct: OCT_LINK_DEPS += $(QHULL_LIBS) |
651 __delaunayn__.oct: OCT_LINK_DEPS += $(QHULL_LIBS) | |
652 __voronoi__.oct: OCT_LINK_DEPS += $(QHULL_LIBS) | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8392
diff
changeset
|
653 eigs.oct: OCT_LINK_DEPS += $(ARPACK_LIBS) |
7938 | 654 regexp.oct: OCT_LINK_DEPS += $(REGEX_LIBS) |
655 urlwrite.oct: OCT_LINK_DEPS += $(CURL_LIBS) | |
656 __glpk__.oct: OCT_LINK_DEPS += $(GLPK_LIBS) | |
657 fltk_backend.oct: OCT_LINK_DEPS += $(GRAPHICS_LIBS) $(FT2_LIBS) | |
5235 | 658 |
666 | 659 check: all |
660 .PHONY: check | |
661 | |
7448 | 662 ifdef omit_deps |
663 .PHONY: $(MAKEDEPS) | |
664 endif | |
665 | |
6152 | 666 -include $(MAKEDEPS) |