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