annotate src/Makefile.in @ 2916:4e7bea116f24

[project @ 1997-04-30 20:56:31 by jwe]
author jwe
date Wed, 30 Apr 1997 20:57:48 +0000
parents 1da1af95082e
children 66ef74ee5d9f
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
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 $<
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
26 @$(CXXCPP) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) -DMAKE_BUILTINS $< \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
27 | $(srcdir)/mkdefs > $@.t
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
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
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
32 ifeq ($(OCTAVE_LITE), true)
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
33 ifdef CXXPICFLAG
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
34 %.oct : pic/%.o
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2853
diff changeset
35 $(SH_LD) $(SH_LDFLAGS) -o $@ $<
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
36 else
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
37 %.oct : %.o
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2853
diff changeset
38 $(SH_LD) $(SH_LDFLAGS) -o $@ $<
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
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
42 DLD_SRC := balance.cc chol.cc colloc.cc dassl.cc det.cc eig.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
43 expm.cc fft.cc fft2.cc filter.cc find.cc fsolve.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
44 fsqp.cc getgrent.cc getpwent.cc getrusage.cc givens.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
45 hess.cc ifft.cc ifft2.cc inv.cc log.cc lpsolve.cc lsode.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
46 lu.cc minmax.cc npsol.cc pinv.cc qpsol.cc qr.cc quad.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
47 qzval.cc rand.cc schur.cc sort.cc svd.cc syl.cc time.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
48
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
49 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_SRC))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
50
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
51 ifeq ($(OCTAVE_LITE), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
52 OCT_FILES := $(patsubst %.o, %.oct, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
53 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
54 DLD_PICOBJ := $(addprefix pic/, $(DLD_OBJ))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
55 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
56 DLD_PICOBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
57 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
58 ifeq ($(WITH_DYNAMIC_LINKING), false)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
59 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
60 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
61 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
62 DLD_STATIC_OBJ := $(DLD_OBJ)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
63 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
64
2910
1da1af95082e [project @ 1997-04-30 06:42:17 by jwe]
jwe
parents: 2909
diff changeset
65 INCLUDES := defun.h defun-dld.h defun-int.h dirfns.h dynamic-ld.h \
1da1af95082e [project @ 1997-04-30 06:42:17 by jwe]
jwe
parents: 2909
diff changeset
66 error.h file-io.h fn-cache.h gripes.h help.h input.h lex.h \
1da1af95082e [project @ 1997-04-30 06:42:17 by jwe]
jwe
parents: 2909
diff changeset
67 load-save.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
68 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
69 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
70 pathlen.h pr-output.h procstream.h pt-base.h pt-cmd.h \
2891
1a30f46e1870 [project @ 1997-04-28 01:49:00 by jwe]
jwe
parents: 2881
diff changeset
71 pt-const.h pt-exp-base.h pt-exp.h pt-id.h pt-indir.h \
1a30f46e1870 [project @ 1997-04-28 01:49:00 by jwe]
jwe
parents: 2881
diff changeset
72 pt-mat.h pt-misc.h pt-mvr-base.h pt-mvr.h \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
73 pt-plot.h pt-pr-code.h pt-walk.h sighandlers.h symtab.h \
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
74 sysdep.h systime.h syswait.h token.h toplev.h \
2881
b99a6a2619aa [project @ 1997-04-24 09:48:55 by jwe]
jwe
parents: 2862
diff changeset
75 unwind-prot.h utils.h variables.h version.h xdiv.h xpow.h \
b99a6a2619aa [project @ 1997-04-24 09:48:55 by jwe]
jwe
parents: 2862
diff changeset
76 BaseSLList.h Map.h SLList.h SLStack.h Stack.h ov-re-mat.h \
b99a6a2619aa [project @ 1997-04-24 09:48:55 by jwe]
jwe
parents: 2862
diff changeset
77 ov-cx-mat.h ov-ch-mat.h ov-list.h ov-struct.h ov-scalar.h \
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
78 ov-range.h ov-complex.h ov-va-args.h ov-colon.h ov-base.h \
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
79 ov-str-mat.h ov-bool-mat.h ov-bool.h ov-file.h ov.h \
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
80 ov-typeinfo.h ops.h oct-sym.h oct-fcn.h oct-builtin.h \
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
81 oct-mapper.h oct-usr-fcn.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
82
2228
50761cd2f94f [project @ 1996-05-17 14:40:37 by jwe]
jwe
parents: 2227
diff changeset
83 TI_SRC := Array-oc.cc Array-os.cc Array-tc.cc Map-fnc.cc Map-tc.cc \
2580
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
84 SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-tc.cc \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
85 SLList-tm.cc SLStack-i.cc SLStack-pc.cc SLStack-str.cc \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
86 SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc SLStack-ui.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
87
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
88 TI_OBJ := $(patsubst %.cc, %.o, $(TI_SRC))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
89
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
90 TI_PICOBJ := $(TI_OBJ)
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
91 ifeq ($(SHARED_LIBS), true)
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
92 ifdef CXXPICFLAG
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
93 TI_PICOBJ := $(addprefix pic/, $(TI_OBJ))
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
94 endif
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
95 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
96
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
97 OP_SOURCES := op-b-b.cc op-bm-bm.cc op-cm-cm.cc op-cm-cs.cc \
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
98 op-cm-m.cc op-cm-s.cc op-cs-cm.cc op-cs-cs.cc op-cs-m.cc \
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
99 op-cs-s.cc op-m-cm.cc op-m-cs.cc op-m-m.cc op-m-s.cc \
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
100 op-s-cm.cc op-s-cs.cc op-s-m.cc op-s-s.cc op-str-str.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
101 op-fil-b.cc op-fil-bm.cc op-fil-cm.cc op-fil-cs.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
102 op-fil-m.cc op-fil-s.cc op-fil-lis.cc op-fil-rec.cc \
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
103 op-fil-str.cc
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
104
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
105
2580
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
106 SOURCES := BaseSLList.cc Map.cc SLList.cc SLStack.cc Stack.cc \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
107 data.cc defaults.cc dirfns.cc dynamic-ld.cc error.cc \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
108 file-io.cc fn-cache.cc gripes.cc help.cc input.cc lex.l \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
109 load-save.cc mappers.cc oct-fstrm.cc oct-hist.cc \
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2577
diff changeset
110 oct-iostrm.cc oct-map.cc oct-obj.cc oct-prcstrm.cc \
2227
05363ec6c30b [project @ 1996-05-17 14:16:38 by jwe]
jwe
parents: 2223
diff changeset
111 oct-procbuf.cc oct-stdstrm.cc oct-stream.cc oct-strstrm.cc \
2457
5be3f6f5986a [project @ 1996-11-03 02:54:44 by jwe]
jwe
parents: 2452
diff changeset
112 pager.cc parse.y pr-output.cc procstream.cc pt-base.cc \
2891
1a30f46e1870 [project @ 1997-04-28 01:49:00 by jwe]
jwe
parents: 2881
diff changeset
113 pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc pt-id.cc \
1a30f46e1870 [project @ 1997-04-28 01:49:00 by jwe]
jwe
parents: 2881
diff changeset
114 pt-indir.cc pt-mat.cc pt-misc.cc pt-mvr-base.cc \
2825
60ae49e1284f [project @ 1997-03-25 23:17:36 by jwe]
jwe
parents: 2811
diff changeset
115 pt-mvr.cc pt-plot.cc pt-pr-code.cc sighandlers.cc \
60ae49e1284f [project @ 1997-03-25 23:17:36 by jwe]
jwe
parents: 2811
diff changeset
116 strcasecmp.c strncase.c strfns.cc strftime.c symtab.cc \
60ae49e1284f [project @ 1997-03-25 23:17:36 by jwe]
jwe
parents: 2811
diff changeset
117 syscalls.cc sysdep.cc token.cc toplev.cc unwind-prot.cc \
60ae49e1284f [project @ 1997-03-25 23:17:36 by jwe]
jwe
parents: 2811
diff changeset
118 utils.cc variables.cc xdiv.cc xpow.cc ov-base.cc ov-ch-mat.cc \
2881
b99a6a2619aa [project @ 1997-04-24 09:48:55 by jwe]
jwe
parents: 2862
diff changeset
119 ov-list.cc ov-re-mat.cc ov-cx-mat.cc ov-range.cc ov-scalar.cc \
2825
60ae49e1284f [project @ 1997-03-25 23:17:36 by jwe]
jwe
parents: 2811
diff changeset
120 ov-complex.cc ov-str-mat.cc ov-struct.cc ov-va-args.cc \
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
121 ov-colon.cc ov-bool-mat.cc ov-bool.cc ov-file.cc ov.cc \
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
122 ov-typeinfo.cc oct-fcn.cc oct-builtin.cc oct-mapper.cc \
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
123 oct-usr-fcn.cc $(OP_SOURCES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
124
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
125 OBJECTS_4 := $(SOURCES)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
126 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
127 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
128 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
129 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
130
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
131 ifeq ($(SHARED_LIBS), true)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
132 ifdef CXXPICFLAG
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
133 PICOBJ := $(addprefix pic/, $(OBJECTS))
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
134 else
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
135 PICOBJ := $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
136 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
137 endif
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
138
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
139 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
140
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
141 DEP_4 := $(SOURCES) $(DLD_SRC) $(TI_SRC) builtins.cc ops.cc octave.cc
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
142 DEP_3 := $(patsubst %.l, %.cc, $(DEP_4))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
143 DEP_2 := $(patsubst %.y, %.cc, $(DEP_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
144 DEP_1 := $(patsubst %.c, %.d, $(DEP_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
145 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
146
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
147 DEF_5 := $(SOURCES) $(DLD_SRC) $(TI_SRC)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
148 DEF_4 := $(addprefix $(srcdir)/, $(DEF_5))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
149 DEF_3 := $(notdir $(shell grep -l "^DEFUN" $(DEF_4)))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
150 DEF_2 := $(patsubst %.y, %.df, $(DEF_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
151 DEF_1 := $(patsubst %.l, %.df, $(DEF_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
152 DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
153
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
154 VAR_5 := $(SOURCES) $(DLD_SRC) $(TI_SRC)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
155 VAR_4 := $(addprefix $(srcdir)/, $(VAR_5))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
156 VAR_3 := $(notdir $(shell egrep -l "^[\t ]*DEF(VAR|CONST)" $(VAR_4)))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
157 VAR_2 := $(patsubst %.y, %, $(VAR_3))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
158 VAR_1 := $(patsubst %.l, %, $(VAR_2))
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
159 VAR_FILES := $(patsubst %.cc, %, $(VAR_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
160
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
161 OCTAVE_LFLAGS = -L../liboctave -L../libcruft -L../readline \
2064
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2055
diff changeset
162 -L../kpathsea -L../glob -L../dlfcn -L. $(RLD_FLAG)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
163
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
164 OCTAVE_LIBS = -loctinterp -loctave -ltinst -lcruft \
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2131
diff changeset
165 $(LIBPLPLOT) -lreadline -lkpathsea -lglob $(LIBDLFCN)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
166
2301
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
167 LIBS_TO_INSTALL = liboctinterp.a libtinst.a
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
168
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
169 SH_LIBS_TO_INSTALL = liboctinterp.$(SHLEXT) libtinst.$(SHLEXT)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
170
1661
b7a5f305df27 [project @ 1995-12-24 06:29:00 by jwe]
jwe
parents: 1631
diff changeset
171 LIBS = @LIBS@
b7a5f305df27 [project @ 1995-12-24 06:29:00 by jwe]
jwe
parents: 1631
diff changeset
172
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
173 DISTFILES = Makefile.in ChangeLog mkdefs mkbuiltins mk-oct-links \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
174 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
175 octave.cc parse.cc lex.cc y.tab.h \
2569
5e0c65023ba5 [project @ 1996-12-06 07:36:46 by jwe]
jwe
parents: 2530
diff changeset
176 $(INCLUDES) $(DLD_SRC) $(SOURCES) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
177
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
178 ifeq ($(SHARED_LIBS), true)
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
179 BINDISTFILES = octave $(OCT_FILES) $(SH_LIBS_TO_INSTALL)
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
180 BINDISTLIBS = $(addprefix src/, $(SH_LIBS_TO_INSTALL))
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
181 else
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
182 BINDISTFILES = octave $(OCT_FILES)
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
183 endif
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
184
2779
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
185 all: libraries stamp-oct-links octave
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
186 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
187
2779
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
188 stamp-oct-links: $(OCT_FILES)
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
189 if [ -n "$(OCT_FILES)" ]; then \
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
190 $(srcdir)/mk-oct-links . $(addprefix $(srcdir)/, $(DLD_SRC)) ; \
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
191 fi
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
192 touch stamp-oct-links
50b31bb6b959 [project @ 1997-03-01 21:24:58 by jwe]
jwe
parents: 2700
diff changeset
193
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
194 stamp-prereq: stamp-picdir 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
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
197 octave: octave.o builtins.o ops.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 \
2916
4e7bea116f24 [project @ 1997-04-30 20:56:31 by jwe]
jwe
parents: 2910
diff changeset
199 octave.o builtins.o ops.o $(DLD_STATIC_OBJ) \
1684
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) \
2613
5bcee07be597 [project @ 1997-01-21 03:52:08 by jwe]
jwe
parents: 2603
diff changeset
202 $(FLIBS) $(LEXLIB) $(TERMLIBS) $(LIBS)
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:
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
205 @if $(SHARED_LIBS) || [ "$(OCTAVE_LITE)" = true ]; then \
2358
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 \
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
210 echo "mkdir pic" ; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
211 mkdir pic ; \
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 fi ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
214 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
215 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
216 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
217 touch stamp-picdir
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
218
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
219 libraries: liboctinterp.a libtinst.a stamp-interp stamp-tinst
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
220
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
221 liboctinterp.a: stamp-prereq $(OBJECTS)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
222 $(AR) $(ARFLAGS) liboctinterp.a $(OBJECTS)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
223 $(RANLIB) liboctinterp.a
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
224
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
225 libtinst.a: stamp-prereq $(TI_OBJ)
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
226 $(AR) $(ARFLAGS) libtinst.a $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
227 $(RANLIB) libtinst.a
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
228
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
229 stamp-interp: stamp-prereq $(PICOBJ)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
230 if $(SHARED_LIBS); then \
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
231 $(SH_LD) $(SH_LDFLAGS) -o liboctinterp.$(SHLEXT) $(PICOBJ) ; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
232 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
233 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
234 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
235 touch stamp-interp
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
236
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
237 stamp-tinst: stamp-prereq $(TI_PICOBJ)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
238 if $(SHARED_LIBS); then \
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2646
diff changeset
239 $(SH_LD) $(SH_LDFLAGS) -o libtinst.$(SHLEXT) $(TI_PICOBJ) ; \
2358
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
240 else \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
241 true ; \
b3d7a8e3bcc7 [project @ 1996-08-21 03:11:55 by jwe]
jwe
parents: 2301
diff changeset
242 fi
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
243 touch stamp-tinst
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
244
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
245 builtins.cc: $(DEF_FILES) mkbuiltins
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
246 @echo making $@
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
247 @echo DEF_FILES = $(DEF_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
248 @echo VAR_FILES = $(VAR_FILES)
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
249 @echo $(DEF_FILES) > def-files
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
250 @echo $(VAR_FILES) > var-files
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
251 @$(srcdir)/mkbuiltins def-files var-files > $@.t
2390
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
252 @$(top_srcdir)/move-if-change $@.t $@
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
253
2909
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
254 ops.cc: $(OP_SOURCES) mkops
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
255 @echo making $@ from $(OP_SOURCES)
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
256 @$(srcdir)/mkops $(OP_SOURCES) > $@.t
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
257 @$(top_srcdir)/move-if-change $@.t $@
057273789b87 [project @ 1997-04-30 06:34:32 by jwe]
jwe
parents: 2907
diff changeset
258
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
259 $(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
260
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
261 $(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
262
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
263 @bsd_gcc_kluge_targets_frag@
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2624
diff changeset
264
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
265 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
266 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
267
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
268 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
269 .PHONY: install
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
270
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
271 install-strip:
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
272 $(MAKE) INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s" install
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
273 .PHONY: install-strip
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2806
diff changeset
274
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
275 install-bin:
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
276 $(top_srcdir)/mkinstalldirs $(bindir)
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
277 rm -f $(bindir)/octave$(EXE)
2577
2f0ea8b0db0e [project @ 1996-12-09 20:28:13 by jwe]
jwe
parents: 2571
diff changeset
278 $(INSTALL_PROGRAM) octave$(EXE) $(bindir)/octave-$(version)$(EXE)
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
279 cd $(bindir) ; $(LN_S) octave-$(version)$(EXE) octave$(EXE)
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
280 .PHONY: install-bin
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
281
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
282 install-oct:
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
283 if [ -n "$(OCT_FILES)" ]; then \
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
284 $(top_srcdir)/mkinstalldirs $(octfiledir) ; \
2603
939bc9157319 [project @ 1997-01-07 09:04:02 by jwe]
jwe
parents: 2601
diff changeset
285 xfiles="$(OCT_FILES)" ; \
939bc9157319 [project @ 1997-01-07 09:04:02 by jwe]
jwe
parents: 2601
diff changeset
286 for f in $$xfiles ; do \
2487
8c6e9535cbda [project @ 1996-11-08 15:58:52 by jwe]
jwe
parents: 2475
diff changeset
287 $(INSTALL_PROGRAM) $$f $(octfiledir)/$$f; \
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
288 done ; \
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
289 $(srcdir)/mk-oct-links \
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
290 $(octfiledir) $(addprefix $(srcdir)/, $(DLD_SRC)) ; \
2437
61306ea5f870 [project @ 1996-10-29 23:34:45 by jwe]
jwe
parents: 2399
diff changeset
291 fi
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
292 .PHONY: install-oct
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
293
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
294 install-lib:
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
295 $(top_srcdir)/mkinstalldirs $(libdir)
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
296 for f in $(LIBS_TO_INSTALL); do \
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
297 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
298 done
2301
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
299 for f in $(SH_LIBS_TO_INSTALL); do \
b6c2559cf865 [project @ 1996-06-24 07:28:26 by jwe]
jwe
parents: 2257
diff changeset
300 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
301 done
1684
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
302 .PHONY: install-lib
f85887dfe06c [project @ 1995-12-30 03:46:07 by jwe]
jwe
parents: 1661
diff changeset
303
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
304 install-inc:
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
305 $(top_srcdir)/mkinstalldirs $(octincludedir)
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
306 for f in $(INCLUDES) ; do \
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
307 rm -f $(octincludedir)/$$f ; \
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
308 $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f ; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
309 done
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
310 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
311 rm -f $(octincludedir)/$$f ; \
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2208
diff changeset
312 $(INSTALL_DATA) $$f $(octincludedir)/$$f ; \
2131
a1730a4747ec [project @ 1996-05-13 02:13:48 by jwe]
jwe
parents: 2130
diff changeset
313 done
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
314 tmp=`echo $(octincludedir) | sed 's|/*$$||'` ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
315 dir=`echo $$tmp | sed 's|[^/]*$$||'` ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
316 src=`echo $$tmp | sed 's|^.*/||'` ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
317 dest=`echo $$src | sed 's|-$(version)$$||'` ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
318 if [ "$$src" = "$$dest" ] ; then \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
319 true ; \
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
320 else \
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
321 if [ -d $$dir/$$dest ] ; then \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
322 true ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
323 else \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
324 cd $$dir ; rm -f $$dest && $(LN_S) $$src $$dest ; \
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
325 fi ; \
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
326 fi
2639
f95e58a25c90 [project @ 1997-01-28 17:20:29 by jwe]
jwe
parents: 2633
diff changeset
327 .PHONY: install-inc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
328
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
329 uninstall:
2577
2f0ea8b0db0e [project @ 1996-12-09 20:28:13 by jwe]
jwe
parents: 2571
diff changeset
330 rm -f $(bindir)/octave$(EXE)
2130
2c03e3995de4 [project @ 1996-05-13 01:58:54 by jwe]
jwe
parents: 2118
diff changeset
331 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
332 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
333 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
334 rm -f $(octincludedir)/$$f; \
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
335 done
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
336 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
337
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
338 tags: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
339 ctags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
340
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
341 TAGS: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
342 etags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
343
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
344 clean:
2907
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
345 rm -f *.a *.o *.d *.df *.oct pic/*.o
8bb31a2b480b [project @ 1997-04-30 05:01:46 by jwe]
jwe
parents: 2891
diff changeset
346 rm -f builtins.cc defaults.h oct-conf.h def-files var-files
1717
b3ce842b4975 [project @ 1996-01-09 04:53:25 by jwe]
jwe
parents: 1684
diff changeset
347 if $(SHARED_LIBS); then rm -f *.$(SHLEXT); fi
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
348 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
349
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
350 mostlyclean:
2053
6acfd17972b4 [project @ 1996-04-07 03:26:10 by jwe]
jwe
parents: 2046
diff changeset
351 rm -f *.o pic/*.o
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
352 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
353
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
354 distclean: clean
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
355 rm -f Makefile octave .fname so_locations
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
356 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
357 -rmdir pic
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
358 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
359
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
360 maintainer-clean: distclean
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
361 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
362 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
363 -rmdir pic
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
364 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
365
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
366 dist: parse.cc lex.cc oct-gperf.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
367 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
368 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
369 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
370 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
371
1895
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
372 conf-dist:
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
373 ln octave.cc Makefile.in ../`cat ../.fname`/src
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
374 .PHONY: conf-dist
a95b9ec79ec8 [project @ 1996-02-08 16:58:24 by jwe]
jwe
parents: 1829
diff changeset
375
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
376 bin-dist:
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
377 if [ -n "$(BINDISTFILES)" ]; then \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
378 ln $(BINDISTFILES) ../`cat ../.fname`/src ; \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
379 fi
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
380 if [ -n "$(OCT_FILES)" ]; then \
2646
5adf5280858c [project @ 1997-01-29 18:59:41 by jwe]
jwe
parents: 2639
diff changeset
381 $(srcdir)/mk-oct-links -p $(octfiledir) \
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
382 $(addprefix $(srcdir)/, $(DLD_SRC)) \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
383 > ../`cat ../.fname`/src/links-to-make ; \
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
384 fi
2686
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
385 if [ -n "$(BINDISTLIBS)" ]; then \
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
386 echo $(BINDISTLIBS) >> ../`cat ../.fname`/LIBRARIES ; \
6d0a6fc92f06 [project @ 1997-02-14 22:31:36 by jwe]
jwe
parents: 2676
diff changeset
387 fi
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
388 .PHONY: bin-dist
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2613
diff changeset
389
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
390 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
391
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
392 parse.cc : parse.y
2853
ff4ee9ad942a [project @ 1997-03-28 22:21:25 by jwe]
jwe
parents: 2825
diff changeset
393 @echo "expect 12 shift/reduce conflicts"
2524
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
394 $(YACC) $(YFLAGS) $<
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
395 @$(top_srcdir)/move-if-change y.tab.c $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
396
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
397 lex.cc : lex.l
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
398 $(LEX) $(LFLAGS) $< > $(@F)
7dc71ca5d092 [project @ 1996-11-17 20:16:08 by jwe]
jwe
parents: 2516
diff changeset
399
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
400 defaults.h: defaults.h.in ../Makeconf Makefile
2161
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
401 @$(do-subst-default-vals)
abb947300970 [project @ 1996-05-13 10:17:12 by jwe]
jwe
parents: 2147
diff changeset
402
2204
a24158362f9f [project @ 1996-05-15 06:09:42 by jwe]
jwe
parents: 2182
diff changeset
403 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
404 @$(do-subst-config-vals)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
405
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
406 oct-gperf.h: octave.gperf
1903
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
407 @echo "making $@ from $<"
1ab98f7789c9 [project @ 1996-02-09 20:36:57 by jwe]
jwe
parents: 1895
diff changeset
408 @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
409 $< > $@.t
c2c1482c34c8 [project @ 1996-10-12 19:13:23 by jwe]
jwe
parents: 2358
diff changeset
410 @$(top_srcdir)/move-if-change $@.t $@
1497
48a0b289f1be [project @ 1995-09-30 22:04:27 by jwe]
jwe
parents: 1476
diff changeset
411
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
412 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
413 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
414
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
415 # 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
416 # 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
417 # 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
418 # Hmm. I wonder if we can count on that...
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
419
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
420 ifndef omit_deps
2055
1523f75dc160 [project @ 1996-04-07 04:05:50 by jwe]
jwe
parents: 2053
diff changeset
421 -include $(MAKEDEPS) stamp-prereq
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1302
diff changeset
422 endif