annotate src/Makefile.in @ 759:3fc1ccd5a9db

[project @ 1994-10-02 15:34:26 by jwe]
author jwe
date Sun, 02 Oct 1994 15:41:13 +0000
parents c9f3cb77478d
children cee8a66ff94e
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@
b936220a35cf [project @ 1994-04-20 07:59:48 by jwe]
jwe
parents: 298
diff changeset
13 VPATH = @srcdir@:@srcdir@/../bsd-math
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 LIBOBJS = @LIBOBJS@
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 # 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
24
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
25 %.c : %.y
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
26
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
27 %.cc : %.y
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
28 $(YACC) $(YFLAGS) $<
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
29 @$(top_srcdir)/move-if-change y.tab.c $(@F)
2
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 # Likewise for .c from .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 %.c : %.l
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
34
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
35 %.cc : %.l
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
36 $(LEX) $(LFLAGS) $< > $(@F)
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
37
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
38 XALL_CXXFLAGS_1 = $(subst -fexternal-templates, , $(ALL_CXXFLAGS))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
39 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
40
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
41 %.def : %.cc
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
42 @echo making $@ from $<
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
43 @$(CXXCPP) -c $(CPPFLAGS) $(XALL_CXXFLAGS) -DMAKE_BUILTINS $< \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
44 | $(srcdir)/mkdefs > $@.tmp
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
45 @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
46 mv $@.tmp $@ ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
47 else \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
48 echo "error: $@ is empty!" 1>&2 ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
49 rm -f $@.tmp ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
50 exit 1 ; \
cdc194110938 [project @ 1994-08-14 00:26:55 by jwe]
jwe
parents: 603
diff changeset
51 fi
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
52
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
53 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
54 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
55 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
56 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
57 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
58 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
59
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
60 DLD_OBJ := $(patsubst %.cc, %.o, $(DLD_SRC))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
61
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
62 INCLUDES := arith-ops.h builtins.h defaults.h.in defun.h defun-dld.h \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
63 defun-int.h dirfns.h dynamic-ld.h error.h file-io.h fnmatch.h \
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
64 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
65 load-save.h mappers.h missing-math.h octave.h octave-hist.h \
751
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
66 oct-map.h oct-obj.h pager.h parse.h pr-output.h procstream.h \
585
98d3c7e36005 [project @ 1994-08-07 04:46:57 by jwe]
jwe
parents: 582
diff changeset
67 sighandlers.h statdefs.h symtab.h sysdep.h token.h \
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 563
diff changeset
68 tree-base.h tree-cmd.h tree-const.h tree-expr.h tree-misc.h \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
69 tree-plot.h tc-inlines.cc tc-rep.h unwind-prot.h user-prefs.h \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
70 utils.h variables.h version.h xdiv.h xpow.h Map.h SLStack.h \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
71 Stack.h
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
72
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
73 TI_SRC := Array-tc.cc Map-tc.cc DLList-fi.cc \
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
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
80 SOURCES := arith-ops.cc data.cc dirfns.cc dynamic-ld.cc \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
81 error.cc file-io.cc fnmatch.c getopt.c getopt1.c gripes.cc \
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
82 help.cc idx-vector.cc input.cc lex.l load-save.cc mappers.cc \
751
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
83 octave.cc octave-hist.cc oct-obj.cc pager.cc parse.y \
603
0e591d3900dd [project @ 1994-08-13 19:48:17 by jwe]
jwe
parents: 585
diff changeset
84 pr-output.cc procstream.cc sighandlers.cc strcasecmp.c \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
85 strncase.c symtab.cc sysdep.cc tc-rep.cc \
751
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
86 tc-rep-ass.cc tc-rep-idx.cc timefns.cc token.cc tree-base.cc \
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
87 tree-cmd.cc tree-const.cc tree-expr.cc tree-misc.cc \
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
88 tree-plot.cc unwind-prot.cc user-prefs.cc utils.cc \
c9f3cb77478d [project @ 1994-09-30 18:46:17 by jwe]
jwe
parents: 717
diff changeset
89 variables.cc xdiv.cc xpow.cc Map.cc SLStack.cc \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
90
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
91 OBJECTS_4 := $(SOURCES) builtins.o
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
92 OBJECTS_3 := $(patsubst %.l, %.o, $(OBJECTS_4))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
93 OBJECTS_2 := $(patsubst %.y, %.o, $(OBJECTS_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
94 OBJECTS_1 := $(patsubst %.c, %.o, $(OBJECTS_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
95 OBJECTS := $(patsubst %.cc, %.o, $(OBJECTS_1))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
96
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
97 # Ugh.
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
98
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
99 DEP_SOURCES_3 := $(SOURCES) $(TI_SOURCES) builtins.cc
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
100 DEP_SOURCES_2 := $(patsubst %.l, %.cc, $(DEP_SOURCES_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
101 DEP_SOURCES_1 := $(patsubst %.y, %.cc, $(DEP_SOURCES_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
102 DEP_SOURCES := $(patsubst %.c, %.d, $(DEP_SOURCES_1))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
103 MAKEDEPS := $(patsubst %.cc, %.d, $(DEP_SOURCES))
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
104
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
105 DEF_FILES_5 := $(SOURCES) $(DLD_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
106 DEF_FILES_4 := $(addprefix $(srcdir)/, $(DEF_FILES_5))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
107 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
108 DEF_FILES_2 := $(patsubst %.y, %.def, $(DEF_FILES_3))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
109 DEF_FILES_1 := $(patsubst %.l, %.def, $(DEF_FILES_2))
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
110 DEF_FILES := $(patsubst %.cc, %.def, $(DEF_FILES_1))
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
111
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
112
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
113 OCTAVE_LIBS = @LIBOCTDLD@ ../liboctave/liboctave.a libtinst.a \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
114 ../libcruft/libcruft.a ../info/libinfo.a \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
115 ../readline/libreadline.a ../kpathsea/libkpathsea.a \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
116 @LIBDLD@
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
117
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
118 DISTFILES = Makefile.in mkdefs mkbuiltins \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
119 parse.cc lex.cc y.tab.h $(INCLUDES) $(DLD_SRC) $(SOURCES) \
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
120 $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
121
10
70f622a3d197 [project @ 1993-08-09 00:59:48 by jwe]
jwe
parents: 9
diff changeset
122 all: defaults.h octave
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
123 .PHONY: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
124
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
125 octave: $(OBJECTS) $(DLD_OBJ) $(LIBOBJS) $(OCTAVE_LIBS) liboctdld.a
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
126 $(CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_LDFLAGS) -o octave \
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
127 $(OBJECTS) \
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
128 $(OCTAVE_LIBS) \
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
129 $(LIBOBJS) \
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
130 $(FLIBS) $(LEXLIB) -ltermcap -lm -lg++
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
131
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
132 liboctdld.a: $(DLD_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
133 $(AR) $(ARFLAGS) liboctdld.a $(DLD_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
134 $(RANLIB) liboctdld.a
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
135
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
136 libtinst.a: $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
137 $(AR) $(ARFLAGS) libtinst.a $(TI_OBJ)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
138 $(RANLIB) libtinst.a
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
139
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
140 builtins.cc: $(DEF_FILES) mkbuiltins
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
141 @echo making $@ from $(DEF_FILES)
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
142 @$(srcdir)/mkbuiltins $(DEF_FILES) > $@.tmp
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
143 @$(top_srcdir)/move-if-change $@.tmp $@
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
144
579
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
145 $(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
146
606938d43402 [project @ 1994-08-04 05:04:14 by jwe]
jwe
parents: 578
diff changeset
147 $(MAKEDEPS): defaults.h
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
148
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
149 check: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
150 .PHONY: check
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
151
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
152 install: all
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
153 if test -d $(bindir) ; then true ; else $(TOPDIR)/mkpath $(bindir) ; fi
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
154 rm -f $(bindir)/octave
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
155 $(INSTALL) octave $(bindir)/octave-$(version)
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
156 ln $(bindir)/octave-$(version) $(bindir)/octave
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
157 if test -d $(libdir) ; then true ; else $(TOPDIR)/mkpath $(libdir) ; fi
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
158 if $(OCTAVE_LITE) && $(WITH_DLD) ; then \
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
159 $(INSTALL_DATA) liboctdld.a $(libdir)/liboctdld.a ; \
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
160 fi
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
161 .PHONY: install
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
162
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
163 uninstall:
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
164 rm -f $(bindir)/octave
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
165 .PHONY: uninstall
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
166
759
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
167 tags: $(SOURCES) $(DLD_SRC) $(TI_SRC)
3fc1ccd5a9db [project @ 1994-10-02 15:34:26 by jwe]
jwe
parents: 751
diff changeset
168 ctags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
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 etags $(SOURCES) $(DLD_SRC) $(TI_SRC)
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
172
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
173 clean:
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
174 rm -f *.a *.o builtins.cc
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
175 .PHONY: clean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
176
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
177 mostlyclean:
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
178 rm -f *.o
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
179 .PHONY: mostlyclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
180
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
181 distclean: clean
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
182 rm -f Makefile octave .fname *.d *.def
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
183 .PHONY: distclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
184
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
185 realclean: distclean
563
6833834adca7 [project @ 1994-07-26 00:21:10 by jwe]
jwe
parents: 555
diff changeset
186 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
187 lex.cc parse.cc defaults.h *.d *.def
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
188 .PHONY: realclean
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
189
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
190 local-dist: parse.cc lex.cc
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
191 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
192 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
193 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
194 .PHONY: local-dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
195
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
196 dist: parse.cc lex.cc
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
197 ln $(DISTFILES) ../`cat ../.fname`/src
643
cf16ec9a2428 [project @ 1994-08-24 04:38:14 by jwe]
jwe
parents: 609
diff changeset
198 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
199 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
200 .PHONY: dist
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
201
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
202 # Special rules -- these files need special things to be defined.
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
203
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
204 defaults.h: defaults.h.in ../Makeconf Makefile
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
205 @echo "making defaults.h from defaults.h.in"
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
206 @(sed < $< > $@.tmp \
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
207 -e "s;%DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
208 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
209 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
210 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
211 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
212 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
213 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
214 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
215 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
216 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
217 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
218 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \
686
0faebdd7df57 [project @ 1994-09-09 21:09:24 by jwe]
jwe
parents: 678
diff changeset
219 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \
707
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
220 -e "s;%TARGET_HOST_TYPE%;\"${target_host_type}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
221 -e "s;%FLIB_LIST%;\"${FLIB_LIST}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
222 -e "s;%FLIB_PATH%;\"${FLIB_PATH}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
223 -e "s;%CXXLIB_LIST%;\"${CXXLIB_LIST}\";" \
d7c4962ec7a0 [project @ 1994-09-16 13:50:20 by jwe]
jwe
parents: 695
diff changeset
224 -e "s;%CXXLIB_PATH%;\"${CXXLIB_PATH}\";")
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 507
diff changeset
225 @$(top_srcdir)/move-if-change $@.tmp $@
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
226
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
227 check: all
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
228 .PHONY: check
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
229
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
230
2
c0190df9885d [project @ 1993-08-08 01:16:43 by jwe]
jwe
parents:
diff changeset
231 include $(MAKEDEPS)