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