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