annotate src/Makefile.in @ 5468:41943dd8d7d8

[project @ 2005-09-23 18:34:46 by jwe]
author jwe
date Fri, 23 Sep 2005 18:34:47 +0000
parents d6163c0effd5
children 73a87a677257
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 $<
3574
787bb9d8f60e [project @ 2000-02-04 10:13:23 by jwe]
jwe
parents: 3546
diff changeset
26 @$(CXXCPP) $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) -DMAKE_BUILTINS $< \
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
27 | $(srcdir)/mkdefs > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
28 @mv $@-t $@
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
29
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
30 # 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
31
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
32 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
33 ifdef CXXPICFLAG
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
34 %.oct : pic/%.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
35 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
36 else
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
37 %.oct : %.o octave$(EXEEXT)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4710
diff changeset
38 $(DL_LD) $(DL_LDFLAGS) -o $@ $< $(OCT_LINK_DEPS)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
39 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
40 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
41
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
42 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
43 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
44
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
45 DLD_XSRC := balance.cc besselj.cc betainc.cc cellfun.cc chol.cc ccolamd.cc \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
46 colamd.cc colloc.cc daspk.cc dasrt.cc dassl.cc det.cc dispatch.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
47 eig.cc expm.cc fft.cc fft2.cc fftn.cc fftw_wisdom.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
48 filter.cc find.cc fsolve.cc gammainc.cc gcd.cc getgrent.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
49 getpwent.cc getrusage.cc givens.cc hess.cc inv.cc kron.cc \
5322
22994a5730f9 [project @ 2005-04-29 13:04:24 by dbateman]
dbateman
parents: 5307
diff changeset
50 lpsolve.cc lsode.cc lu.cc luinc.cc matrix_type.cc minmax.cc \
22994a5730f9 [project @ 2005-04-29 13:04:24 by dbateman]
dbateman
parents: 5307
diff changeset
51 pinv.cc qr.cc quad.cc qz.cc rand.cc schur.cc sort.cc sparse.cc \
22994a5730f9 [project @ 2005-04-29 13:04:24 by dbateman]
dbateman
parents: 5307
diff changeset
52 spdet.cc spkron.cc splu.cc spparms.cc sqrtm.cc svd.cc syl.cc \
22994a5730f9 [project @ 2005-04-29 13:04:24 by dbateman]
dbateman
parents: 5307
diff changeset
53 time.cc gplot.l __glpk__.cc __qp__.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
54
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
55 DLD_SRC := $(addprefix DLD-FUNCTIONS/, $(DLD_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
56
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
57 DLD_OBJ_1 := $(patsubst %.l, %.o, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
58 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_OBJ_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
59
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4123
diff changeset
60 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
61 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
62 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
63 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
64 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
65 DLD_PICOBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
66 endif
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_STATIC_OBJ := $(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
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
71 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
72 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
73 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
74
3977
95663a3a2682 [project @ 2002-07-05 17:43:37 by jwe]
jwe
parents: 3931
diff changeset
75 OV_INCLUDES := ov-re-mat.h ov-cx-mat.h ov-ch-mat.h ov-cs-list.h ov-list.h \
3223
3ee04ff37b3e [project @ 1998-11-20 19:34:15 by jwe]
jwe
parents: 3221
diff changeset
76 ov-struct.h ov-scalar.h ov-range.h ov-complex.h ov-va-args.h \
3ee04ff37b3e [project @ 1998-11-20 19:34:15 by jwe]
jwe
parents: 3221
diff changeset
77 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
78 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
79 ov-cell.h ov.h ov-fcn.h ov-builtin.h ov-dld-fcn.h \
4933
cd58733c326b [project @ 2004-08-05 16:08:28 by jwe]
jwe
parents: 4931
diff changeset
80 ov-mapper.h ov-usr-fcn.h ov-fcn-handle.h ov-fcn-inline.h \
cd58733c326b [project @ 2004-08-05 16:08:28 by jwe]
jwe
parents: 4931
diff changeset
81 ov-typeinfo.h ov-type-conv.h \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
82 $(OV_INTTYPE_INC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
83
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
84 OV_SPARSE_INCLUDES := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
85 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
86
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2991
diff changeset
87 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
88 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
89 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
90 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
91 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
92
4262
1264aac9e73a [project @ 2003-01-02 23:50:22 by jwe]
jwe
parents: 4234
diff changeset
93 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
94 defun-dld.h defun-int.h defun.h dirfns.h dynamic-ld.h \
1264aac9e73a [project @ 2003-01-02 23:50:22 by jwe]
jwe
parents: 4234
diff changeset
95 error.h file-io.h fn-cache.h gripes.h help.h input.h \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
96 lex.h load-save.h ls-hdf5.h ls-mat-ascii.h ls-mat4.h \
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
97 ls-mat5.h ls-oct-ascii.h ls-oct-binary.h ls-utils.h \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
98 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
99 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
100 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
101 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
102 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
103 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
104 xdiv.h xpow.h \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
105 $(OV_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
106 $(PT_INCLUDES) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
107 $(OV_SPARSE_INCLUDES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
108
5142
0f9108f298ab [project @ 2005-02-12 02:29:34 by jwe]
jwe
parents: 5127
diff changeset
109 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
110
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
111 TI_SRC := $(addprefix TEMPLATE-INST/, $(TI_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
112
5075
b6a9f78f60e9 [project @ 2004-11-10 03:13:26 by jwe]
jwe
parents: 4960
diff changeset
113 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
114 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
115 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
116
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
117 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
118 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
119 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
120 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
121 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
122 op-s-scm.cc op-s-sm.cc
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
123
4669
334a27c8f453 [project @ 2003-11-26 07:02:42 by jwe]
jwe
parents: 4654
diff changeset
124 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
125 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
126 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
127 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
128 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
129 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
130 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
131 $(INTTYPE_OP_XSRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
132 $(SPARSE_OP_XSRC)
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
133
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
134 OP_SRC := $(addprefix OPERATORS/, $(OP_XSRC))
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
135
4960
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
136 OP_INCLUDES := OPERATORS/op-int.h
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
137
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
138 OV_INTTYPE_SRC := \
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4863
diff changeset
139 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
140 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
141
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
142 OV_SPARSE_SRC := \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
143 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
144
5113
cd9a8ae4e6d4 [project @ 2005-01-21 03:32:09 by jwe]
jwe
parents: 5103
diff changeset
145 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
146 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
147 ov-range.cc ov-scalar.cc ov-complex.cc ov-str-mat.cc \
ef3a14fb6847 [project @ 2003-11-22 12:25:44 by jwe]
jwe
parents: 4633
diff changeset
148 ov-streamoff.cc ov-struct.cc ov-va-args.cc \
5353
df230b7df93c [project @ 2005-05-18 02:18:24 by jwe]
jwe
parents: 5350
diff changeset
149 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
150 ov.cc ov-fcn.cc ov-builtin.cc ov-dld-fcn.cc ov-mapper.cc \
4934
ca6c86504105 [project @ 2004-08-05 16:38:36 by jwe]
jwe
parents: 4933
diff changeset
151 ov-usr-fcn.cc ov-fcn-handle.cc ov-fcn-inline.cc ov-typeinfo.cc \
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
152 $(OV_INTTYPE_SRC) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
153 $(OV_SPARSE_SRC)
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
154
4342
813effe14ee1 [project @ 2003-02-20 08:35:55 by jwe]
jwe
parents: 4331
diff changeset
155 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
156 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
157 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
158 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
159 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
160
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4901
diff changeset
161 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
162 cutils.c data.cc debug.cc defaults.cc defun.cc dirfns.cc \
29f648e1cd46 [project @ 2002-10-23 02:12:50 by jwe]
jwe
parents: 4119
diff changeset
163 dynamic-ld.cc error.cc file-io.cc fn-cache.cc gripes.cc \
4633
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
164 help.cc input.cc lex.l load-save.cc ls-hdf5.cc \
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
165 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
166 ls-oct-binary.cc ls-utils.cc main.c mappers.cc matherr.c \
d95dd6ae89fd [project @ 2003-11-19 18:32:50 by jwe]
jwe
parents: 4622
diff changeset
167 oct-fstrm.cc oct-hist.cc oct-iostrm.cc oct-map.cc \
5325
ecbe4aa87e51 [project @ 2005-04-29 20:48:35 by jwe]
jwe
parents: 5322
diff changeset
168 oct-obj.cc oct-prcstrm.cc oct-procbuf.cc \
5269
a90ce2dc8b1e [project @ 2005-04-06 19:20:09 by dbateman]
dbateman
parents: 5244
diff changeset
169 oct-stream.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
170 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
171 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
172 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
173 token.cc toplev.cc unwind-prot.cc utils.cc variables.cc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5150
diff changeset
174 xdiv.cc xpow.cc \
3546
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
175 $(OV_SRC) \
6dfdded73a7e [project @ 2000-02-02 22:45:39 by jwe]
jwe
parents: 3485
diff changeset
176 $(PT_SRC)
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
177
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
178 SOURCES := $(DIST_SRC) $(OP_SRC) $(TI_SRC)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
179
5113
cd9a8ae4e6d4 [project @ 2005-01-21 03:32:09 by jwe]
jwe
parents: 5103
diff changeset
180 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
181
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
182 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
183
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
184 INCLUDES_FOR_INSTALL := $(INCLUDES) $(EXTRAS)
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
185
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
186 OBJECTS_4 := $(notdir $(SOURCES))
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
187 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
188 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
189 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
190 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1)) $(EXTRA_OBJECTS)
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
191
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
192 ifeq ($(SHARED_LIBS), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
193 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
194 PICOBJ := $(addprefix pic/, $(OBJECTS))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
195 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
196 PICOBJ := $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
197 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
198 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
199
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
200 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
201
4113
f4bf4833e6c7 [project @ 2002-10-17 19:58:42 by jwe]
jwe
parents: 4110
diff changeset
202 DEP_5 := $(SOURCES) $(DLD_SRC) builtins.cc ops.cc octave.cc main.c
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
203 DEP_4 := $(notdir $(DEP_5))
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
204 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
205 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
206 DEP_1 := $(patsubst %.c, %.d, $(DEP_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
207 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
208
3233
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
209 # 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
210 # 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
211 # empty elements in alternation patterns.
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3223
diff changeset
212
4234
90e44267e8cf [project @ 2002-12-21 17:15:25 by jwe]
jwe
parents: 4229
diff changeset
213 DEFUN_PATTERN = "^[ \t]*DEF(CONSTFUN|CMD|UN|UN_DLD|UN_TEXT|UN_MAPPER)[ \t]*\\("
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
214
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
215 DLD_DEF_FILES_1 := $(patsubst %.l, %.df, $(DLD_XSRC))
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
216 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
217
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
218 DEF_4 := $(addprefix $(srcdir)/, $(SOURCES))
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
219 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
220 DEF_2 := $(patsubst %.y, %.df, $(DEF_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
221 DEF_1 := $(patsubst %.l, %.df, $(DEF_2))
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
222 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
223
3325
2efa28a91e7a [project @ 1999-10-29 21:39:20 by jwe]
jwe
parents: 3321
diff changeset
224 DEFVAR_PATTERN = "^[ \t]*DEF(VAR|CONS(T|TX))[ \t]*\\("
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
225
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
226 VAR_4 := $(addprefix $(srcdir)/, $(SOURCES))
3221
eba59b8c64dc [project @ 1998-11-19 20:31:46 by jwe]
jwe
parents: 3219
diff changeset
227 VAR_3 := $(notdir $(shell egrep -l $(DEFVAR_PATTERN) $(VAR_4)))
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
228 VAR_2 := $(patsubst %.y, %.df, $(VAR_3))
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
229 VAR_1 := $(patsubst %.l, %.df, $(VAR_2))
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
230 VAR_FILES := $(patsubst %.cc, %.df, $(VAR_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
231
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
232 DOC_FILES := $(sort $(DEF_FILES) $(VAR_FILES))
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
233
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
234 OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3153
diff changeset
235 -L$(TOPDIR)/src $(RLD_FLAG)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
236
5333
ac8d64b9e76a [project @ 2005-05-02 18:15:20 by jwe]
jwe
parents: 5330
diff changeset
237 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
238 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
239 $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
240 $(LIBPLPLOT) $(LIBGLOB) $(LIBDLFCN)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
241 else
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
242 OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) \
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
243 $(GLPK_LIBS) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
244 $(LIBPLPLOT) $(LIBGLOB) $(LIBDLFCN)
5330
f88f21827fe5 [project @ 2005-05-02 17:41:00 by jwe]
jwe
parents: 5325
diff changeset
245 endif
4038
243f50d6f3d5 [project @ 2002-08-14 19:31:19 by jwe]
jwe
parents: 4016
diff changeset
246
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
247 OCTINTERP_LINK_DEPS = \
4793
a62215ab8a03 [project @ 2004-02-20 20:59:34 by jwe]
jwe
parents: 4776
diff changeset
248 -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $(FLIBS)
4760
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
249
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
250 OCT_LINK_DEPS = \
8ece12f60ba2 [project @ 2004-02-15 00:32:30 by jwe]
jwe
parents: 4759
diff changeset
251 -L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \
5455
ec44bd0917fe [project @ 2005-09-19 16:07:56 by jwe]
jwe
parents: 5451
diff changeset
252 -L. $(LIBOCTINTERP) $(CHOLMOD_LIBS) $(UMFPACK_LIBS) $(AMD_LIBS) \
ec44bd0917fe [project @ 2005-09-19 16:07:56 by jwe]
jwe
parents: 5451
diff changeset
253 $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(BLAS_LIBS) $(FFTW_LIBS) $(LIBS) $(FLIBS)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
254
3305
f1c5658772cf [project @ 1999-10-20 19:40:10 by jwe]
jwe
parents: 3301
diff changeset
255 DISTFILES = Makefile.in ChangeLog mkdefs mkops mkgendoc \
3347
3cfec93fd0ef [project @ 1999-11-10 23:09:10 by jwe]
jwe
parents: 3325
diff changeset
256 DOCSTRINGS mkbuiltins mk-oct-links \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
257 defaults.h.in oct-conf.h.in oct-errno.cc.in octave.gperf oct-gperf.h \
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
258 octave.cc parse.cc lex.cc y.tab.h gplot.cc \
4957
2da9205571f2 [project @ 2004-09-02 03:12:55 by jwe]
jwe
parents: 4936
diff changeset
259 $(INCLUDES) $(DIST_SRC) $(OPT_HANDLERS) $(EXTRAS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
260
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
261 all: octave$(EXEEXT) stamp-oct-links PKG_ADD DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
262 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
263
3613
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
264 objects: $(OBJECTS)
0a93682f89c8 [project @ 2000-03-17 10:58:25 by jwe]
jwe
parents: 3611
diff changeset
265
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
266 XERBLA = ../libcruft/blas-xtra/xerbla.o
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
267 ifdef FPICFLAG
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
268 PIC_XERBLA = ../libcruft/blas-xtra/pic/xerbla.o
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
269 else
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
270 PIC_XERBLA = $(XERBLA)
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
271 endif
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
272
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
273 ifeq ($(SHARED_LIBS), true)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
274 ifeq ($(STATIC_LIBS), true)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
275 LIBRARIES = liboctinterp.$(LIBEXT) liboctinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
276 else
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
277 LIBRARIES = liboctinterp.$(SHLEXT_VER)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
278 endif
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
279 else
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
280 ifeq ($(STATIC_LIBS), true)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
281 LIBRARIES = liboctinterp.$(LIBEXT)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
282 else
3695
64ca92e02a7e [project @ 2000-07-14 18:49:06 by jwe]
jwe
parents: 3692
diff changeset
283 ## 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
284 LIBRARIES =
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
285 endif
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
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
288 libraries: $(LIBRARIES)
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
289 .PHONY: libraries
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
290
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
291 liboctinterp.$(LIBEXT): $(OBJECTS) $(XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
292 rm -f $@
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3770
diff changeset
293 $(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
294 $(RANLIB) $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
295
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
296 liboctinterp.$(SHLEXT_VER): liboctinterp.$(SHLEXT)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
297 rm -f $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
298 $(LN_S) $< $@
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
299
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
300 liboctinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA)
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3613
diff changeset
301 rm -f $@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
302 $(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
303
2779
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
304 stamp-oct-links: $(OCT_FILES)
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
305 if [ -n "$(OCT_FILES)" ]; then \
4045
b908aaa4080a [project @ 2002-08-15 17:38:54 by jwe]
jwe
parents: 4038
diff changeset
306 $(srcdir)/mk-oct-links . $(DLD_DEF_FILES); \
2779
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
307 fi
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
308 touch stamp-oct-links
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
309
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
310 stamp-prereq: defaults.h oct-conf.h oct-gperf.h parse.cc lex.cc gplot.cc $(OPT_HANDLERS)
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
311 touch stamp-prereq
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
312
4139
02ca908056e9 [project @ 2002-11-01 00:49:13 by jwe]
jwe
parents: 4136
diff changeset
313 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
314 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
315 $(ALL_LDFLAGS) -o $@ \
4159
e9e2055ad0af [project @ 2002-11-08 03:27:35 by jwe]
jwe
parents: 4155
diff changeset
316 main.o $(DLD_STATIC_OBJ) \
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
317 $(OCTAVE_LFLAGS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
318 $(OCTAVE_LIBS) \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
319 $(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(COLAMD_LIBS) \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
320 $(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(BLAS_LIBS) \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
321 $(FFTW_LIBS) $(LIBS) $(FLIBS)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
322
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
323 stmp-pic: pic
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
324 @if [ -f stmp-pic ]; then \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
325 true; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
326 else \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
327 echo "touch stmp-pic"; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
328 touch stmp-pic; \
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
329 fi
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
330
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
331 pic:
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
332 @if [ -d pic ]; then \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
333 true; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
334 else \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
335 echo "mkdir pic"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
336 mkdir pic; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
337 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
338
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
339 $(PICOBJ): stmp-pic
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
340
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
341 builtins.cc: $(DEF_FILES) mkbuiltins
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
342 @echo making $@
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
343 @echo DEF_FILES = $(DEF_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
344 @echo VAR_FILES = $(VAR_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
345 @echo $(DEF_FILES) > def-files
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
346 @echo $(VAR_FILES) > var-files
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
347 @$(srcdir)/mkbuiltins def-files var-files > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
348 @$(top_srcdir)/move-if-change $@-t $@
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
349
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
350 PKG_ADD: $(DLD_SRC)
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
351 $(SED) -n -e 's,^//* *PKG_ADD: *,,p' \
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
352 -e 's,^/\* *PKG_ADD: *\(.*\) \*/$$,\1,p' \
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
353 $(addprefix $(srcdir)/, $(DLD_SRC)) > PKG_ADD.t
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
354 mv PKG_ADD.t PKG_ADD
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
355
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
356 DOCSTRINGS: gendoc$(BUILD_EXEEXT)
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
357 ./gendoc > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
358 mv $@-t $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
359
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
360 doc-files: $(DOC_FILES)
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
361 @echo making $@
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
362 @echo DOC_FILES = $(DOC_FILES)
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
363 @echo $(DOC_FILES) > $@-t
4016
139f5273d0f8 [project @ 2002-08-02 22:55:51 by jwe]
jwe
parents: 4014
diff changeset
364 @mv $@-t $@
4002
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
365
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
366 gendoc.cc: doc-files mkgendoc
d7f721e5f5af [project @ 2002-07-24 19:01:29 by jwe]
jwe
parents: 4001
diff changeset
367 @echo making $@
3295
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
368 @$(srcdir)/mkgendoc doc-files > $@-t
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
369 @$(top_srcdir)/move-if-change $@-t $@
35a6d027772c [project @ 1999-10-19 10:13:02 by jwe]
jwe
parents: 3288
diff changeset
370
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
371 gendoc$(BUILD_EXEEXT): gendoc.cc
4299
02fcb550f20c [project @ 2003-01-16 20:15:14 by jwe]
jwe
parents: 4276
diff changeset
372 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS)
3363
9db3ff0b6913 [project @ 1999-11-19 21:57:35 by jwe]
jwe
parents: 3351
diff changeset
373
2944
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
374 ops.cc: $(OP_SRC) mkops
e9c24f32f175 [project @ 1997-05-08 02:42:22 by jwe]
jwe
parents: 2930
diff changeset
375 @echo making $@ from $(OP_SRC)
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
376 @$(srcdir)/mkops $(OP_SRC) > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 4002
diff changeset
377 @$(top_srcdir)/move-if-change $@-t $@
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
378
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
379 stamp-liboctave-prereq:
4620
aff570d70c9b [project @ 2003-11-15 02:25:55 by jwe]
jwe
parents: 4619
diff changeset
380 $(MAKE) -C ../liboctave stamp-prereq
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
381 touch stamp-liboctave-prereq
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
382
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
383 $(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
384
4622
ecaec3d39a8e [project @ 2003-11-15 02:41:34 by jwe]
jwe
parents: 4621
diff changeset
385 $(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
386
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
387 @bsd_gcc_kluge_targets_frag@
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
388
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
389 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
390 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
391
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
392 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
393 .PHONY: install
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
394
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
395 install-strip:
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
396 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
397 .PHONY: install-strip
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
398
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
399 install-bin:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
400 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
401 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
402 $(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
403 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
404 .PHONY: install-bin
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
405
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
406 install-oct: PKG_ADD
5244
a34c3c5c37cf [project @ 2005-03-25 03:29:52 by jwe]
jwe
parents: 5235
diff changeset
407 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octfiledir)
a34c3c5c37cf [project @ 2005-03-25 03:29:52 by jwe]
jwe
parents: 5235
diff changeset
408 $(INSTALL_DATA) PKG_ADD $(DESTDIR)$(octfiledir)/PKG_ADD
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
409 if [ -n "$(OCT_FILES)" ]; then \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
410 xfiles="$(OCT_FILES)"; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
411 for f in $$xfiles; do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
412 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(octfiledir)/$$f; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
413 done; \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
414 $(srcdir)/mk-oct-links $(DESTDIR)$(octfiledir) $(DLD_DEF_FILES); \
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
415 fi
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
416 .PHONY: install-oct
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
417
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
418 install-lib:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
419 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
420 if $(STATIC_LIBS); then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
421 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
422 $(INSTALL_DATA) liboctinterp.$(LIBEXT) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
423 $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
424 $(RANLIB) $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT); \
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
425 fi
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
426 if $(SHARED_LIBS); then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
427 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLEXT_VER); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
428 $(INSTALL) liboctinterp.$(SHLLIB) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
429 $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB_VER); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
430 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB); \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5353
diff changeset
431 (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
432 if test x$(SHLBIN) != x ; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
433 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
4473
32ac2bea0185 [project @ 2003-07-29 23:05:32 by jwe]
jwe
parents: 4472
diff changeset
434 $(INSTALL_PROGRAM) \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
435 liboctinterp.$(SHLBIN) $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
436 fi; \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
437 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
438 .PHONY: install-lib
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
439
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
440 install-inc:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
441 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(octincludedir)/octave
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
442 for f in $(INCLUDES_FOR_INSTALL); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
443 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
444 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
445 done
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3013
diff changeset
446 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
447 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
448 if [ -f $$f ]; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
449 $(INSTALL_DATA) $$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
450 else \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
451 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(octincludedir)/octave/$$f ; \
3072
ca9677cdb62e [project @ 1997-07-15 02:45:42 by jwe]
jwe
parents: 3071
diff changeset
452 fi ; \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
453 done
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
454 .PHONY: install-inc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
455
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
456 uninstall:
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
457 rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
458 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(LIBEXT)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
459 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB)
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
460 rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB_VER)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
461 if test x$(SHLBIN) != x ; then \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
462 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4342
diff changeset
463 rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN_VER); \
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
464 fi
4931
1ed883f251e8 [project @ 2004-08-05 13:05:31 by jwe]
jwe
parents: 4925
diff changeset
465 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
466 rm -f $(DESTDIR)$(octincludedir)/octave/$$f; \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
467 done
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
468 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
469
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
470 tags: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
471 ctags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
472
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
473 TAGS: $(SOURCES) $(DLD_SRC)
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2926
diff changeset
474 etags $(SOURCES) $(DLD_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
475
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
476 clean:
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
477 if [ -n "$(OCT_FILES)" ]; then \
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
478 $(srcdir)/mk-oct-links --delete . $(DLD_DEF_FILES); \
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
479 fi
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
480 rm -f liboctinterp.$(LIBEXT)
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
481 rm -f liboctinterp.$(SHLEXT_VER) liboctinterp.$(SHLEXT)
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
482 rm -f $(OBJECTS) $(MAKEDEPS) $(DOC_FILES) $(OCT_FILES)
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5296
diff changeset
483 rm -f $(PICOBJ) $(DLD_PICOBJ) stmp-pic gendoc$(EXEEXT)
2926
66ef74ee5d9f [project @ 1997-05-05 03:20:52 by jwe]
jwe
parents: 2916
diff changeset
484 rm -f builtins.cc ops.cc defaults.h oct-conf.h def-files var-files
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
485 rm -f PKG_ADD
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
486 -rmdir pic
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
487 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
488
3301
02866242d3ae [project @ 1999-10-20 04:10:46 by jwe]
jwe
parents: 3295
diff changeset
489 mostlyclean: clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
490 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
491
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
492 distclean: clean
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4093
diff changeset
493 rm -f Makefile octave$(EXEEXT) .fname so_locations
4621
26fa69badde9 [project @ 2003-11-15 02:32:25 by jwe]
jwe
parents: 4620
diff changeset
494 rm -f stamp-prereq stamp-liboctave-prereq stamp-oct-links
4710
48191fcee04d [project @ 2004-01-22 19:12:02 by jwe]
jwe
parents: 4669
diff changeset
495 rm -f doc-files gendoc.cc DOCSTRINGS
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
496 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
497
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
498 maintainer-clean: distclean
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
499 rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c lex.cc parse.cc
5276
233140bc8068 [project @ 2005-04-08 16:58:34 by jwe]
jwe
parents: 5269
diff changeset
500 rm -f oct-gperf.h gplot.cc $(OPT_HANDLERS)
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
501 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
502
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
503 dist: parse.cc lex.cc oct-gperf.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
504 ln $(DISTFILES) ../`cat ../.fname`/src
3053
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
505 for f in DLD-FUNCTIONS OPERATORS TEMPLATE-INST; do \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
506 if [ -d ../`cat ../.fname`/src/$$f ]; then \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
507 true; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
508 else \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
509 mkdir ../`cat ../.fname`/src/$$f; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
510 fi; \
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
511 done
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
512 ln $(DLD_SRC) ../`cat ../.fname`/src/DLD-FUNCTIONS
f05a02fbe3c9 [project @ 1997-06-15 21:25:33 by jwe]
jwe
parents: 3042
diff changeset
513 ln $(OP_SRC) ../`cat ../.fname`/src/OPERATORS
4960
ce01dbd7e026 [project @ 2004-09-02 03:47:49 by jwe]
jwe
parents: 4959
diff changeset
514 ln $(OP_INCLUDES) ../`cat ../.fname`/src/OPERATORS
3071
00ef82060ebc [project @ 1997-07-11 01:25:42 by jwe]
jwe
parents: 3067
diff changeset
515 ln $(TI_SRC) ../`cat ../.fname`/src/TEMPLATE-INST
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
516 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
517 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
518 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
519
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
520 conf-dist:
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
521 ln octave.cc Makefile.in ../`cat ../.fname`/src
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
522 .PHONY: conf-dist
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
523
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
524 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
525
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
526 $(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
527 @echo making $@ from $<
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
528 @$(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
529 @$(top_srcdir)/move-if-change $@-t $@
3998
f6df65db67f9 [project @ 2002-07-24 18:10:39 by jwe]
jwe
parents: 3990
diff changeset
530
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
531 parse.cc : parse.y
5296
4e753a157ed2 [project @ 2005-04-21 17:52:41 by jwe]
jwe
parents: 5290
diff changeset
532 @echo "expect 14 shift/reduce conflicts"
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
533 $(YACC) $(YFLAGS) $<
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
534 @$(top_srcdir)/move-if-change y.tab.c $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
535
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
536 lex.cc : lex.l
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
537 $(LEX) $(LFLAGS) $< > $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
538
5102
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
539 gplot.cc : DLD-FUNCTIONS/gplot.l
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
540 $(LEX) $(LFLAGS) $< > $(@F)
b04b30d30c66 [project @ 2004-12-28 01:59:05 by jwe]
jwe
parents: 5088
diff changeset
541
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
542 defaults.h: defaults.h.in ../Makeconf Makefile
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
543 @$(do-subst-default-vals)
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
544
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
545 oct-conf.h: oct-conf.h.in ../Makeconf Makefile
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
546 @$(do-subst-config-vals)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
547
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
548 oct-errno.cc: oct-errno.cc.in ../Makeconf Makefile
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
549 @echo "making $@ from $<"
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
550 @if test -n "$(PERL)"; then \
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
551 $(PERL) -e 'foreach $$key (keys(%!)) { $$x .= "#if defined ($$key)\n { \"$$key\", $$key, },\n#endif\n"; }; while (<>) { s/^ *\@SYSDEP_ERRNO_LIST\@/$$x/; print; }' $< > $@.t; \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
552 else \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
553 $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@.t; \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
554 fi
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
555 @if [ -s $@.t ]; then \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
556 $(top_srcdir)/move-if-change $@.t $@; \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
557 else \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
558 exit 1; \
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
559 fi
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5455
diff changeset
560
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
561 oct-gperf.h: octave.gperf
1903
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
562 @echo "making $@ from $<"
5350
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
563 @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< > $@-t1 \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
564 || (rm -f $@-t1; exit 1)
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
565 @$(SED) 's,lookup\[,gperf_lookup[,' $@-t1 > $@-t2 || rm -f $@-t2
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
566 @if [ -s $@-t2 ]; then \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
567 $(top_srcdir)/move-if-change $@-t2 $@; \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
568 else \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
569 exit 1; \
ad44a165950d [project @ 2005-05-12 18:13:34 by jwe]
jwe
parents: 5333
diff changeset
570 fi
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
571
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
572 # 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
573
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
574 ifeq ($(ENABLE_DYNAMIC_LINKING), true)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
575 ifdef CXXPICFLAG
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
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
579 __glpk__.oct : __glpk__.o octave$(EXEEXT)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
580 $(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
581 endif
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
582 endif
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5232
diff changeset
583
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
584 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
585 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
586
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
587 # 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
588 # 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
589 # 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
590 # Hmm. I wonder if we can count on that...
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
591
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
592 ifndef omit_deps
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
593 -include $(MAKEDEPS) stamp-prereq
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1302
diff changeset
594 endif