Mercurial > octave-nkf
annotate src/Makefile.in @ 8618:f8b3ece45bda
use separate prefix for shllib and shlbin files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Jan 2009 17:42:18 -0500 |
parents | 5cc594679cdc |
children | 73c4516fae10 |
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 \ |
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-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
|
119 pt-id.h pt-idx.h pt-jump.h pt-loop.h pt-mat.h pt-misc.h \ |
3770 | 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 \ | |
128 oct-fstrm.h oct-hist.h oct-iostrm.h oct-map.h oct-obj.h \ | |
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 | |
5075 | 143 INTTYPE_OP_XSRC := op-int-concat.cc op-int-conv.cc op-double-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 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
154 DOUBLE_OP_XSRC := 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 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7788
diff
changeset
|
160 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
|
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 \ |
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-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
|
214 pt-id.cc pt-idx.cc pt-jump.cc pt-loop.cc pt-mat.cc pt-misc.cc \ |
5102 | 215 pt-pr-code.cc pt-select.cc pt-stmt.cc pt-unop.cc |
2909 | 216 |
4906 | 217 DIST_SRC := Cell.cc bitfcns.cc c-file-ptr-stream.cc comment-list.cc \ |
4120 | 218 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
|
219 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
|
220 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
|
221 ls-hdf5.cc ls-mat-ascii.cc ls-mat4.cc ls-mat5.cc ls-oct-ascii.cc \ |
4633 | 222 ls-oct-binary.cc ls-utils.cc main.c mappers.cc matherr.c \ |
5864 | 223 mex.cc oct-fstrm.cc oct-hist.cc oct-iostrm.cc oct-map.cc \ |
5654 | 224 oct-obj.cc oct-prcstrm.cc oct-procbuf.cc oct-stream.cc \ |
225 octave.cc zfstream.cc oct-strstrm.cc oct-lvalue.cc pager.cc \ | |
4633 | 226 parse.y pr-output.cc procstream.cc sighandlers.cc \ |
6111 | 227 siglist.c sparse-xdiv.cc sparse-xpow.cc strfns.cc \ |
7336 | 228 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
|
229 unwind-prot.cc utils.cc variables.cc xdiv.cc xnorm.cc xpow.cc \ |
3546 | 230 $(OV_SRC) \ |
231 $(PT_SRC) | |
3053 | 232 |
233 SOURCES := $(DIST_SRC) $(OP_SRC) $(TI_SRC) | |
759 | 234 |
6874 | 235 BUILT_EXTRAS := graphics.h mxarray.h |
6796 | 236 |
8366
8b1a2555c4e2
implement diagonal matrix objects
Jaroslav Hajek <highegg@gmail.com>
parents:
8306
diff
changeset
|
237 EXTRAS := ov-base-int.cc ov-base-mat.cc ov-base-diag.cc ov-base-scalar.cc graphics-props.cc |
4931 | 238 |
5465 | 239 EXTRA_OBJECTS := oct-errno.o octave.o builtins.o ops.o |
240 | |
6796 | 241 INCLUDES_FOR_INSTALL := $(INCLUDES) $(EXTRAS) $(BUILT_EXTRAS) |
4931 | 242 |
2930 | 243 OBJECTS_4 := $(notdir $(SOURCES)) |
759 | 244 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4)) |
245 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3)) | |
246 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2)) | |
5465 | 247 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1)) $(EXTRA_OBJECTS) |
529 | 248 |
1684 | 249 ifeq ($(SHARED_LIBS), true) |
250 ifdef CXXPICFLAG | |
251 PICOBJ := $(addprefix pic/, $(OBJECTS)) | |
252 else | |
253 PICOBJ := $(OBJECTS) | |
254 endif | |
255 endif | |
256 | |
529 | 257 # Ugh. |
258 | |
6011 | 259 DEP_5 := $(SOURCES) $(DLD_SRC) builtins.cc oct-errno.cc ops.cc main.c |
2930 | 260 DEP_4 := $(notdir $(DEP_5)) |
2907 | 261 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4)) |
262 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3)) | |
263 DEP_1 := $(patsubst %.c, %.d, $(DEP_2)) | |
264 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1)) | |
529 | 265 |
3233 | 266 # Some stupid egreps don't like empty elements in alternation patterns, |
267 # so we have to repeat ourselves because some stupid egreps don't like | |
268 # empty elements in alternation patterns. | |
269 | |
7503
8c32f95c2639
convert mapper functions to new format
David Bateman <dbateman@free.fr>
parents:
7466
diff
changeset
|
270 DEFUN_PATTERN = "^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT)[ \t]*\\(" |
3221 | 271 |
5102 | 272 DLD_DEF_FILES_1 := $(patsubst %.l, %.df, $(DLD_XSRC)) |
273 DLD_DEF_FILES := $(patsubst %.cc, %.df, $(DLD_DEF_FILES_1)) | |
4045 | 274 |
275 DEF_4 := $(addprefix $(srcdir)/, $(SOURCES)) | |
3221 | 276 DEF_3 := $(notdir $(shell egrep -l $(DEFUN_PATTERN) $(DEF_4))) |
2907 | 277 DEF_2 := $(patsubst %.y, %.df, $(DEF_3)) |
278 DEF_1 := $(patsubst %.l, %.df, $(DEF_2)) | |
4045 | 279 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1)) $(DLD_DEF_FILES) |
2907 | 280 |
5794 | 281 DOC_FILES := $(sort $(DEF_FILES)) |
3295 | 282 |
3156 | 283 OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \ |
284 -L$(TOPDIR)/src $(RLD_FLAG) | |
2 | 285 |
5333 | 286 ifeq ($(ENABLE_DYNAMIC_LINKING), true) |
5330 | 287 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \ |
288 $(SPECIAL_MATH_LIB) $(LIBCRUFT) \ | |
7253 | 289 $(LIBPLPLOT) $(LIBGLOB) |
5330 | 290 else |
6823 | 291 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
|
292 $(GLPK_LIBS) $(MAGICK_LIBS) $(REGEX_LIBS) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \ |
7253 | 293 $(LIBPLPLOT) $(LIBGLOB) |
5330 | 294 endif |
4038 | 295 |
4760 | 296 OCTINTERP_LINK_DEPS = \ |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
297 -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS) \ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
298 $(OPENGL_LIBS) |
4760 | 299 |
300 OCT_LINK_DEPS = \ | |
301 -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \ | |
5455 | 302 -L. $(LIBOCTINTERP) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \ |
6024 | 303 $(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
|
304 $(FFTW_LIBS) $(QRUPDATE_LIBS) $(ARPACK_LIBS) $(LIBS) $(FLIBS) |
4102 | 305 |
6796 | 306 BUILT_DISTFILES = DOCSTRINGS oct-gperf.h parse.cc lex.cc y.tab.h \ |
307 $(OPT_HANDLERS) $(BUILT_EXTRAS) | |
308 | |
6909 | 309 DISTFILES = Makefile.in ChangeLog genprops.awk mkdefs mkops mkgendoc \ |
6796 | 310 mkbuiltins mk-errno-list mk-pkg-add \ |
6874 | 311 defaults.h.in graphics.h.in mxarray.h.in oct-conf.h.in \ |
312 oct-errno.cc.in octave.gperf \ | |
6796 | 313 $(INCLUDES) $(DIST_SRC) $(EXTRAS) |
2 | 314 |
5534 | 315 all: octave$(EXEEXT) $(OCT_FILES) PKG_ADD DOCSTRINGS |
2 | 316 .PHONY: all |
317 | |
3613 | 318 objects: $(OBJECTS) |
319 | |
7358 | 320 lex.o parse.o pic/lex.o pic/parse.o: \ |
5761 | 321 ALL_CXXFLAGS := $(filter-out -Wold-style-cast, $(ALL_CXXFLAGS)) |
5760 | 322 |
6080 | 323 $(DLD_PICOBJ): \ |
6137 | 324 ALL_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(ALL_CXXFLAGS)) |
6080 | 325 |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
326 fltk_backend.o pic/fltk_backend.o: \ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
327 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
|
328 |
3695 | 329 XERBLA = ../libcruft/blas-xtra/xerbla.o |
4159 | 330 ifdef FPICFLAG |
331 PIC_XERBLA = ../libcruft/blas-xtra/pic/xerbla.o | |
332 else | |
333 PIC_XERBLA = $(XERBLA) | |
334 endif | |
3695 | 335 |
3615 | 336 ifeq ($(SHARED_LIBS), true) |
337 ifeq ($(STATIC_LIBS), true) | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
338 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) $(SHLLIBPRE)octinterp.$(SHLEXT_VER) |
3615 | 339 else |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
340 LIBRARIES = $(SHLLIBPRE)octinterp.$(SHLEXT_VER) |
3615 | 341 endif |
342 else | |
343 ifeq ($(STATIC_LIBS), true) | |
6051 | 344 LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) |
3615 | 345 else |
3695 | 346 ## This is not going to work, but hey, you asked for it... |
3615 | 347 LIBRARIES = |
348 endif | |
349 endif | |
350 | |
351 libraries: $(LIBRARIES) | |
352 .PHONY: libraries | |
353 | |
6051 | 354 $(LIBPRE)octinterp.$(LIBEXT): $(OBJECTS) $(XERBLA) |
3615 | 355 rm -f $@ |
3775 | 356 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^ |
3615 | 357 $(RANLIB) $@ |
358 | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
359 $(SHLLIBPRE)octinterp.$(SHLEXT_VER): $(SHLLIBPRE)octinterp.$(SHLEXT) |
3615 | 360 rm -f $@ |
361 $(LN_S) $< $@ | |
362 | |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
363 $(SHLLIBPRE)octinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA) |
3615 | 364 rm -f $@ |
4102 | 365 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS) |
3615 | 366 |
7446 | 367 octave$(EXEEXT): $(LIBRARIES) main.o $(DLD_STATIC_OBJ) |
3705 | 368 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
4098 | 369 $(ALL_LDFLAGS) -o $@ \ |
4159 | 370 main.o $(DLD_STATIC_OBJ) \ |
1684 | 371 $(OCTAVE_LFLAGS) \ |
2 | 372 $(OCTAVE_LIBS) \ |
6024 | 373 $(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \ |
5610 | 374 $(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \ |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8419
diff
changeset
|
375 $(FFTW_LIBS) $(QRUPDATE_LIBS) $(ARPACK_LIBS) $(OPENGL_LIBS) \ |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
376 $(X11_LIBS) $(LIBS) $(FLIBS) |
2 | 377 |
3301 | 378 stmp-pic: pic |
379 @if [ -f stmp-pic ]; then \ | |
380 true; \ | |
381 else \ | |
382 echo "touch stmp-pic"; \ | |
383 touch stmp-pic; \ | |
384 fi | |
385 | |
3029 | 386 pic: |
387 @if [ -d pic ]; then \ | |
388 true; \ | |
2358 | 389 else \ |
3029 | 390 echo "mkdir pic"; \ |
391 mkdir pic; \ | |
2358 | 392 fi |
1684 | 393 |
3301 | 394 $(PICOBJ): stmp-pic |
3141 | 395 |
529 | 396 builtins.cc: $(DEF_FILES) mkbuiltins |
2907 | 397 @echo making $@ |
398 @echo DEF_FILES = $(DEF_FILES) | |
399 @echo $(DEF_FILES) > def-files | |
5794 | 400 @$(srcdir)/mkbuiltins def-files > $@-t |
7446 | 401 @mv $@-t $@ |
529 | 402 |
7946
ebe275f82bd5
src/Makefile.in (EXTRAS): Add graphics.cc to the list
John W. Eaton <jwe@octave.org>
parents:
7938
diff
changeset
|
403 ## 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
|
404 ## 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
|
405 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
|
406 @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
|
407 @$(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
|
408 @mv graphics.h-t graphics.h |
6874 | 409 |
5534 | 410 PKG_ADD: $(DLD_DEF_FILES) |
5739 | 411 $(srcdir)/mk-pkg-add $(DLD_DEF_FILES) > $@-t |
7446 | 412 @mv $@-t $@ |
5102 | 413 |
4098 | 414 DOCSTRINGS: gendoc$(BUILD_EXEEXT) |
6519 | 415 @echo making $@ |
416 @./gendoc > $@-t | |
7446 | 417 @mv $@-t $@ |
3295 | 418 |
4002 | 419 doc-files: $(DOC_FILES) |
3295 | 420 @echo making $@ |
421 @echo DOC_FILES = $(DOC_FILES) | |
4002 | 422 @echo $(DOC_FILES) > $@-t |
6519 | 423 mv $@-t $@ |
4002 | 424 |
425 gendoc.cc: doc-files mkgendoc | |
426 @echo making $@ | |
3295 | 427 @$(srcdir)/mkgendoc doc-files > $@-t |
7446 | 428 @mv $@-t $@ |
3295 | 429 |
4098 | 430 gendoc$(BUILD_EXEEXT): gendoc.cc |
4299 | 431 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) |
3363 | 432 |
2944 | 433 ops.cc: $(OP_SRC) mkops |
434 @echo making $@ from $(OP_SRC) | |
4014 | 435 @$(srcdir)/mkops $(OP_SRC) > $@-t |
7446 | 436 @mv $@-t $@ |
2909 | 437 |
7449 | 438 PREREQ := defaults.h graphics.h oct-conf.h oct-errno.cc oct-gperf.h parse.cc lex.cc |
579 | 439 |
7449 | 440 $(DEF_FILES): $(OPT_INC) mkdefs |
4619 | 441 |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7455
diff
changeset
|
442 ifndef omit_deps |
7449 | 443 $(MAKEDEPS): $(OPT_INC) $(OPT_HANDLERS) $(PREREQ) |
7466
49d462292af4
omit more dependencies for distclean target
John W. Eaton <jwe@octave.org>
parents:
7455
diff
changeset
|
444 endif |
529 | 445 |
2 | 446 check: all |
447 .PHONY: check | |
448 | |
2130 | 449 install: install-bin install-oct install-lib install-inc |
1684 | 450 .PHONY: install |
451 | |
2811 | 452 install-strip: |
453 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install | |
454 .PHONY: install-strip | |
455 | |
1684 | 456 install-bin: |
4413 | 457 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
458 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT) | |
459 $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT) | |
5451 | 460 cd $(DESTDIR)$(bindir) ; $(LN_S) octave-$(version)$(EXEEXT) octave$(EXEEXT) |
1684 | 461 .PHONY: install-bin |
462 | |
5739 | 463 install-oct: |
5244 | 464 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octfiledir) |
5739 | 465 $(INSTALL_DATA) PKG_ADD $(DESTDIR)$(octfiledir)/PKG_ADD |
2437 | 466 if [ -n "$(OCT_FILES)" ]; then \ |
3029 | 467 xfiles="$(OCT_FILES)"; \ |
468 for f in $$xfiles; do \ | |
4413 | 469 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \ |
3029 | 470 done; \ |
2437 | 471 fi |
2130 | 472 .PHONY: install-oct |
473 | |
1684 | 474 install-lib: |
4413 | 475 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir) |
3034 | 476 if $(STATIC_LIBS); then \ |
6051 | 477 rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ |
478 $(INSTALL_DATA) $(LIBPRE)octinterp.$(LIBEXT) \ | |
479 $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ | |
480 $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(LIBEXT); \ | |
3034 | 481 fi |
3029 | 482 if $(SHARED_LIBS); then \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
483 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
|
484 $(INSTALL) $(SHLLIBPRE)octinterp.$(SHLLIB) \ |
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
485 $(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
|
486 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
|
487 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(SHLLIBPRE)octinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octinterp.$(SHLLIB)); \ |
4102 | 488 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
|
489 rm -f $(DESTDIR)$(bindir)/$(SHLBINPRE)octinterp.$(SHLBIN); \ |
4473 | 490 $(INSTALL_PROGRAM) \ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
491 $(SHLBINPRE)octinterp.$(SHLBIN) $(DESTDIR)$(bindir)/$(SHLBINPRE)octinterp.$(SHLBIN); \ |
4102 | 492 fi; \ |
3029 | 493 fi |
1684 | 494 .PHONY: install-lib |
495 | |
2130 | 496 install-inc: |
4413 | 497 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave |
4931 | 498 for f in $(INCLUDES_FOR_INSTALL); do \ |
4413 | 499 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
6686 | 500 if [ -f $$f ]; then \ |
501 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f; \ | |
502 else \ | |
503 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \ | |
504 fi ; \ | |
2130 | 505 done |
3029 | 506 for f in defaults.h oct-conf.h oct-gperf.h; do \ |
4413 | 507 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
3072 | 508 if [ -f $$f ]; then \ |
4413 | 509 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f ; \ |
3072 | 510 else \ |
4413 | 511 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f ; \ |
3072 | 512 fi ; \ |
2131 | 513 done |
2639 | 514 .PHONY: install-inc |
2 | 515 |
516 uninstall: | |
4413 | 517 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT) |
6366 | 518 rm -f $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT) |
6051 | 519 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
|
520 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
|
521 rm -f $(DESTDIR)$(octlibdir)/$(SHLLIBPRE)octinterp.$(SHLLIB_VER) |
4102 | 522 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
|
523 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
|
524 rm -f $(DESTDIR)$(bindir)/$(SHLBINPRE)octinterp.$(SHLBIN_VER); \ |
4102 | 525 fi |
6366 | 526 for f in $(INCLUDES_FOR_INSTALL) defaults.h oct-conf.h oct-gperf.h; do \ |
4413 | 527 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \ |
2161 | 528 done |
6366 | 529 if [ -n "$(OCT_FILES)" ]; then \ |
530 xfiles="$(OCT_FILES)"; \ | |
531 for f in $$xfiles; do \ | |
532 rm -f $(DESTDIR)$(octfiledir)/$$f; \ | |
533 done; \ | |
534 fi | |
535 rm -f $(DESTDIR)$(octfiledir)/PKG_ADD | |
6654 | 536 -rmdir $(DESTDIR)$(octincludedir)/octave |
537 -rmdir $(DESTDIR)$(octincludedir) | |
538 -rmdir $(DESTDIR)$(octlibdir) | |
539 -rmdir $(DESTDIR)$(octfiledir) | |
2 | 540 .PHONY: uninstall |
541 | |
2930 | 542 tags: $(SOURCES) $(DLD_SRC) |
543 ctags $(SOURCES) $(DLD_SRC) | |
2 | 544 |
2930 | 545 TAGS: $(SOURCES) $(DLD_SRC) |
546 etags $(SOURCES) $(DLD_SRC) | |
2 | 547 |
548 clean: | |
6051 | 549 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
|
550 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
|
551 rm -f $(SHLBINPRE)octinterp.$(SHLBIN_VER) $(SHLBINPRE)octinterp.$(SHLBIN) |
5866 | 552 rm -f $(OBJECTS) $(DLD_OBJ) $(MAKEDEPS) $(DOC_FILES) $(OCT_FILES) |
5307 | 553 rm -f $(PICOBJ) $(DLD_PICOBJ) stmp-pic gendoc$(EXEEXT) |
5794 | 554 rm -f builtins.cc ops.cc defaults.h oct-conf.h def-files |
5276 | 555 rm -f PKG_ADD |
3141 | 556 -rmdir pic |
2 | 557 .PHONY: clean |
558 | |
3301 | 559 mostlyclean: clean |
2 | 560 .PHONY: mostlyclean |
561 | |
562 distclean: clean | |
5527 | 563 rm -f Makefile octave$(EXEEXT) .fname so_locations oct-errno.cc |
7449 | 564 rm -f stamp-liboctave-prereq |
7363 | 565 rm -f doc-files gendoc.cc graphics.h graphics-props.cc mxarray.h DOCSTRINGS |
2 | 566 .PHONY: distclean |
567 | |
1391 | 568 maintainer-clean: distclean |
7452 | 569 rm -f tags TAGS y.tab.h y.output yy.lex.c lex.cc parse.cc |
7358 | 570 rm -f oct-gperf.h $(OPT_HANDLERS) |
1391 | 571 .PHONY: maintainer-clean |
2 | 572 |
1497 | 573 dist: parse.cc lex.cc oct-gperf.h |
6797 | 574 ln $(addprefix $(srcdir)/, $(DISTFILES)) ../`cat ../.fname`/src |
6796 | 575 ln $(BUILT_DISTFILES) ../`cat ../.fname`/src |
3053 | 576 for f in DLD-FUNCTIONS OPERATORS TEMPLATE-INST; do \ |
577 if [ -d ../`cat ../.fname`/src/$$f ]; then \ | |
578 true; \ | |
579 else \ | |
580 mkdir ../`cat ../.fname`/src/$$f; \ | |
581 fi; \ | |
582 done | |
6797 | 583 ln $(addprefix $(srcdir)/, $(DLD_SRC)) ../`cat ../.fname`/src/DLD-FUNCTIONS |
584 ln $(addprefix $(srcdir)/, $(OP_SRC)) ../`cat ../.fname`/src/OPERATORS | |
585 ln $(addprefix $(srcdir)/, $(OP_INCLUDES)) ../`cat ../.fname`/src/OPERATORS | |
586 ln $(addprefix $(srcdir)/, $(TI_SRC)) ../`cat ../.fname`/src/TEMPLATE-INST | |
643 | 587 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c |
2390 | 588 rm -f oct-gperf.h defaults.h oct-conf.h *.d *.df builtins.cc |
2 | 589 .PHONY: dist |
590 | |
1895 | 591 conf-dist: |
6797 | 592 ln $(addprefix $(srcdir)/, octave.cc Makefile.in) ../`cat ../.fname`/src |
1895 | 593 .PHONY: conf-dist |
594 | |
2 | 595 # Special rules -- these files need special things to be defined. |
596 | |
3998 | 597 $(OPT_HANDLERS) : %.cc : $(top_srcdir)/liboctave/%.in $(top_srcdir)/mk-opts.pl |
598 @echo making $@ from $< | |
5465 | 599 @$(PERL) $(top_srcdir)/mk-opts.pl --opt-handler-fcns $< > $@-t |
7446 | 600 @mv $@-t $@ |
3998 | 601 |
7454 | 602 ## We require Bison. |
2524 | 603 parse.cc : parse.y |
5296 | 604 @echo "expect 14 shift/reduce conflicts" |
7454 | 605 $(YACC) $(YFLAGS) --output=$@ --defines=y.tab.h $< |
2524 | 606 |
607 lex.cc : lex.l | |
6152 | 608 $(LEX) $(LFLAGS) $< > $(@F)-t |
7446 | 609 @mv $(@F)-t $@ |
2524 | 610 |
7449 | 611 |
612 $(OPT_INC) : %.h : %.in | |
613 $(MAKE) -C $(@D) $@ | |
614 | |
5658 | 615 ## We want to force an update of defaults.h and oct-conf.h every |
616 ## time make is run because some values may come from the command | |
617 ## line or the environment. The substitution rules use move-if-change, | |
618 ## so this should not cause trouble if the file already exists and the | |
619 ## newly generated file is not different. | |
620 | |
621 defaults.h: defaults.h.in ../Makeconf Makefile FORCE | |
2161 | 622 @$(do-subst-default-vals) |
623 | |
5658 | 624 oct-conf.h: oct-conf.h.in ../Makeconf Makefile FORCE |
2161 | 625 @$(do-subst-config-vals) |
2 | 626 |
5658 | 627 FORCE: |
628 .PHONY: FORCE | |
629 | |
5465 | 630 oct-errno.cc: oct-errno.cc.in ../Makeconf Makefile |
631 @echo "making $@ from $<" | |
5468 | 632 @if test -n "$(PERL)"; then \ |
5527 | 633 $(srcdir)/mk-errno-list --perl "$(PERL)" < $< > $@-t; \ |
5494 | 634 elif test -n "$(PYTHON)"; then \ |
5527 | 635 $(srcdir)/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \ |
5465 | 636 else \ |
5527 | 637 $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \ |
5465 | 638 fi |
7446 | 639 @mv $@-t $@ |
5465 | 640 |
1497 | 641 oct-gperf.h: octave.gperf |
1903 | 642 @echo "making $@ from $<" |
5527 | 643 @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< | \ |
644 $(SED) 's,lookup\[,gperf_lookup[,' > $@-t \ | |
645 || (rm -f $@-t; exit 1) | |
7446 | 646 @mv $@-t $@ |
1497 | 647 |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
648 display.o: CPPFLAGS += $(X11_FLAGS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
649 |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
650 __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
|
651 __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
|
652 __magick_read__.o pic/__magick_read__.o: CPPFLAGS += $(MAGICK_INCFLAGS) |
7938 | 653 __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
|
654 |
7938 | 655 convhulln.oct: OCT_LINK_DEPS += $(QHULL_LIBS) |
656 __delaunayn__.oct: OCT_LINK_DEPS += $(QHULL_LIBS) | |
657 __voronoi__.oct: OCT_LINK_DEPS += $(QHULL_LIBS) | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8392
diff
changeset
|
658 eigs.oct: OCT_LINK_DEPS += $(ARPACK_LIBS) |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8419
diff
changeset
|
659 qr.oct: OCT_LINK_DEPS += $(QRUPDATE_LIBS) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8419
diff
changeset
|
660 chol.oct: OCT_LINK_DEPS += $(QRUPDATE_LIBS) |
7938 | 661 regexp.oct: OCT_LINK_DEPS += $(REGEX_LIBS) |
662 urlwrite.oct: OCT_LINK_DEPS += $(CURL_LIBS) | |
663 __glpk__.oct: OCT_LINK_DEPS += $(GLPK_LIBS) | |
664 fltk_backend.oct: OCT_LINK_DEPS += $(GRAPHICS_LIBS) $(FT2_LIBS) | |
5235 | 665 |
666 | 666 check: all |
667 .PHONY: check | |
668 | |
7448 | 669 ifdef omit_deps |
670 .PHONY: $(MAKEDEPS) | |
671 endif | |
672 | |
6152 | 673 -include $(MAKEDEPS) |