annotate src/Makefile.in @ 5914:fa6aab98d040

[project @ 2006-07-28 17:38:14 by jwe]
author jwe
date Fri, 28 Jul 2006 17:38:14 +0000
parents c20eb7330d13
children 250e062c3393
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3927
e7ad1397d67b [project @ 2002-05-03 02:13:41 by jwe]
jwe
parents: 3912
diff changeset
1 #
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
2 # Makefile for octave's src directory
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
3 #
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
4 # John W. Eaton
1459
0b5abd833621 [project @ 1995-09-20 05:51:42 by jwe]
jwe
parents: 1440
diff changeset
5 # jwe@bevo.che.wisc.edu
0b5abd833621 [project @ 1995-09-20 05:51:42 by jwe]
jwe
parents: 1440
diff changeset
6 # University of Wisconsin-Madison
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
7 # Department of Chemical Engineering
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
8
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
9 TOPDIR = ..
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
10
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
11 srcdir = @srcdir@
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
12 top_srcdir = @top_srcdir@
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
13 VPATH = @srcdir@:@srcdir@/DLD-FUNCTIONS:@srcdir@/OPERATORS:@srcdir@/TEMPLATE-INST
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
14
411
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
15 include $(TOPDIR)/Makeconf
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
16
651
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
17 INSTALL = @INSTALL@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
19 INSTALL_DATA = @INSTALL_DATA@
b4692246e165 [project @ 1994-08-25 04:14:15 by jwe]
jwe
parents: 643
diff changeset
20
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
21 PT_FLAGS = -fexternal-templates -fno-implicit-templates
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
22 CXXFLAGS_NO_PT_FLAGS = $(filter-out $(PT_FLAGS), $(ALL_CXXFLAGS))
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
23
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
24 %.df : %.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
25 @echo making $@ from $<
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
26 @(egrep '^(///*|/\*) *PKG_ADD:' $< ; \
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
27 $(CXXCPP) $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) -DMAKE_BUILTINS $< \
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
28 | $(srcdir)/mkdefs) > $@-t
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
29 @mv $@-t $@
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
30
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
31 # How to make a .oct file from a .o file:
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
32
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
33 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
34 ifdef CXXPICFLAG
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
35 %.oct : pic/%.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
36 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
37 else
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
38 %.oct : %.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
39 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
40 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
41 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
42
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
43 OPT_HANDLERS := DASPK-opts.cc DASRT-opts.cc DASSL-opts.cc \
5173
1278a2bc1527 [project @ 2005-03-02 01:33:37 by jwe]
jwe
parents: 5169
diff changeset
44 LSODE-opts.cc NLEqn-opts.cc Quad-opts.cc
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
45
5819
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
46 DLD_XSRC := balance.cc besselj.cc betainc.cc cellfun.cc chol.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
47 ccolamd.cc colamd.cc colloc.cc conv2.cc daspk.cc dasrt.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
48 dassl.cc det.cc dispatch.cc eig.cc expm.cc fft.cc fft2.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
49 fftn.cc fftw_wisdom.cc filter.cc find.cc fsolve.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
50 gammainc.cc gcd.cc getgrent.cc getpwent.cc getrusage.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
51 givens.cc hess.cc inv.cc kron.cc lpsolve.cc lsode.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
52 lu.cc luinc.cc matrix_type.cc minmax.cc pinv.cc qr.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
53 quad.cc qz.cc rand.cc regexp.cc schur.cc sort.cc sparse.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
54 spchol.cc spdet.cc spkron.cc splu.cc spparms.cc spqr.cc \
e54c11df0524 [project @ 2006-05-17 20:34:52 by jwe]
jwe
parents: 5796
diff changeset
55 sqrtm.cc svd.cc syl.cc time.cc \
5838
376e02b2ce70 [project @ 2006-06-01 20:23:53 by jwe]
jwe
parents: 5832
diff changeset
56 __gnuplot_raw__.l __glpk__.cc __pchip_deriv__.cc __qp__.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
57
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
58 DLD_SRC := $(addprefix DLD-FUNCTIONS/, $(DLD_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
59
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
60 DLD_OBJ_1 := $(patsubst %.l, %.o, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
61 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_OBJ_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
62
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
63 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
64 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
65 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
66 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
67 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
68 DLD_PICOBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
69 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
70 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
71 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
72 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
73
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
74 OV_INTTYPE_INC := ov-base-int.h ov-int-traits.h ov-intx.h \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
75 ov-int8.h ov-int16.h ov-int32.h ov-int64.h \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
76 ov-uint8.h ov-uint16.h ov-uint32.h ov-uint64.h
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
77
3977
95663a3a2682 [project @ 2002-07-05 17:43:37 by jwe]
jwe
parents: 3931
diff changeset
78 OV_INCLUDES := ov-re-mat.h ov-cx-mat.h ov-ch-mat.h ov-cs-list.h ov-list.h \
5848
415ae81d331b [project @ 2006-06-08 20:37:29 by jwe]
jwe
parents: 5838
diff changeset
79 ov-struct.h ov-scalar.h ov-range.h ov-complex.h \
3223
3ee04ff37b3e [project @ 1998-11-20 19:34:15 by jwe]
jwe
parents: 3221
diff changeset
80 ov-colon.h ov-base.h ov-base-mat.h ov-base-scalar.h \
4643
ef3a14fb6847 [project @ 2003-11-22 12:25:44 by jwe]
jwe
parents: 4633
diff changeset
81 ov-streamoff.h ov-str-mat.h ov-bool-mat.h ov-bool.h \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
82 ov-cell.h ov.h ov-fcn.h ov-builtin.h ov-dld-fcn.h \
5914
fa6aab98d040 [project @ 2006-07-28 17:38:14 by jwe]
jwe
parents: 5900
diff changeset
83 ov-mapper.h ov-mex-fcn.h ov-usr-fcn.h ov-fcn-handle.h \
5864
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
84 ov-fcn-inline.h ov-typeinfo.h ov-type-conv.h \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
85 $(OV_INTTYPE_INC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
86
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
87 OV_SPARSE_INCLUDES := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
88 ov-base-sparse.h ov-bool-sparse.h ov-cx-sparse.h ov-re-sparse.h
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
89
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2991
diff changeset
90 PT_INCLUDES := pt.h pt-all.h pt-arg-list.h pt-assign.h pt-binop.h \
3770
bf6116ca10eb [project @ 2001-02-02 02:21:40 by jwe]
jwe
parents: 3731
diff changeset
91 pt-bp.h pt-cell.h pt-check.h pt-cmd.h pt-colon.h pt-const.h \
4342
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
92 pt-decl.h pt-except.h pt-exp.h pt-fcn-handle.h pt-id.h pt-idx.h \
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
93 pt-jump.h pt-loop.h pt-mat.h pt-misc.h \
3770
bf6116ca10eb [project @ 2001-02-02 02:21:40 by jwe]
jwe
parents: 3731
diff changeset
94 pt-pr-code.h pt-select.h pt-stmt.h pt-unop.h pt-walk.h \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
95
4262
1264aac9e73a [project @ 2003-01-02 23:50:22 by jwe]
jwe
parents: 4234
diff changeset
96 INCLUDES := Cell.h base-list.h c-file-ptr-stream.h comment-list.h \
1264aac9e73a [project @ 2003-01-02 23:50:22 by jwe]
jwe
parents: 4234
diff changeset
97 defun-dld.h defun-int.h defun.h dirfns.h dynamic-ld.h \
5832
5e41e06f6a78 [project @ 2006-05-26 21:41:32 by jwe]
jwe
parents: 5819
diff changeset
98 error.h file-io.h gripes.h help.h input.h \
5e41e06f6a78 [project @ 2006-05-26 21:41:32 by jwe]
jwe
parents: 5819
diff changeset
99 lex.h load-path.h load-save.h ls-hdf5.h ls-mat-ascii.h ls-mat4.h \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
100 ls-mat5.h ls-oct-ascii.h ls-oct-binary.h ls-utils.h \
5900
c20eb7330d13 [project @ 2006-07-22 08:31:16 by jwe]
jwe
parents: 5866
diff changeset
101 matrix.h mex.h mexproto.h mxarray.h \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
102 oct-errno.h oct-fstrm.h oct-hist.h oct-iostrm.h oct-map.h oct-obj.h \
5269
a90ce2dc8b1e [project @ 2005-04-06 19:20:09 by dbateman]
dbateman
parents: 5244
diff changeset
103 oct-prcstrm.h oct-procbuf.h oct-stdstrm.h oct-stream.h zfstream.h \
4959
5eb434fdd95a [project @ 2004-09-02 03:38:25 by jwe]
jwe
parents: 4958
diff changeset
104 oct-strstrm.h oct-lvalue.h oct.h octave.h ops.h pager.h \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
105 parse.h pr-output.h procstream.h sighandlers.h siglist.h \
5208
eaa9fe7ddbf3 [project @ 2005-03-15 19:33:46 by jwe]
jwe
parents: 5205
diff changeset
106 sparse-xdiv.h sparse-xpow.h symtab.h sysdep.h \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
107 token.h toplev.h unwind-prot.h utils.h variables.h version.h \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
108 xdiv.h xpow.h \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
109 $(OV_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
110 $(PT_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
111 $(OV_SPARSE_INCLUDES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
112
5142
0f9108f298ab [project @ 2005-02-12 02:29:34 by jwe]
jwe
parents: 5127
diff changeset
113 TI_XSRC := Array-os.cc Array-sym.cc Array-tc.cc
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
114
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
115 TI_SRC := $(addprefix TEMPLATE-INST/, $(TI_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
116
5075
b6a9f78f60e9 [project @ 2004-11-10 03:13:26 by jwe]
jwe
parents: 4960
diff changeset
117 INTTYPE_OP_XSRC := op-int-concat.cc op-int-conv.cc op-double-conv.cc \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
118 op-i8-i8.cc op-i16-i16.cc op-i32-i32.cc op-i64-i64.cc \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
119 op-ui8-ui8.cc op-ui16-ui16.cc op-ui32-ui32.cc op-ui64-ui64.cc
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
120
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
121 SPARSE_OP_XSRC := op-bm-sbm.cc op-b-sbm.cc op-cm-scm.cc op-cm-sm.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
122 op-cs-scm.cc op-cs-sm.cc op-m-scm.cc op-m-sm.cc op-sbm-b.cc \
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
123 op-sbm-bm.cc op-sbm-sbm.cc op-scm-cm.cc op-scm-cs.cc op-scm-m.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
124 op-scm-s.cc op-scm-scm.cc op-scm-sm.cc op-sm-cm.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
125 op-sm-cs.cc op-sm-m.cc op-sm-s.cc op-sm-scm.cc op-sm-sm.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
126 op-s-scm.cc op-s-sm.cc
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
127
4669
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4654
diff changeset
128 OP_XSRC := op-b-b.cc op-b-bm.cc op-bm-b.cc op-bm-bm.cc \
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4654
diff changeset
129 op-cell.cc op-chm.cc op-cm-cm.cc op-cm-cs.cc op-cm-m.cc \
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3927
diff changeset
130 op-cm-s.cc op-cs-cm.cc op-cs-cs.cc op-cs-m.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
131 op-cs-s.cc op-list.cc op-m-cm.cc \
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 4505
diff changeset
132 op-m-cs.cc op-m-m.cc op-m-s.cc op-range.cc op-s-cm.cc \
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 4505
diff changeset
133 op-s-cs.cc op-s-m.cc op-s-s.cc op-str-m.cc \
4936
e63617efbd3f [project @ 2004-08-06 16:18:17 by jwe]
jwe
parents: 4935
diff changeset
134 op-str-s.cc op-str-str.cc op-streamoff.cc op-struct.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
135 $(INTTYPE_OP_XSRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
136 $(SPARSE_OP_XSRC)
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
137
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
138 OP_SRC := $(addprefix OPERATORS/, $(OP_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
139
4960
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
140 OP_INCLUDES := OPERATORS/op-int.h
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
141
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
142 OV_INTTYPE_SRC := \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
143 ov-int8.cc ov-int16.cc ov-int32.cc ov-int64.cc \
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
144 ov-uint8.cc ov-uint16.cc ov-uint32.cc ov-uint64.cc
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
145
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
146 OV_SPARSE_SRC := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
147 ov-base-sparse.cc ov-bool-sparse.cc ov-cx-sparse.cc ov-re-sparse.cc
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
148
5113
cd9a8ae4e6d4 [project @ 2005-01-21 03:32:09 by jwe]
jwe
parents: 5103
diff changeset
149 OV_SRC := ov-base.cc ov-ch-mat.cc \
3977
95663a3a2682 [project @ 2002-07-05 17:43:37 by jwe]
jwe
parents: 3931
diff changeset
150 ov-cs-list.cc ov-list.cc ov-re-mat.cc ov-cx-mat.cc \
4643
ef3a14fb6847 [project @ 2003-11-22 12:25:44 by jwe]
jwe
parents: 4633
diff changeset
151 ov-range.cc ov-scalar.cc ov-complex.cc ov-str-mat.cc \
5848
415ae81d331b [project @ 2006-06-08 20:37:29 by jwe]
jwe
parents: 5838
diff changeset
152 ov-streamoff.cc ov-struct.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
153 ov-colon.cc ov-bool-mat.cc ov-bool.cc ov-cell.cc \
3351
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3347
diff changeset
154 ov.cc ov-fcn.cc ov-builtin.cc ov-dld-fcn.cc ov-mapper.cc \
5864
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
155 ov-mex-fcn.cc ov-usr-fcn.cc ov-fcn-handle.cc ov-fcn-inline.cc \
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
156 ov-typeinfo.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
157 $(OV_INTTYPE_SRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
158 $(OV_SPARSE_SRC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
159
4342
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
160 PT_SRC := pt.cc pt-arg-list.cc pt-assign.cc pt-bp.cc pt-binop.cc \
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
161 pt-cell.cc pt-check.cc pt-cmd.cc pt-colon.cc pt-const.cc \
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
162 pt-decl.cc pt-except.cc pt-exp.cc pt-fcn-handle.cc pt-id.cc \
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
163 pt-idx.cc pt-jump.cc pt-loop.cc pt-mat.cc pt-misc.cc \
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
164 pt-pr-code.cc pt-select.cc pt-stmt.cc pt-unop.cc
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
165
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4901
diff changeset
166 DIST_SRC := Cell.cc bitfcns.cc c-file-ptr-stream.cc comment-list.cc \
4120
29f648e1cd46 [project @ 2002-10-23 02:12:50 by jwe]
jwe
parents: 4119
diff changeset
167 cutils.c data.cc debug.cc defaults.cc defun.cc dirfns.cc \
5832
5e41e06f6a78 [project @ 2006-05-26 21:41:32 by jwe]
jwe
parents: 5819
diff changeset
168 dynamic-ld.cc error.cc file-io.cc gripes.cc \
5e41e06f6a78 [project @ 2006-05-26 21:41:32 by jwe]
jwe
parents: 5819
diff changeset
169 help.cc input.cc lex.l load-path.cc load-save.cc ls-hdf5.cc \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
170 ls-mat-ascii.cc ls-mat4.cc ls-mat5.cc ls-oct-ascii.cc \
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
171 ls-oct-binary.cc ls-utils.cc main.c mappers.cc matherr.c \
5864
e884ab4f29ee [project @ 2006-06-22 00:57:27 by jwe]
jwe
parents: 5848
diff changeset
172 mex.cc oct-fstrm.cc oct-hist.cc oct-iostrm.cc oct-map.cc \
5654
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
173 oct-obj.cc oct-prcstrm.cc oct-procbuf.cc oct-stream.cc \
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
174 octave.cc zfstream.cc oct-strstrm.cc oct-lvalue.cc pager.cc \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
175 parse.y pr-output.cc procstream.cc sighandlers.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
176 siglist.c sparse-xdiv.cc sparse-xpow.cc strcasecmp.c \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
177 strncase.c strfns.cc symtab.cc syscalls.cc sysdep.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
178 token.cc toplev.cc unwind-prot.cc utils.cc variables.cc \
5790
60659f01c75b [project @ 2006-05-04 18:33:11 by jwe]
jwe
parents: 5761
diff changeset
179 xdiv.cc xpow.cc \
3546
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
180 $(OV_SRC) \
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
181 $(PT_SRC)
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
182
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
183 SOURCES := $(DIST_SRC) $(OP_SRC) $(TI_SRC)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
184
5113
cd9a8ae4e6d4 [project @ 2005-01-21 03:32:09 by jwe]
jwe
parents: 5103
diff changeset
185 EXTRAS := ov-base-int.cc ov-base-mat.cc ov-base-scalar.cc
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
186
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
187 EXTRA_OBJECTS := oct-errno.o octave.o builtins.o ops.o
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
188
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
189 INCLUDES_FOR_INSTALL := $(INCLUDES) $(EXTRAS)
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
190
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
191 OBJECTS_4 := $(notdir $(SOURCES))
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
192 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
193 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
194 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
195 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1)) $(EXTRA_OBJECTS)
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
196
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
197 ifeq ($(SHARED_LIBS), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
198 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
199 PICOBJ := $(addprefix pic/, $(OBJECTS))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
200 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
201 PICOBJ := $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
202 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
203 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
204
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
205 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
206
5654
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
207 DEP_5 := $(SOURCES) $(DLD_SRC) builtins.cc ops.cc main.c
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
208 DEP_4 := $(notdir $(DEP_5))
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
209 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
210 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
211 DEP_1 := $(patsubst %.c, %.d, $(DEP_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
212 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
213
3233
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
214 # Some stupid egreps don't like empty elements in alternation patterns,
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
215 # so we have to repeat ourselves because some stupid egreps don't like
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
216 # empty elements in alternation patterns.
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
217
5796
20f4bd627a74 [project @ 2006-05-09 02:04:54 by jwe]
jwe
parents: 5794
diff changeset
218 DEFUN_PATTERN = "^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UNX_DLD|UN_TEXT|UN_MAPPER)[ \t]*\\("
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
219
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
220 DLD_DEF_FILES_1 := $(patsubst %.l, %.df, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
221 DLD_DEF_FILES := $(patsubst %.cc, %.df, $(DLD_DEF_FILES_1))
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
222
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
223 DEF_4 := $(addprefix $(srcdir)/, $(SOURCES))
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
224 DEF_3 := $(notdir $(shell egrep -l $(DEFUN_PATTERN) $(DEF_4)))
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
225 DEF_2 := $(patsubst %.y, %.df, $(DEF_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
226 DEF_1 := $(patsubst %.l, %.df, $(DEF_2))
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
227 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1)) $(DLD_DEF_FILES)
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
228
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
229 DOC_FILES := $(sort $(DEF_FILES))
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
230
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
231 OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
232 -L$(TOPDIR)/src $(RLD_FLAG)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
233
5333
ac8d64b9e76a [project @ 2005-05-02 18:15:20 by jwe]
jwe
parents: 5330
diff changeset
234 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
235 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
236 $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
237 $(LIBPLPLOT) $(LIBGLOB) $(LIBDLFCN)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
238 else
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
239 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \
5582
6bf56668b01a [project @ 2005-12-15 01:08:20 by jwe]
jwe
parents: 5576
diff changeset
240 $(GLPK_LIBS) $(REGEX_LIBS) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
241 $(LIBPLPLOT) $(LIBGLOB) $(LIBDLFCN)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
242 endif
4038
243f50d6f3d5 [project @ 2002-08-14 19:31:19 by jwe]
jwe
parents: 4016
diff changeset
243
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
244 OCTINTERP_LINK_DEPS = \
4793
a62215ab8a03 [project @ 2004-02-20 20:59:34 by jwe]
jwe
parents: 4776
diff changeset
245 -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS)
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
246
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
247 OCT_LINK_DEPS = \
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
248 -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \
5455
ec44bd0917fe [project @ 2005-09-19 16:07:56 by jwe]
jwe
parents: 5451
diff changeset
249 -L. $(LIBOCTINTERP) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5582
diff changeset
250 $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5582
diff changeset
251 $(FFTW_LIBS) $(LIBS) $(FLIBS)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
252
3305
f1c5658772cf [project @ 1999-10-20 19:40:10 by jwe]
jwe
parents: 3301
diff changeset
253 DISTFILES = Makefile.in ChangeLog mkdefs mkops mkgendoc \
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
254 DOCSTRINGS mkbuiltins mk-errno-list mk-pkg-add \
5654
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
255 defaults.h.in oct-conf.h.in oct-errno.cc.in octave.gperf \
6aae52010e3b [project @ 2006-03-09 19:04:53 by jwe]
jwe
parents: 5610
diff changeset
256 oct-gperf.h parse.cc lex.cc y.tab.h __gnuplot_raw__.cc \
4957
2da9205571f2 [project @ 2004-09-02 03:12:55 by jwe]
jwe
parents: 4936
diff changeset
257 $(INCLUDES) $(DIST_SRC) $(OPT_HANDLERS) $(EXTRAS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
258
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
259 all: octave$(EXEEXT) $(OCT_FILES) PKG_ADD DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
260 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
261
3613
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
262 objects: $(OBJECTS)
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
263
5761
f78d64fbe590 [project @ 2006-04-14 04:47:21 by jwe]
jwe
parents: 5760
diff changeset
264 lex.o parse.o __gnuplot_raw__.o pic/lex.o pic/parse.o pic/__gnuplot_raw__.o: \
f78d64fbe590 [project @ 2006-04-14 04:47:21 by jwe]
jwe
parents: 5760
diff changeset
265 ALL_CXXFLAGS := $(filter-out -Wold-style-cast, $(ALL_CXXFLAGS))
5760
8d7162924bd3 [project @ 2006-04-14 04:01:37 by jwe]
jwe
parents: 5739
diff changeset
266
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
267 XERBLA = ../libcruft/blas-xtra/xerbla.o
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
268 ifdef FPICFLAG
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
269 PIC_XERBLA = ../libcruft/blas-xtra/pic/xerbla.o
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
270 else
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
271 PIC_XERBLA = $(XERBLA)
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
272 endif
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
273
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
274 ifeq ($(SHARED_LIBS), true)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
275 ifeq ($(STATIC_LIBS), true)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
276 LIBRARIES = liboctinterp.$(LIBEXT) liboctinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
277 else
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
278 LIBRARIES = liboctinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
279 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
280 else
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
281 ifeq ($(STATIC_LIBS), true)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
282 LIBRARIES = liboctinterp.$(LIBEXT)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
283 else
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
284 ## This is not going to work, but hey, you asked for it...
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
285 LIBRARIES =
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
286 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
287 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
288
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
289 libraries: $(LIBRARIES)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
290 .PHONY: libraries
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
291
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
292 liboctinterp.$(LIBEXT): $(OBJECTS) $(XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
293 rm -f $@
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3770
diff changeset
294 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
295 $(RANLIB) $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
296
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
297 liboctinterp.$(SHLEXT_VER): liboctinterp.$(SHLEXT)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
298 rm -f $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
299 $(LN_S) $< $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
300
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
301 liboctinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
302 rm -f $@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
303 $(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
304
5576
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents: 5539
diff changeset
305 stamp-prereq: defaults.h oct-conf.h oct-gperf.h parse.cc lex.cc __gnuplot_raw__.cc $(OPT_HANDLERS)
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
306 touch stamp-prereq
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
307
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
308 octave$(EXEEXT): stamp-prereq $(LIBRARIES) main.o $(DLD_STATIC_OBJ)
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3695
diff changeset
309 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
310 $(ALL_LDFLAGS) -o $@ \
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
311 main.o $(DLD_STATIC_OBJ) \
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
312 $(OCTAVE_LFLAGS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
313 $(OCTAVE_LIBS) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
314 $(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(COLAMD_LIBS) \
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5582
diff changeset
315 $(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
316 $(FFTW_LIBS) $(LIBS) $(FLIBS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
317
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
318 stmp-pic: pic
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
319 @if [ -f stmp-pic ]; then \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
320 true; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
321 else \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
322 echo "touch stmp-pic"; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
323 touch stmp-pic; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
324 fi
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
325
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
326 pic:
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
327 @if [ -d pic ]; then \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
328 true; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
329 else \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
330 echo "mkdir pic"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
331 mkdir pic; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
332 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
333
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
334 $(PICOBJ): stmp-pic
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
335
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
336 builtins.cc: $(DEF_FILES) mkbuiltins
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
337 @echo making $@
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
338 @echo DEF_FILES = $(DEF_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
339 @echo $(DEF_FILES) > def-files
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
340 @$(srcdir)/mkbuiltins def-files > $@-t
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
341 @$(top_srcdir)/move-if-change $@-t $@
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
342
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
343 PKG_ADD: $(DLD_DEF_FILES)
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
344 $(srcdir)/mk-pkg-add $(DLD_DEF_FILES) > $@-t
5539
b800ae36fc6a [project @ 2005-11-16 18:45:32 by jwe]
jwe
parents: 5538
diff changeset
345 mv $@-t $@
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
346
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
347 DOCSTRINGS: gendoc$(BUILD_EXEEXT)
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
348 ./gendoc > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
349 mv $@-t $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
350
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
351 doc-files: $(DOC_FILES)
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
352 @echo making $@
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
353 @echo DOC_FILES = $(DOC_FILES)
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
354 @echo $(DOC_FILES) > $@-t
4016
139f5273d0f8 [project @ 2002-08-02 22:55:51 by jwe]
jwe
parents: 4014
diff changeset
355 @mv $@-t $@
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
356
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
357 gendoc.cc: doc-files mkgendoc
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
358 @echo making $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
359 @$(srcdir)/mkgendoc doc-files > $@-t
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
360 @$(top_srcdir)/move-if-change $@-t $@
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
361
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
362 gendoc$(BUILD_EXEEXT): gendoc.cc
4299
02fcb550f20c [project @ 2003-01-16 20:15:14 by jwe]
jwe
parents: 4276
diff changeset
363 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS)
3363
9db3ff0b6913 [project @ 1999-11-19 21:57:35 by jwe]
jwe
parents: 3351
diff changeset
364
2944
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
365 ops.cc: $(OP_SRC) mkops
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
366 @echo making $@ from $(OP_SRC)
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
367 @$(srcdir)/mkops $(OP_SRC) > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
368 @$(top_srcdir)/move-if-change $@-t $@
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
369
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
370 stamp-liboctave-prereq:
4620
aff570d70c9b [project @ 2003-11-15 02:25:55 by jwe]
jwe
parents: 4619
diff changeset
371 $(MAKE) -C ../liboctave stamp-prereq
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
372 touch stamp-liboctave-prereq
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
373
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
374 $(DEF_FILES): stamp-liboctave-prereq mkdefs defun-int.h defun-dld.h defun.h defaults.h oct-conf.h
4619
1088ded853f2 [project @ 2003-11-15 02:21:39 by jwe]
jwe
parents: 4606
diff changeset
375
4622
ecaec3d39a8e [project @ 2003-11-15 02:41:34 by jwe]
jwe
parents: 4621
diff changeset
376 $(MAKEDEPS): stamp-liboctave-prereq defaults.h oct-gperf.h oct-conf.h
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
377
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
378 @bsd_gcc_kluge_targets_frag@
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
379
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
380 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
381 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
382
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
383 install: install-bin install-oct install-lib install-inc
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
384 .PHONY: install
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
385
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
386 install-strip:
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
387 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
388 .PHONY: install-strip
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
389
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
390 install-bin:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
391 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
392 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
393 $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
394 cd $(DESTDIR)$(bindir) ; $(LN_S) octave-$(version)$(EXEEXT) octave$(EXEEXT)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
395 .PHONY: install-bin
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
396
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
397 install-oct:
5244
a34c3c5c37cf [project @ 2005-03-25 03:29:52 by jwe]
jwe
parents: 5235
diff changeset
398 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octfiledir)
5739
d090d39bb82c [project @ 2006-04-05 06:56:24 by jwe]
jwe
parents: 5680
diff changeset
399 $(INSTALL_DATA) PKG_ADD $(DESTDIR)$(octfiledir)/PKG_ADD
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
400 if [ -n "$(OCT_FILES)" ]; then \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
401 xfiles="$(OCT_FILES)"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
402 for f in $$xfiles; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
403 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
404 done; \
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
405 fi
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
406 .PHONY: install-oct
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
407
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
408 install-lib:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
409 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
410 if $(STATIC_LIBS); then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
411 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
412 $(INSTALL_DATA) liboctinterp.$(LIBEXT) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
413 $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
414 $(RANLIB) $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
415 fi
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
416 if $(SHARED_LIBS); then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
417 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLEXT_VER); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
418 $(INSTALL) liboctinterp.$(SHLLIB) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
419 $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB_VER); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
420 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB); \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
421 (cd $(DESTDIR)$(octlibdir) ; $(LN_S) liboctinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB)); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
422 if test x$(SHLBIN) != x ; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
423 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
424 $(INSTALL_PROGRAM) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
425 liboctinterp.$(SHLBIN) $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
426 fi; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
427 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
428 .PHONY: install-lib
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
429
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
430 install-inc:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
431 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
432 for f in $(INCLUDES_FOR_INSTALL); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
433 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
434 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
435 done
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
436 for f in defaults.h oct-conf.h oct-gperf.h; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
437 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
438 if [ -f $$f ]; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
439 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
440 else \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
441 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
442 fi ; \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
443 done
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
444 .PHONY: install-inc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
445
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
446 uninstall:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
447 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
448 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
449 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
450 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB_VER)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
451 if test x$(SHLBIN) != x ; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
452 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
453 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN_VER); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
454 fi
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
455 for f in $(INCLUDES_FOR_INSTALL) defaults.h oct-conf.h; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
456 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
457 done
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
458 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
459
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
460 tags: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
461 ctags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
462
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
463 TAGS: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
464 etags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
465
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
466 clean:
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
467 rm -f liboctinterp.$(LIBEXT)
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
468 rm -f liboctinterp.$(SHLEXT_VER) liboctinterp.$(SHLEXT)
5866
f9ac7ebf0e19 [project @ 2006-06-28 16:05:22 by jwe]
jwe
parents: 5864
diff changeset
469 rm -f $(OBJECTS) $(DLD_OBJ) $(MAKEDEPS) $(DOC_FILES) $(OCT_FILES)
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
470 rm -f $(PICOBJ) $(DLD_PICOBJ) stmp-pic gendoc$(EXEEXT)
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5790
diff changeset
471 rm -f builtins.cc ops.cc defaults.h oct-conf.h def-files
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
472 rm -f PKG_ADD
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
473 -rmdir pic
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
474 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
475
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
476 mostlyclean: clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
477 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
478
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
479 distclean: clean
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
480 rm -f Makefile octave$(EXEEXT) .fname so_locations oct-errno.cc
5534
e107161b8ca3 [project @ 2005-11-11 17:44:05 by jwe]
jwe
parents: 5527
diff changeset
481 rm -f stamp-prereq stamp-liboctave-prereq
4710
48191fcee04d [project @ 2004-01-22 19:12:02 by jwe]
jwe
parents: 4669
diff changeset
482 rm -f doc-files gendoc.cc DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
483 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
484
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
485 maintainer-clean: distclean
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
486 rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c lex.cc parse.cc
5576
7e008607a86e [project @ 2005-12-13 19:05:54 by jwe]
jwe
parents: 5539
diff changeset
487 rm -f oct-gperf.h __gnuplot_raw__.cc $(OPT_HANDLERS)
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
488 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
489
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
490 dist: parse.cc lex.cc oct-gperf.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
491 ln $(DISTFILES) ../`cat ../.fname`/src
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
492 for f in DLD-FUNCTIONS OPERATORS TEMPLATE-INST; do \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
493 if [ -d ../`cat ../.fname`/src/$$f ]; then \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
494 true; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
495 else \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
496 mkdir ../`cat ../.fname`/src/$$f; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
497 fi; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
498 done
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
499 ln $(DLD_SRC) ../`cat ../.fname`/src/DLD-FUNCTIONS
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
500 ln $(OP_SRC) ../`cat ../.fname`/src/OPERATORS
4960
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
501 ln $(OP_INCLUDES) ../`cat ../.fname`/src/OPERATORS
3071
00ef82060ebc [project @ 1997-07-11 01:25:42 by jwe]
jwe
parents: 3067
diff changeset
502 ln $(TI_SRC) ../`cat ../.fname`/src/TEMPLATE-INST
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
503 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
504 rm -f oct-gperf.h defaults.h oct-conf.h *.d *.df builtins.cc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
505 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
506
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
507 conf-dist:
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
508 ln octave.cc Makefile.in ../`cat ../.fname`/src
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
509 .PHONY: conf-dist
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
510
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
511 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
512
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
513 $(OPT_HANDLERS) : %.cc : $(top_srcdir)/liboctave/%.in $(top_srcdir)/mk-opts.pl
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
514 @echo making $@ from $<
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
515 @$(PERL) $(top_srcdir)/mk-opts.pl --opt-handler-fcns $< > $@-t
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
516 @$(top_srcdir)/move-if-change $@-t $@
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
517
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
518 parse.cc : parse.y
5296
4e753a157ed2 [project @ 2005-04-21 17:52:41 by jwe]
jwe
parents: 5290
diff changeset
519 @echo "expect 14 shift/reduce conflicts"
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
520 $(YACC) $(YFLAGS) $<
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
521 @$(top_srcdir)/move-if-change y.tab.c $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
522
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
523 lex.cc : lex.l
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
524 $(LEX) $(LFLAGS) $< > $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
525
5790
60659f01c75b [project @ 2006-05-04 18:33:11 by jwe]
jwe
parents: 5761
diff changeset
526 __gnuplot_raw__.cc : DLD-FUNCTIONS/__gnuplot_raw__.l
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
527 $(LEX) $(LFLAGS) $< > $(@F)
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
528
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
529 ## We want to force an update of defaults.h and oct-conf.h every
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
530 ## time make is run because some values may come from the command
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
531 ## line or the environment. The substitution rules use move-if-change,
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
532 ## so this should not cause trouble if the file already exists and the
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
533 ## newly generated file is not different.
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
534
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
535 defaults.h: defaults.h.in ../Makeconf Makefile FORCE
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
536 @$(do-subst-default-vals)
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
537
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
538 oct-conf.h: oct-conf.h.in ../Makeconf Makefile FORCE
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
539 @$(do-subst-config-vals)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
540
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
541 FORCE:
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
542 .PHONY: FORCE
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5654
diff changeset
543
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
544 oct-errno.cc: oct-errno.cc.in ../Makeconf Makefile
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
545 @echo "making $@ from $<"
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
546 @if test -n "$(PERL)"; then \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
547 $(srcdir)/mk-errno-list --perl "$(PERL)" < $< > $@-t; \
5494
73a87a677257 [project @ 2005-10-14 07:29:20 by jwe]
jwe
parents: 5468
diff changeset
548 elif test -n "$(PYTHON)"; then \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
549 $(srcdir)/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
550 else \
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
551 $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
552 fi
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
553 @if [ -s $@-t ]; then \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
554 $(top_srcdir)/move-if-change $@-t $@; \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
555 else \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
556 exit 1; \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
557 fi
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
558
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
559 oct-gperf.h: octave.gperf
1903
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
560 @echo "making $@ from $<"
5527
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
561 @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< | \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
562 $(SED) 's,lookup\[,gperf_lookup[,' > $@-t \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
563 || (rm -f $@-t; exit 1)
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
564 @if [ -s $@-t ]; then \
ce71ed4c6da6 [project @ 2005-11-01 22:15:49 by jwe]
jwe
parents: 5506
diff changeset
565 $(top_srcdir)/move-if-change $@-t $@; \
5350
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
566 else \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
567 exit 1; \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
568 fi
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
569
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
570 # How to make a .oct file from a .o file:
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
571
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
572 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
573 ifdef CXXPICFLAG
5582
6bf56668b01a [project @ 2005-12-15 01:08:20 by jwe]
jwe
parents: 5576
diff changeset
574 regexp.oct : pic/regexp.o octave$(EXEEXT)
6bf56668b01a [project @ 2005-12-15 01:08:20 by jwe]
jwe
parents: 5576
diff changeset
575 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(REGEX_LIBS)
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
576 __glpk__.oct : pic/__glpk__.o octave$(EXEEXT)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
577 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(GLPK_LIBS)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
578 else
5582
6bf56668b01a [project @ 2005-12-15 01:08:20 by jwe]
jwe
parents: 5576
diff changeset
579 regexp.oct : regexp.o octave$(EXEEXT)
6bf56668b01a [project @ 2005-12-15 01:08:20 by jwe]
jwe
parents: 5576
diff changeset
580 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(REGEX_LIBS)
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
581 __glpk__.oct : __glpk__.o octave$(EXEEXT)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
582 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS) $(GLPK_LIBS)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
583 endif
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
584 endif
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
585
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
586 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
587 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
588
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
589 # If missing, GNU make attempts to create them in the reverse of the
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
590 # order in which they are listed here. We rely on that fact to ensure
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
591 # that defaults.h is created before trying to create the .d files.
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
592 # Hmm. I wonder if we can count on that...
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
593
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
594 ifndef omit_deps
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
595 -include $(MAKEDEPS) stamp-prereq
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1302
diff changeset
596 endif