annotate src/Makefile.in @ 1440:f18c5b5db882

[project @ 1995-09-19 19:57:32 by jwe]
author jwe
date Tue, 19 Sep 1995 19:57:32 +0000
parents a771d1785c2a
children 0b5abd833621
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
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
5 # jwe@che.utexas.edu
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
6 # Department of Chemical Engineering
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
7 # The University of Texas at Austin
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
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
39 %.def : %.cc
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 $< \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
42 | $(srcdir)/mkdefs > $@.tmp
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
43 @if test `wc $@.tmp | sed 's%[^0-9]*\([0-9]*\).*%\1%'` -ne 0 ; then \
609
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
44 mv $@.tmp $@ ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
45 else \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
46 echo "error: $@ is empty!" 1>&2 ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
47 rm -f $@.tmp ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
48 exit 1 ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
49 fi
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
50
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
51 DLD_SRC := f-balance.cc f-chol.cc f-colloc.cc f-dassl.cc f-det.cc \
674
71e8b2b6c3fe [project @ 1994-09-08 03:31:32 by jwe]
jwe
parents: 666
diff changeset
52 f-eig.cc f-expm.cc f-fft.cc f-fft2.cc f-find.cc \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
53 f-fsolve.cc f-fsqp.cc f-givens.cc f-hess.cc f-ifft.cc \
674
71e8b2b6c3fe [project @ 1994-09-08 03:31:32 by jwe]
jwe
parents: 666
diff changeset
54 f-ifft2.cc f-inv.cc f-log.cc f-lpsolve.cc f-lsode.cc f-lu.cc \
695
bcd781d5e148 [project @ 1994-09-10 18:06:37 by jwe]
jwe
parents: 686
diff changeset
55 f-minmax.cc f-npsol.cc f-pinv.cc f-qpsol.cc f-qr.cc f-quad.cc \
bcd781d5e148 [project @ 1994-09-10 18:06:37 by jwe]
jwe
parents: 686
diff changeset
56 f-qzval.cc f-rand.cc f-schur.cc f-sort.cc f-svd.cc f-syl.cc
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
57
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
58 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_SRC))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
59
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
60 INCLUDES := arith-ops.h builtins.h defaults.h.in defun.h defun-dld.h \
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
61 defun-int.h dirfns.h dynamic-ld.h error.h file-info.h \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
62 file-io.h fnmatch.h \
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
63 getopt.h gripes.h help.h idx-vector.h input.h lex.h \
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
64 load-save.h mappers.h missing-math.h octave.h octave-hist.h \
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
65 oct-map.h oct-obj.h oct-str.h pager.h parse.h pathlen.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
66 pathsearch.h pr-output.h procstream.h sighandlers.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
67 statdefs.h symtab.h sysdep.h sysdir.h systime.h syswait.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
68 token.h tree-base.h tree-cmd.h tree-const.h tree-expr.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
69 tree-misc.h tree-plot.h tc-inlines.h tc-rep.h unwind-prot.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
70 user-prefs.h utils.h variables.h version.h xdiv.h xpow.h \
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
71 Map.h SLStack.h Stack.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
72
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
73 TI_SRC := Array-string.cc Array-tc.cc Map-tc.cc DLList-fi.cc \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
74 SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-tc.cc \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
75 SLStack-i.cc SLStack-pc.cc SLStack-sym.cc SLStack-tok.cc \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
76 SLStack-tm.cc SLStack-ue.cc SLStack-ui.cc
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
77
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
78 TI_OBJ := $(patsubst %.cc, %.o, $(TI_SRC))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
79
1078
cbf3eed39e3f [project @ 1995-01-27 14:48:43 by jwe]
jwe
parents: 1046
diff changeset
80 SOURCES := acosh.c arith-ops.cc asinh.c atanh.c data.cc dirfns.cc \
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
81 dynamic-ld.cc erf.c erfc.c error.cc file-info.cc file-io.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
82 filemode.c \
1378
53a7bdf18077 [project @ 1995-09-12 00:34:59 by jwe]
jwe
parents: 1355
diff changeset
83 fnmatch.c getopt.c getopt1.c gripes.cc help.cc idx-vector.cc \
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
84 input.cc lex.l load-save.cc mappers.cc mkdir.c octave.cc \
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1319
diff changeset
85 octave-hist.cc oct-map.cc oct-obj.cc oct-str.cc pager.cc \
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
86 parse.y pr-output.cc procstream.cc rename.c resource.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
87 rmdir.c sighandlers.cc strcasecmp.c strncase.c strfns.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
88 strftime.c symtab.cc sysdep.cc tempname.c timefns.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
89 tempnam.c token.cc tree-base.cc tree-cmd.cc tree-const.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
90 tree-expr.cc tree-misc.cc tree-plot.cc unwind-prot.cc \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
91 user-prefs.cc utils.cc variables.cc xdiv.cc xpow.cc
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
92
1221
8e84beaa8af5 [project @ 1995-04-08 20:56:49 by jwe]
jwe
parents: 1188
diff changeset
93 TEMPLATE_SRC = Map.cc SLStack.cc
8e84beaa8af5 [project @ 1995-04-08 20:56:49 by jwe]
jwe
parents: 1188
diff changeset
94
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
95 OBJECTS_4 := $(SOURCES) builtins.o
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
96 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
97 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
98 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
99 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
100
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
101 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
102
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
103 DEP_SOURCES_3 := $(SOURCES) $(TI_SOURCES) builtins.cc
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
104 DEP_SOURCES_2 := $(patsubst %.l, %.cc, $(DEP_SOURCES_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
105 DEP_SOURCES_1 := $(patsubst %.y, %.cc, $(DEP_SOURCES_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
106 DEP_SOURCES := $(patsubst %.c, %.d, $(DEP_SOURCES_1))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
107 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_SOURCES))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
108
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
109 DEF_FILES_5 := $(SOURCES) $(DLD_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
110 DEF_FILES_4 := $(addprefix $(srcdir)/, $(DEF_FILES_5))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
111 DEF_FILES_3 := $(notdir $(shell grep -l "^DEFUN" $(DEF_FILES_4)))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
112 DEF_FILES_2 := $(patsubst %.y, %.def, $(DEF_FILES_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
113 DEF_FILES_1 := $(patsubst %.l, %.def, $(DEF_FILES_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
114 DEF_FILES := $(patsubst %.cc, %.def, $(DEF_FILES_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
115
1132
2a4c0ba29cf3 [project @ 1995-02-22 20:49:01 by jwe]
jwe
parents: 1080
diff changeset
116 # Don't leave the LIBDLD thing on a line by itself. It may expand to
2a4c0ba29cf3 [project @ 1995-02-22 20:49:01 by jwe]
jwe
parents: 1080
diff changeset
117 # nothing.
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
118
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
119 OCTAVE_LIBS = @LIBOCTDLD@ ../liboctave/liboctave.a libtinst.a \
1302
70fc5216efbf [project @ 1995-05-01 20:56:57 by jwe]
jwe
parents: 1299
diff changeset
120 ../libcruft/libcruft.a @LIBREADLINE@ @LIBPLPLOT@ \
1150
f0e54e93d420 [project @ 1995-02-26 23:32:25 by jwe]
jwe
parents: 1145
diff changeset
121 ../kpathsea/kpathsea.a @LIBDLD@
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
122
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
123 DISTFILES = Makefile.in mkdefs mkbuiltins parse.cc lex.cc y.tab.h \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
124 safe-xstat.cin safe-xstat.hin \
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
125 $(INCLUDES) $(DLD_SRC) $(SOURCES) $(TEMPLATE_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
126
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
127 all: defaults.h safe-stat.h safe-lstat.h octave
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
128 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
129
1080
723f3a0a9728 [project @ 1995-01-27 16:08:37 by jwe]
jwe
parents: 1078
diff changeset
130 octave: $(OBJECTS) $(DLD_OBJ) $(OCTAVE_LIBS) liboctdld.a
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
131 $(CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o octave \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
132 $(OBJECTS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
133 $(OCTAVE_LIBS) \
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
134 $(FLIBS) $(LEXLIB) -ltermcap -lm -lg++
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
135
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
136 liboctdld.a: $(DLD_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
137 $(AR) $(ARFLAGS) liboctdld.a $(DLD_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
138 $(RANLIB) liboctdld.a
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
139
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
140 libtinst.a: $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
141 $(AR) $(ARFLAGS) libtinst.a $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
142 $(RANLIB) libtinst.a
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
143
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
144 builtins.cc: $(DEF_FILES) mkbuiltins
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
145 @echo making $@ from $(DEF_FILES)
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
146 @$(srcdir)/mkbuiltins $(DEF_FILES) > $@.tmp
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
147 @$(top_srcdir)/move-if-change $@.tmp $@
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
148
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
149 $(DEF_FILES): mkdefs defun-int.h defun-dld.h defun.h defaults.h
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
150
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
151 $(MAKEDEPS): defaults.h
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
152
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
153 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
154 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
155
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
156 install: all
810
1865b6725111 [project @ 1994-10-14 18:43:46 by jwe]
jwe
parents: 805
diff changeset
157 $(top_srcdir)/mkinstalldirs $(bindir) $(libdir)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
158 rm -f $(bindir)/octave
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
159 $(INSTALL) octave $(bindir)/octave-$(version)
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
160 ln $(bindir)/octave-$(version) $(bindir)/octave
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
161 if $(OCTAVE_LITE) && $(WITH_DLD) ; then \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
162 $(INSTALL_DATA) liboctdld.a $(libdir)/liboctdld.a ; \
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
163 fi
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
164 .PHONY: install
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
165
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
166 uninstall:
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
167 rm -f $(bindir)/octave
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
168 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
169
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
170 tags: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
171 ctags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
172
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
173 TAGS: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
174 etags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
175
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
176 clean:
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
177 rm -f *.a *.o builtins.cc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
178 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
179
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
180 mostlyclean:
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
181 rm -f *.o
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
182 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
183
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
184 distclean: clean
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
185 rm -f Makefile octave .fname *.d *.def
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
186 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
187
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
188 maintainer-clean: distclean
563
6833834adca7 [project @ 1994-07-26 00:21:10 by jwe]
jwe
parents: 555
diff changeset
189 rm -f tags TAGS y.tab.c y.tab.h y.output yy.lex.c \
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
190 lex.cc parse.cc defaults.h *.d *.def
1391
02a4e580de4e [project @ 1995-09-14 09:08:43 by jwe]
jwe
parents: 1378
diff changeset
191 .PHONY: maintainer-clean
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
192
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
193 local-dist: parse.cc lex.cc
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
194 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
195 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
196 rm -f lex.cc parse.cc defaults.h *.d *.def
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
197 .PHONY: local-dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
198
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
199 dist: parse.cc lex.cc
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
200 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
201 rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
717
b14a2dda50e7 [project @ 1994-09-21 14:51:52 by jwe]
jwe
parents: 707
diff changeset
202 rm -f lex.cc parse.cc defaults.h *.d *.def builtins.cc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
203 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
204
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
205 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
206
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
207 defaults.h: defaults.h.in ../Makeconf Makefile
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
208 @echo "making $@ from $<"
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
209 @(sed < $< > $@.tmp \
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
210 -e "s;%DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
211 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
212 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
213 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 790
diff changeset
214 -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
215 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
216 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
217 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
218 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
219 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
220 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
221 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
222 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \
686
0faebdd7df57 [project @ 1994-09-09 21:09:24 by jwe]
jwe
parents: 678
diff changeset
223 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
224 -e "s;%TARGET_HOST_TYPE%;\"${target_host_type}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
225 -e "s;%FLIB_LIST%;\"${FLIB_LIST}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
226 -e "s;%FLIB_PATH%;\"${FLIB_PATH}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
227 -e "s;%CXXLIB_LIST%;\"${CXXLIB_LIST}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
228 -e "s;%CXXLIB_PATH%;\"${CXXLIB_PATH}\";")
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
229 @$(top_srcdir)/move-if-change $@.tmp $@
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
230
1440
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
231 extract_stat = sed 's/@l@//g; s/@L@//g; /@LSTAT_ONLY@/d'
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
232 extract_lstat = sed 's/@l@/l/g; s/@L@/L/g; s/ *@LSTAT_ONLY@//'
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
233
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
234 safe-lstat.c: safe-xstat.cin
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
235 @echo "making $@ from $<"
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
236 @$(extract_lstat) $< > $@.tmp
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
237 @$(top_srcdir)/move-if-change $@.tmp $@
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
238
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
239 safe-lstat.h: safe-xstat.hin
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
240 @echo "making $@ from $<"
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
241 @$(extract_lstat) $< > $@.tmp
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
242 @$(top_srcdir)/move-if-change $@.tmp $@
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
243
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
244 safe-stat.c: safe-xstat.cin
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
245 @echo "making $@ from $<"
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
246 @$(extract_stat) $< > $@.tmp
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
247 @$(top_srcdir)/move-if-change $@.tmp $@
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
248
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
249 safe-stat.h: safe-xstat.hin
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
250 @echo "making $@ from $<"
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
251 @$(extract_stat) $< > $@.tmp
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
252 @$(top_srcdir)/move-if-change $@.tmp $@
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
253
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
254 safe-stat.o: safe-stat.h
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
255 safe-lstat.o: safe-lstat.h safe-stat.h
f18c5b5db882 [project @ 1995-09-19 19:57:32 by jwe]
jwe
parents: 1393
diff changeset
256
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
257 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
258 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
259
1393
a771d1785c2a [project @ 1995-09-14 09:31:16 by jwe]
jwe
parents: 1391
diff changeset
260 ifndef omit_deps
928
2f91e7098f8c [project @ 1994-11-15 21:53:40 by jwe]
jwe
parents: 829
diff changeset
261 -include $(MAKEDEPS)
1319
1270bf19f7fe [project @ 1995-08-22 00:43:02 by jwe]
jwe
parents: 1302
diff changeset
262 endif