annotate src/Makefile.in @ 2390:c2c1482c34c8

[project @ 1996-10-12 19:13:23 by jwe]
author jwe
date Sat, 12 Oct 1996 19:23:38 +0000
parents b3d7a8e3bcc7
children 96abb5c4568d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
1 #
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@
1078
cbf3eed39e3f [project @ 1995-01-27 14:48:43 by jwe]
jwe
parents: 1046
diff changeset
13 VPATH = @srcdir@
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
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
21 # Cancel default rule for .c from .y and make .cc from .y instead.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
22
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
23 %.c : %.y
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
24
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
25 %.cc : %.y
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
26 $(YACC) $(YFLAGS) $<
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
27 @$(top_srcdir)/move-if-change y.tab.c $(@F)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
28
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
29 # Likewise for .c from .l.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
30
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
31 %.c : %.l
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
32
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
33 %.cc : %.l
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
34 $(LEX) $(LFLAGS) $< > $(@F)
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
35
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
36 XALL_CXXFLAGS_1 = $(subst -fexternal-templates, , $(ALL_CXXFLAGS))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
37 XALL_CXXFLAGS = $(subst -fno-implicit-templates, , $(XALL_CXXFLAGS_1))
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
38
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
39 %.df : %.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
40 @echo making $@ from $<
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
41 @$(CXXCPP) -c $(CPPFLAGS) $(XALL_CXXFLAGS) -DMAKE_BUILTINS $< \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
42 | $(srcdir)/mkdefs > $@.t
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
43 @mv $@.t $@
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
44
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
45 # 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
46
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
47 ifeq ($(OCTAVE_LITE), true)
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
48 ifdef CXXPICFLAG
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
49 %.oct : pic/%.o
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
50 $(CXX) -shared -o $@ $< \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
51 $(OCTAVE_LFLAGS) \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
52 $(OCTAVE_LIBS) \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
53 $(FLIBS) $(LEXLIB) $(TERMLIBS) $(LIBS) -lg++
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
54 else
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
55 %.oct : %.o
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
56 $(CXX) -shared -o $@ $< \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
57 $(OCTAVE_LFLAGS) \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
58 $(OCTAVE_LIBS) \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
59 $(FLIBS) $(LEXLIB) $(TERMLIBS) $(LIBS) -lg++
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
60 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
61 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
62
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
63 DLD_SRC := balance.cc chol.cc colloc.cc dassl.cc det.cc eig.cc \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
64 expm.cc fft.cc fft2.cc filter.cc find.cc fsolve.cc \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
65 fsqp.cc givens.cc hess.cc ifft.cc ifft2.cc inv.cc log.cc \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
66 lpsolve.cc lsode.cc lu.cc minmax.cc npsol.cc pinv.cc \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
67 qpsol.cc qr.cc quad.cc qzval.cc rand.cc schur.cc sort.cc \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
68 svd.cc syl.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
69
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
70 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_SRC))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
71
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
72 ifeq ($(OCTAVE_LITE), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
73 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
74 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
75 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
76 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
77 DLD_PICOBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
78 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
79 ifeq ($(WITH_DYNAMIC_LINKING), false)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
80 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
81 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
82 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
83 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
84 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
85
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
86 INCLUDES := builtins.h data.h defun.h defun-dld.h \
2227
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
87 defun-int.h dirfns.h dynamic-ld.h error.h file-io.h \
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
88 fn-cache.h gripes.h help.h input.h lex.h load-save.h \
2242
31d0af6eadfe [project @ 1996-05-22 04:04:44 by jwe]
jwe
parents: 2228
diff changeset
89 mappers.h oct.h oct-fstrm.h oct-hist.h oct-iostrm.h \
2118
d5eeb60baedd [project @ 1996-05-10 07:21:02 by jwe]
jwe
parents: 2082
diff changeset
90 oct-map.h oct-obj.h oct-prcstrm.h oct-procbuf.h \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
91 oct-stdstrm.h oct-stream.h oct-strstrm.h pager.h parse.h \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
92 pathlen.h pr-output.h procstream.h pt-base.h pt-cmd.h \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
93 pt-const.h pt-exp-base.h pt-exp.h pt-fcn.h pt-fvc-base.h \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
94 pt-fvc.h pt-mat.h pt-misc.h pt-mvr-base.h pt-mvr.h \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
95 pt-plot.h pt-pr-code.h pt-walk.h sighandlers.h symtab.h \
2082
7eeaad95315c [project @ 1996-04-25 03:18:15 by jwe]
jwe
parents: 2064
diff changeset
96 syscalls.h sysdep.h systime.h syswait.h token.h toplev.h \
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
97 unwind-prot.h utils.h variables.h version.h \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
98 xdiv.h xpow.h Map.h SLStack.h Stack.h \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
99 ov-re-mat.h ov-cx-mat.h ov-ch-mat.h ov-struct.h ov-scalar.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
100 ov-range.h ov-complex.h ov-va-args.h ov-colon.h ov-base.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
101 ov-str-mat.h ov.h ov-typeinfo.h ops.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
102 op-cm-cm.h op-cm-cs.h op-cm-m.h op-cm-s.h op-cs-cm.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
103 op-cs-cs.h op-cs-m.h op-cs-s.h op-m-cm.h op-m-cs.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
104 op-m-m.h op-m-s.h op-s-cm.h op-s-cs.h op-s-m.h op-s-s.h \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
105 op-str-str.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
106
2228
50761cd2f94f [project @ 1996-05-17 14:40:37 by jwe]
jwe
parents: 2227
diff changeset
107 TI_SRC := Array-oc.cc Array-os.cc Array-tc.cc Map-fnc.cc Map-tc.cc \
1755
3a9462b655f1 [project @ 1996-01-22 04:47:22 by jwe]
jwe
parents: 1748
diff changeset
108 SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc \
1829
7d2982b55242 [project @ 1996-02-02 14:12:59 by jwe]
jwe
parents: 1813
diff changeset
109 SLList-tc.cc SLList-tm.cc SLStack-i.cc SLStack-pc.cc \
7d2982b55242 [project @ 1996-02-02 14:12:59 by jwe]
jwe
parents: 1813
diff changeset
110 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc \
1755
3a9462b655f1 [project @ 1996-01-22 04:47:22 by jwe]
jwe
parents: 1748
diff changeset
111 SLStack-ui.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
112
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
113 TI_OBJ := $(patsubst %.cc, %.o, $(TI_SRC))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
114
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
115 TI_PICOBJ := $(TI_OBJ)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
116 ifeq ($(SHARED_LIBS), true)
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
117 ifdef CXXPICFLAG
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
118 TI_PICOBJ := $(addprefix pic/, $(TI_OBJ))
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
119 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
120 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
121
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
122 SOURCES := data.cc defaults.cc dirfns.cc dynamic-ld.cc \
2227
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
123 error.cc file-io.cc fn-cache.cc gripes.cc help.cc input.cc \
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
124 lex.l load-save.cc mappers.cc oct-fstrm.cc oct-hist.cc \
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
125 oct-iostrm.cc oct-map.cc oct-obj.cc oct-prcstrm.cc \
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
126 oct-procbuf.cc oct-stdstrm.cc oct-stream.cc oct-strstrm.cc \
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
127 pager.cc parse.y pr-output.cc procstream.cc \
1975
bb3392bd6c94 [project @ 1996-02-25 04:58:06 by jwe]
jwe
parents: 1925
diff changeset
128 pt-base.cc pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc \
bb3392bd6c94 [project @ 1996-02-25 04:58:06 by jwe]
jwe
parents: 1925
diff changeset
129 pt-fcn.cc pt-fvc-base.cc pt-fvc.cc pt-mat.cc pt-misc.cc \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
130 pt-mvr-base.cc pt-mvr.cc pt-plot.cc pt-pr-code.cc resource.cc \
1975
bb3392bd6c94 [project @ 1996-02-25 04:58:06 by jwe]
jwe
parents: 1925
diff changeset
131 sighandlers.cc strcasecmp.c strncase.c strfns.cc strftime.c \
2082
7eeaad95315c [project @ 1996-04-25 03:18:15 by jwe]
jwe
parents: 2064
diff changeset
132 symtab.cc syscalls.cc sysdep.cc timefns.cc token.cc toplev.cc \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
133 unwind-prot.cc utils.cc variables.cc xdiv.cc xpow.cc \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
134 ov-base.cc ov-ch-mat.cc ov-re-mat.cc ov-cx-mat.cc ov-range.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
135 ov-scalar.cc ov-complex.cc ov-str-mat.cc ov-struct.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
136 ov-va-args.cc ov-colon.cc ov.cc ov-typeinfo.cc ops.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
137 op-cm-cm.cc op-cm-cs.cc op-cm-m.cc op-cm-s.cc op-cs-cm.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
138 op-cs-cs.cc op-cs-m.cc op-cs-s.cc op-m-cm.cc op-m-cs.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
139 op-m-m.cc op-m-s.cc op-s-cm.cc op-s-cs.cc op-s-m.cc op-s-s.cc \
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
140 op-str-str.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
141
1221
8e84beaa8af5 [project @ 1995-04-08 20:56:49 by jwe]
jwe
parents: 1188
diff changeset
142 TEMPLATE_SRC = Map.cc SLStack.cc
8e84beaa8af5 [project @ 1995-04-08 20:56:49 by jwe]
jwe
parents: 1188
diff changeset
143
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
144 OBJECTS_4 := $(SOURCES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
145 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
146 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
147 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
148 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
149
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
150 ifeq ($(SHARED_LIBS), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
151 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
152 PICOBJ := $(addprefix pic/, $(OBJECTS))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
153 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
154 PICOBJ := $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
155 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
156 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
157
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
158 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
159
1829
7d2982b55242 [project @ 1996-02-02 14:12:59 by jwe]
jwe
parents: 1813
diff changeset
160 DEP_SOURCES_3 := $(SOURCES) $(DLD_SRC) $(TI_SRC) builtins.cc octave.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
161 DEP_SOURCES_2 := $(patsubst %.l, %.cc, $(DEP_SOURCES_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
162 DEP_SOURCES_1 := $(patsubst %.y, %.cc, $(DEP_SOURCES_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
163 DEP_SOURCES := $(patsubst %.c, %.d, $(DEP_SOURCES_1))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
164 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_SOURCES))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
165
1558
297e084c3857 [project @ 1995-10-12 07:20:28 by jwe]
jwe
parents: 1551
diff changeset
166 DEF_FILES_5 := $(SOURCES) $(DLD_SRC) $(TI_SRC)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
167 DEF_FILES_4 := $(addprefix $(srcdir)/, $(DEF_FILES_5))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
168 DEF_FILES_3 := $(notdir $(shell grep -l "^DEFUN" $(DEF_FILES_4)))
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
169 DEF_FILES_2 := $(patsubst %.y, %.df, $(DEF_FILES_3))
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
170 DEF_FILES_1 := $(patsubst %.l, %.df, $(DEF_FILES_2))
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
171 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_FILES_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
172
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
173 OCTAVE_LFLAGS = -L../liboctave -L../libcruft -L../readline \
2064
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2055
diff changeset
174 -L../kpathsea -L../glob -L../dlfcn -L. $(RLD_FLAG)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
175
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
176 OCTAVE_LIBS = -loctinterp -loctave -ltinst -lcruft \
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2131
diff changeset
177 $(LIBPLPLOT) -lreadline -lkpathsea -lglob $(LIBDLFCN)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
178
2301
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
179 LIBS_TO_INSTALL = liboctinterp.a libtinst.a
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
180
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
181 SH_LIBS_TO_INSTALL = liboctinterp.$(SHLEXT) libtinst.$(SHLEXT)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
182
1661
b7a5f305df27 [project @ 1995-12-24 06:29:00 by jwe]
jwe
parents: 1631
diff changeset
183 LIBS = @LIBS@
b7a5f305df27 [project @ 1995-12-24 06:29:00 by jwe]
jwe
parents: 1631
diff changeset
184
1925
f69f71d23771 [project @ 1996-02-11 20:42:45 by jwe]
jwe
parents: 1923
diff changeset
185 DISTFILES = Makefile.in mkdefs mkbuiltins mk-oct-links.in \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
186 defaults.h.in oct-conf.h.in octave.gperf oct-gperf.h \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
187 octave.cc parse.cc lex.cc y.tab.h \
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
188 $(INCLUDES) $(DLD_SRC) $(SOURCES) $(TEMPLATE_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
189
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
190 all: stamp-prereq stamp-picdir libraries \
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
191 $(OCT_FILES) octave
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
192 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
193
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
194 stamp-prereq: defaults.h oct-conf.h
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
195 touch stamp-prereq
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
196
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
197 octave: octave.o builtins.o $(DLD_STATIC_OBJ) libraries
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
198 $(CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o octave \
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
199 octave.o builtins.o $(DLD_STATIC_OBJ) \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
200 $(OCTAVE_LFLAGS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
201 $(OCTAVE_LIBS) \
1661
b7a5f305df27 [project @ 1995-12-24 06:29:00 by jwe]
jwe
parents: 1631
diff changeset
202 $(FLIBS) $(LEXLIB) $(TERMLIBS) $(LIBS) -lg++
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
203
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
204 stamp-picdir:
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
205 if [ "$(SHARED_LIBS)" = true ] || [ "$(OCTAVE_LITE)" = true ]; then \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
206 if [ -n "$(CPICFLAG)" ] || [ -n "$(CXXPICFLAG)" ]; then \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
207 if [ -d pic ]; then \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
208 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
209 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
210 mkdir pic ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
211 fi ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
212 fi ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
213 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
214 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
215 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
216 touch stamp-picdir
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
217
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
218 libraries: liboctinterp.a libtinst.a stamp-interp stamp-tinst
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
219
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
220 liboctinterp.a: $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
221 $(AR) $(ARFLAGS) liboctinterp.a $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
222 $(RANLIB) liboctinterp.a
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
223
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
224 libtinst.a: $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
225 $(AR) $(ARFLAGS) libtinst.a $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
226 $(RANLIB) libtinst.a
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
227
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
228 stamp-interp: $(PICOBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
229 if $(SHARED_LIBS); then \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
230 $(CXX) -shared -o liboctinterp.$(SHLEXT) $(PICOBJ) \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
231 $(OCTAVE_LFLAGS) \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
232 -loctave -lcruft -ltinst -lreadline -lkpathsea \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
233 $(SH_TERMLIBS) $(SH_LIBS) -lg++ ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
234 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
235 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
236 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
237 touch stamp-interp
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
238
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
239 stamp-tinst: $(TI_PICOBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
240 if $(SHARED_LIBS); then \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
241 $(CXX) -shared -o libtinst.$(SHLEXT) $(TI_PICOBJ) \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
242 $(OCTAVE_LFLAGS) \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
243 -loctinterp -loctave -lcruft -lreadline -lkpathsea \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
244 $(SH_TERMLIBS) $(SH_LIBS) -lg++ ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
245 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
246 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
247 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
248 touch stamp-tinst
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
249
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
250 builtins.cc: $(DEF_FILES) mkbuiltins
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
251 @echo making $@ from $(DEF_FILES)
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
252 @$(srcdir)/mkbuiltins $(DEF_FILES) > $@.t
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
253 @$(top_srcdir)/move-if-change $@.t $@
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
254
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
255 $(DEF_FILES): mkdefs defun-int.h defun-dld.h defun.h defaults.h oct-conf.h
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
256
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
257 $(MAKEDEPS): defaults.h oct-gperf.h oct-conf.h
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
258
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
259 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
260 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
261
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
262 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
263 .PHONY: install
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
264
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
265 install-bin:
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
266 $(top_srcdir)/mkinstalldirs $(bindir)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
267 rm -f $(bindir)/octave
1983
aaf4ad3da905 [project @ 1996-02-27 12:40:49 by jwe]
jwe
parents: 1975
diff changeset
268 $(INSTALL_PROGRAM) octave $(bindir)/octave-$(version)
1722
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1717
diff changeset
269 $(LN_S) $(bindir)/octave-$(version) $(bindir)/octave
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
270 .PHONY: install-bin
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
271
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
272 install-oct:
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
273 $(top_srcdir)/mkinstalldirs $(octfiledir)
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
274 chmod a+rx mk-oct-links
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
275 for f in $(OCT_FILES); do $(INSTALL_DATA) $$f $(octfiledir)/$$f; done
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
276 ./mk-oct-links $(octfiledir) $(addprefix $(srcdir)/, $(DLD_SRC))
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
277 .PHONY: install-oct
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
278
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
279 install-lib:
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
280 $(top_srcdir)/mkinstalldirs $(libdir)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
281 for f in $(LIBS_TO_INSTALL); do \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
282 if [ -f $$f ]; then $(INSTALL_DATA) $$f $(libdir)/$$f; fi; \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
283 done
2301
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
284 for f in $(SH_LIBS_TO_INSTALL); do \
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
285 if [ -f $$f ]; then $(INSTALL_PROGRAM) $$f $(libdir)/$$f; fi; \
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
286 done
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
287 .PHONY: install-lib
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
288
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
289 install-inc:
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
290 $(top_srcdir)/mkinstalldirs $(octincludedir)
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
291 for f in $(INCLUDES) ; do \
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
292 rm -f $(octincludedir)/$$f ; \
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
293 $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f ; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
294 done
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
295 for f in defaults.h oct-conf.h oct-gperf.h ; do \
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
296 rm -f $(octincludedir)/$$f ; \
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
297 $(INSTALL_DATA) $$f $(octincludedir)/$$f ; \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
298 done
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
299 linkdir=`echo $(octincludedir) | sed 's/-$(version)$$//'` ; \
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
300 if [ "$$linkdir" = $(octincludedir) ] ; then \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
301 true ; \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
302 else \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
303 if [ -d $$linkdir ] ; then \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
304 true ; \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
305 else \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
306 rm -f $$linkdir ; \
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
307 $(LN_S) $(octincludedir) $$linkdir ; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
308 fi ; \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
309 fi
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
310 .PHONY: install-lib
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
311
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
312 uninstall:
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
313 rm -f $(bindir)/octave
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
314 for f in $(LIBS_TO_INSTALL); do rm -f $(libdir)/$$f; done
2301
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
315 for f in $(SH_LIBS_TO_INSTALL); do rm -f $(libdir)/$$f; done
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
316 for f in $(INCLUDES) defaults.h oct-conf.h; do \
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
317 rm -f $(octincludedir)/$$f; \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
318 done
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
319 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
320
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
321 tags: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
322 ctags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
323
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
324 TAGS: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
325 etags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
326
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
327 clean:
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
328 rm -f *.a *.o *.d *.df pic/*.o builtins.cc defaults.h oct-conf.h
1717
b3ce842b4975 [project @ 1996-01-09 04:53:25 by jwe]
jwe
parents: 1684
diff changeset
329 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
330 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
331
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
332 mostlyclean:
2053
6acfd17972b4 [project @ 1996-04-07 03:26:10 by jwe]
jwe
parents: 2046
diff changeset
333 rm -f *.o pic/*.o
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
334 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
335
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
336 distclean: clean
2046
18847f7caa8a [project @ 1996-03-29 19:43:07 by jwe]
jwe
parents: 2009
diff changeset
337 rm -f Makefile octave .fname so_locations
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
338 rm -f stamp-picdir stamp-tinst stamp-interp stamp-prereq
2053
6acfd17972b4 [project @ 1996-04-07 03:26:10 by jwe]
jwe
parents: 2046
diff changeset
339 -rmdir pic
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
340 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
341
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
342 maintainer-clean: distclean
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
343 rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c lex.cc parse.cc
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
344 rm -f oct-gperf.h stamp-picdir stamp-tinst stamp-interp stamp-prereq
2053
6acfd17972b4 [project @ 1996-04-07 03:26:10 by jwe]
jwe
parents: 2046
diff changeset
345 -rmdir pic
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
346 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
347
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
348 local-dist: parse.cc lex.cc oct-gperf.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
349 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
350 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
351 rm -f oct-gperf.h defaults.h oct-conf.h *.d *.df
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
352 .PHONY: local-dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
353
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
354 dist: parse.cc lex.cc oct-gperf.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
355 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
356 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
357 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
358 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
359
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
360 conf-dist:
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
361 ln octave.cc Makefile.in ../`cat ../.fname`/src
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
362 .PHONY: conf-dist
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
363
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
364 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
365
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
366 defaults.h: defaults.h.in ../Makeconf Makefile
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
367 @$(do-subst-default-vals)
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
368
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
369 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
370 @$(do-subst-config-vals)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
371
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
372 oct-gperf.h: octave.gperf
1903
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
373 @echo "making $@ from $<"
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
374 @gperf -a -C -E -H octave_kw_hash -g -N octave_kw_lookup -p -t \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
375 $< > $@.t
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
376 @$(top_srcdir)/move-if-change $@.t $@
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
377
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
378 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
379 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
380
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
381 # 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
382 # 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
383 # 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
384 # Hmm. I wonder if we can count on that...
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
385
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
386 ifndef omit_deps
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
387 -include $(MAKEDEPS) stamp-prereq
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1302
diff changeset
388 endif