annotate Makeconf.in @ 3157:974e596662f9

[project @ 1998-02-22 09:47:18 by jwe]
author jwe
date Sun, 22 Feb 1998 09:47:20 +0000
parents a494f93e60ff
children bc3fdfe311a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
860
9f01b6c2a607 [project @ 1994-10-28 20:30:16 by jwe]
jwe
parents: 858
diff changeset
1 # @configure_input@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
2 #
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
3 # Common configuration rules for all of octave's Makefiles.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
4 #
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
5 # John W. Eaton
1450
2f4a1acb555d [project @ 1995-09-20 03:55:17 by jwe]
jwe
parents: 1242
diff changeset
6 # jwe@bevo.che.wisc.edu
2f4a1acb555d [project @ 1995-09-20 03:55:17 by jwe]
jwe
parents: 1242
diff changeset
7 # University of Wisconsin-Madison
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
8 # Department of Chemical Engineering
1450
2f4a1acb555d [project @ 1995-09-20 03:55:17 by jwe]
jwe
parents: 1242
diff changeset
9
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
10 SHELL = /bin/sh
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
11
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
12 # A shell command to extract the version number from version.h.
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
13 getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
14
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
15 # Look for version.h to get version information.
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
16 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
17 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file))))
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
18 version := $(shell $(getversion) $(version_file))
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
19
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
20 #### Start of system configuration section. ####
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
21
2577
2f0ea8b0db0e [project @ 1996-12-09 20:28:13 by jwe]
jwe
parents: 2566
diff changeset
22 EXE = @EXE@
2f0ea8b0db0e [project @ 1996-12-09 20:28:13 by jwe]
jwe
parents: 2566
diff changeset
23
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
24 LEX = @LEX@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
25 LFLAGS = @LFLAGS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
26 LEXLIB = @LEXLIB@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
27
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
28 YACC = @YACC@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
29 YFLAGS = -dv
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
30
1462
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
31 AR = @AR@
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
32 ARFLAGS = @ARFLAGS@
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
33
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
34 RANLIB = @RANLIB@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
35
1722
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1720
diff changeset
36 LN_S = @LN_S@
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1720
diff changeset
37
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
38 RUNTEST = @RUNTEST@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
39
2518
64de62e8e73d [project @ 1996-11-14 20:42:03 by jwe]
jwe
parents: 2512
diff changeset
40 TEXI2DVI = $(top_srcdir)/texi2dvi
64de62e8e73d [project @ 1996-11-14 20:42:03 by jwe]
jwe
parents: 2512
diff changeset
41
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
42 DEFAULT_PAGER = @DEFAULT_PAGER@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
43
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
44 WITH_DL = @WITH_DL@
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
45 WITH_SHL = @WITH_SHL@
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
46
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
47 WITH_DYNAMIC_LINKING = @WITH_DYNAMIC_LINKING@
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 685
diff changeset
48
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
49 OCTAVE_LITE = @OCTAVE_LITE@
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 685
diff changeset
50
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
51 STATIC_LIBS = @STATIC_LIBS@
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
52
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
53 SHARED_LIBS = @SHARED_LIBS@
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
54 SHLEXT = @SHLEXT@
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
55 SHLEXT_VER = $(SHLEXT).$(version)
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
56
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
57 LIBEXT = a
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1663
diff changeset
58
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
59 # Fortran to C translator and associated flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
60
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
61 F2C = @F2C@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
62 F2CFLAGS = @F2CFLAGS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
63
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
64 # Fortran compiler flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
65
1163
f963aa9821b5 [project @ 1995-03-01 03:24:33 by jwe]
jwe
parents: 1105
diff changeset
66 FC = @FC@
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 759
diff changeset
67 F77 = @F77@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
68 FFLAGS = @FFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
69 FPICFLAG = @FPICFLAG@
2566
bcdd6bf533ea [project @ 1996-12-06 00:51:31 by jwe]
jwe
parents: 2546
diff changeset
70 FORTRAN_MAIN_FLAG = @FORTRAN_MAIN_FLAG@
2610
8125b6f9c134 [project @ 1997-01-20 17:23:44 by jwe]
jwe
parents: 2592
diff changeset
71 ALL_FFLAGS = $(FFLAGS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
72
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
73 # cc and associated flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
74
2064
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2054
diff changeset
75 DLFCN_INCFLAGS = @DLFCN_INCFLAGS@
3157
974e596662f9 [project @ 1998-02-22 09:47:18 by jwe]
jwe
parents: 3156
diff changeset
76 GLOB_INCFLAGS = @DLFCN_INCFLAGS@
2064
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2054
diff changeset
77
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
78 # Clean up INCFLAGS a bit if we are not compiling in a separate
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
79 # directory.
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
80 ifeq ($(srcdir),.)
2546
9b7cd3ff8891 [project @ 1996-11-20 05:15:56 by jwe]
jwe
parents: 2518
diff changeset
81 TMP_IF_1 = -I.
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
82 else
2546
9b7cd3ff8891 [project @ 1996-11-20 05:15:56 by jwe]
jwe
parents: 2518
diff changeset
83 TMP_IF_1 = -I. -I$(srcdir)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
84 endif
404
54741230fb83 [project @ 1994-04-20 05:38:17 by jwe]
jwe
parents: 325
diff changeset
85 ifeq ($(TOPDIR),$(top_srcdir))
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
86 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
87 -I$(TOPDIR)/libcruft/misc
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
88 else
507
68c580e45518 [project @ 1994-07-09 06:15:07 by jwe]
jwe
parents: 451
diff changeset
89 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
90 -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \
2546
9b7cd3ff8891 [project @ 1996-11-20 05:15:56 by jwe]
jwe
parents: 2518
diff changeset
91 -I$(top_srcdir)/liboctave -I$(top_srcdir)/src \
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
92 -I$(top_srcdir)/libcruft/misc
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
93 endif
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
94 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
95
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
96 LIBFLAGS = -L$(TOPDIR)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
97
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
98 DEFS = @DEFS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
99
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 1984
diff changeset
100 UGLY_DEFS = @UGLY_DEFS@
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 1984
diff changeset
101
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
102 CC = @CC@
1891
96d926e193cf [project @ 1996-02-08 16:13:26 by jwe]
jwe
parents: 1832
diff changeset
103 CC_VERSION = @CC_VERSION@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
104 CFLAGS = @CFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
105 CPICFLAG = @CPICFLAG@
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
106 XTRA_CFLAGS = @XTRA_CFLAGS@
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
107 ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(CFLAGS)
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
108 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(CFLAGS)
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 759
diff changeset
109
198
e34910e90474 [project @ 1993-11-07 13:06:22 by jwe]
jwe
parents: 187
diff changeset
110 CXX = @CXX@
1891
96d926e193cf [project @ 1996-02-08 16:13:26 by jwe]
jwe
parents: 1832
diff changeset
111 CXX_VERSION = @CXX_VERSION@
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
112 CXXCPP = @CXXCPP@
198
e34910e90474 [project @ 1993-11-07 13:06:22 by jwe]
jwe
parents: 187
diff changeset
113 CXXFLAGS = @CXXFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
114 CXXPICFLAG = @CXXPICFLAG@
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
115 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
116 ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
117 UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
118 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
119
858
a85ab265d138 [project @ 1994-10-28 19:52:07 by jwe]
jwe
parents: 827
diff changeset
120 CPPFLAGS = @CPPFLAGS@
a85ab265d138 [project @ 1994-10-28 19:52:07 by jwe]
jwe
parents: 827
diff changeset
121
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
122 LDFLAGS = @LDFLAGS@
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 702
diff changeset
123 LD_STATIC_FLAG = @LD_STATIC_FLAG@
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
124 ALL_LDFLAGS = $(LIBFLAGS) $(FORTRAN_MAIN_FLAG) \
2592
0863d2cab514 [project @ 1996-12-14 04:39:00 by jwe]
jwe
parents: 2577
diff changeset
125 $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
126
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
127 SH_LD = @SH_LD@
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
128 SH_LDFLAGS = @SH_LDFLAGS@
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
129
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
130 SONAME_FLAGS = @SONAME_FLAGS@
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
131
2674
5a9e08ddc093 [project @ 1997-02-13 22:30:38 by jwe]
jwe
parents: 2647
diff changeset
132 RLD_FLAG = @RLD_FLAG@
5a9e08ddc093 [project @ 1997-02-13 22:30:38 by jwe]
jwe
parents: 2647
diff changeset
133
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
134 FLIBS = @FLIBS@
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 702
diff changeset
135
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2141
diff changeset
136 TERMLIBS = @TERMLIBS@
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2862
diff changeset
137 LIBDLFCN = @LIBDLFCN@
2147
678cb6a93368 [project @ 1996-05-13 06:14:14 by jwe]
jwe
parents: 2141
diff changeset
138 LIBPLPLOT = @LIBPLPLOT@
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2862
diff changeset
139 LIBREADLINE = @LIBREADLINE@
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
140 LIBKPATHSEA = @LIBKPATHSEA@
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
141 LIBOCTINTERP = @LIBOCTINTERP@
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
142 LIBOCTAVE = @LIBOCTAVE@
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
143 LIBCRUFT = @LIBCRUFT@
3111
fe6f9bd9d0e6 [project @ 1997-11-26 07:52:06 by jwe]
jwe
parents: 3036
diff changeset
144 SPECIAL_MATH_LIB = @SPECIAL_MATH_LIB@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
145
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2147
diff changeset
146 # The arguments passed to configure.
2156
be6e76ca8a84 [project @ 1996-05-13 09:10:08 by jwe]
jwe
parents: 2155
diff changeset
147 config_opts = @config_opts@
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2147
diff changeset
148
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
149 # ==================== Where To Install Things ====================
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
150
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
151 # The default location for installation. Everything is placed in
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
152 # subdirectories of this directory. The default values for many of
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
153 # the variables below are expressed in terms of this one, so you may
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
154 # not need to change them. This defaults to /usr/local.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
155 prefix = @prefix@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
156
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
157 # Like `prefix', but used for architecture-specific files.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
158 exec_prefix = @exec_prefix@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
159
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
160 # Where to install Octave and other binaries that people will want to
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
161 # run directly.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
162 bindir = @bindir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
163
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
164 # Where to install architecture-independent data files. ${fcnfiledir}
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
165 # and ${localfcnfiledir} are subdirectories of this.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
166 datadir = @datadir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
167
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
168 libdir = @libdir@
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
169
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
170 # Where to install and expect libraries like libcruft.a, liboctave.a,
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
171 # and other architecture-dependent data.
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
172 octlibdir = @octlibdir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
173
1720
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
174 # Where to install and expect executable programs to be run by Octave
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
175 # rather than directly by users.
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
176 libexecdir = @libexecdir@
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
177
2141
420afeadbb45 [project @ 1996-05-13 04:29:02 by jwe]
jwe
parents: 2064
diff changeset
178 # The prefix for Octave's include file directory. The default is
420afeadbb45 [project @ 1996-05-13 04:29:02 by jwe]
jwe
parents: 2064
diff changeset
179 # ${prefix}/include
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
180 includedir = @includedir@
2141
420afeadbb45 [project @ 1996-05-13 04:29:02 by jwe]
jwe
parents: 2064
diff changeset
181
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
182 # Where to install Octave's man pages, and what extension they should
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
183 # have. The default is ${prefix}/man/man1
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
184 mandir = @mandir@
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
185 man1dir = @man1dir@
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
186 man1ext = @man1ext@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
187
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
188 # Where to install and expect the info files describing Octave..
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
189 infodir = @infodir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
190
2512
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
191 # The fill path to the default info file.
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
192 infofile = @infofile@
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
193
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
194 # ==================== Octave-specific directories ====================
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
195
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
196 # These variables hold the values specific to Octave. They are
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
197 # based on the values of the standard Make variables above.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
198
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
199 # Where to install Octave's include files. The default is
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
200 # ${includedir}/octave-${version}
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
201 octincludedir = @octincludedir@
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
202
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
203 # Where to install the function file distributed with
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
204 # Octave. This includes the Octave version, so that the
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
205 # function files for different versions of Octave will install
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
206 # themselves in separate directories.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
207 fcnfiledir = @fcnfiledir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
208
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
209 # Directories Octave should search for function files specific
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
210 # to this site (i.e. customizations), before consulting
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
211 # ${fcnfiledir}. This should be a colon-separated list of
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
212 # directories.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
213 localfcnfiledir = @localfcnfiledir@
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
214 localfcnfilepath = @localfcnfilepath@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
215
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
216 # Where to put executables to be run by Octave rather than
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
217 # the user. This path usually includes the Octave version
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
218 # and configuration name, so that multiple configurations
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
219 # for multiple versions of Octave may be installed at once.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
220 archlibdir = @archlibdir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
221
2439
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
222 # Where to put executables to be run by Octave rather than by the
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
223 # user that are specific to this site.
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
224 localarchlibdir = @localarchlibdir@
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
225
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
226 # Where to put object files that will by dynamically loaded.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
227 # This path usually includes the Octave version and configuration
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
228 # name, so that multiple configurations for multiple versions of
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
229 # Octave may be installed at once.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
230 octfiledir = @octfiledir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
231
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
232 # Directories Octave should search for object files that will be
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
233 # dynamically loaded and that are specific to this site
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
234 # (i.e. customizations), before consulting ${octfiledir}. This should
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
235 # be a colon-separated list of directories.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
236 localoctfiledir = @localoctfiledir@
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
237 localoctfilepath = @localoctfilepath@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
238
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
239 # Where Octave will search to find its function files. Before
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
240 # changing this, check to see if your purpose wouldn't
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
241 # better be served by changing localfcnfilepath. This
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
242 # should be a colon-separated list of directories.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
243 fcnfilepath = @fcnfilepath@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
244
685
eb88bf09a645 [project @ 1994-09-09 19:08:15 by jwe]
jwe
parents: 666
diff changeset
245 # Where Octave will search to find image files.es.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
246 imagedir = @imagedir@
685
eb88bf09a645 [project @ 1994-09-09 19:08:15 by jwe]
jwe
parents: 666
diff changeset
247 imagepath = @imagepath@
eb88bf09a645 [project @ 1994-09-09 19:08:15 by jwe]
jwe
parents: 666
diff changeset
248
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
249 # The type of computer we are running on.
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3131
diff changeset
250 canonical_host_type = @canonical_host_type@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
251
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
252 # The following pattern rules and the substitution functions require
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
253 # GNU make. If you don't have it, get it!
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
254
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
255 # Rules for making object files from Fortran source.
994
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
256 #
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
257 # If we are using f2c there will be a command for the `%.c : %.f'
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
258 # pattern and no command for the `%.o : %.f' pattern, so that make
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
259 # will not invoke the fortran compiler by mistake.
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
260 #
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
261 # If we are not using f2c, it should be ok to have an empty rule for
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
262 # the pattern `%.c : %.f', but we don't want to replace make's default
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
263 # rule for making object from Fortran source files, so there should be
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
264 # no pattern or command for that.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
265
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
266 @f77_rules_frag@
994
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
267
1668
6e8ac624ed9b [project @ 1995-12-26 06:35:24 by jwe]
jwe
parents: 1667
diff changeset
268 # How to make .o files:
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
269
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
270 %.o : %.c
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
271 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
272
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
273 %.o : %.cc
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
274 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $<
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
275
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
276 pic/%.o : %.c
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
277 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
278
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
279 pic/%.o : %.cc
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
280 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
281
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
282 # Here is a rule for generating dependencies for .cc files:
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
283
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
284 %.d : %.cc
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
285 @echo making $@ from $<
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
286 @rm -f $@
2647
044ff6e8b739 [project @ 1997-01-29 20:18:39 by jwe]
jwe
parents: 2625
diff changeset
287 @$(CXX) -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
044ff6e8b739 [project @ 1997-01-29 20:18:39 by jwe]
jwe
parents: 2625
diff changeset
288 sed -e 's,$*\.o,pic/& & $@,g' > $@.tmp
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
289 @mv $@.tmp $@
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
290
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
291 # And one for .c files.too:
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
292
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
293 %.d : %.c
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
294 @echo making $@ from $<
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
295 @rm -f $@
2647
044ff6e8b739 [project @ 1997-01-29 20:18:39 by jwe]
jwe
parents: 2625
diff changeset
296 @$(CC) -M $(CPPFLAGS) $(ALL_CFLAGS) $< | \
044ff6e8b739 [project @ 1997-01-29 20:18:39 by jwe]
jwe
parents: 2625
diff changeset
297 sed -e 's,$*\.o,pic/& & $@,g' > $@.tmp
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
298 @mv $@.tmp $@
1166
4e39d71f1ff2 [project @ 1995-03-10 16:32:58 by jwe]
jwe
parents: 1163
diff changeset
299
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
300 define do-subdir-for-command
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
301 echo making $@ in $d; cd $d; $(MAKE) $@; cd ..;
1166
4e39d71f1ff2 [project @ 1995-03-10 16:32:58 by jwe]
jwe
parents: 1163
diff changeset
302 endef
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
303
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
304 define subdir-for-command
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
305 $(foreach d, $(SUBDIRS), $(do-subdir-for-command))
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
306 endef
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
307
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
308 # Yes, the second sed command near the end is needed, to avoid limits
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
309 # in command lengths for some versions of sed. UGLY_DEFS is often
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
310 # quite large, so it makes sense to split this command there.
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
311
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
312 define do-subst-config-vals
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
313 echo "making $@ from $<"
2439
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
314 sed < $< \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
315 -e "s;%BUG_CXXFLAGS%;\"${BUG_CXXFLAGS}\";" \
2159
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
316 -e "s;%CC%;\"${CC}\";" \
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
317 -e "s;%CC_VERSION%;\"${CC_VERSION}\";" \
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
318 -e "s;%CFLAGS%;\"${BUG_CFLAGS}\";" \
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
319 -e "s;%CPICFLAG%;\"${CPICFLAG}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
320 -e "s;%CPPFLAGS%;\"${CPPFLAGS}\";" \
2159
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
321 -e "s;%CXX%;\"${CXX}\";" \
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
322 -e "s;%CXXFLAGS%;\"${CXXFLAGS}\";" \
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
323 -e "s;%CXXPICFLAG%;\"${CXXPICFLAG}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
324 -e "s;%CXX_VERSION%;\"${CXX_VERSION}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
325 -e "s;%F2C%;\"${F2C}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
326 -e "s;%F2CFLAGS%;\"${F2CFLAGS}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
327 -e "s;%F77%;\"${F77}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
328 -e "s;%FFLAGS%;\"${FFLAGS}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
329 -e "s;%FLIBS%;\"${FLIBS}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
330 -e "s;%FPICFLAG%;\"${FPICFLAG}\";" \
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
331 -e "s;%INCFLAGS%;\"-I${octincludedir} -I${includedir}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
332 -e "s;%LDFLAGS%;\"${LDFLAGS}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
333 -e "s;%LEXLIB%;\"${LEXLIB}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
334 -e "s;%LIBDLFCN%;\"${LIBDLFCN}\";" \
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
335 -e "s;%LIBFLAGS%;\"-L${octlibdir}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
336 -e "s;%LIBPLPLOT%;\"${LIBPLPLOT}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
337 -e "s;%LIBS%;\"${LIBS}\";" \
2715
df8c732b4fb2 [project @ 1997-02-22 02:39:47 by jwe]
jwe
parents: 2676
diff changeset
338 -e "s;%RLD_FLAG%;\"${RLD_FLAG}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
339 -e "s;%SH_LD%;\"${SH_LD}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
340 -e "s;%SH_LDFLAGS%;\"${SH_LDFLAGS}\";" \
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3131
diff changeset
341 -e "s;%TARGET_HOST_TYPE%;\"${canonical_host_type}\";" \
2159
aa04b4b4f285 [project @ 1996-05-13 09:30:35 by jwe]
jwe
parents: 2157
diff changeset
342 -e "s;%TERMLIBS%;\"${TERMLIBS}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
343 -e "s;%VERSION%;\"${version}\";" \
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3126
diff changeset
344 -e "s;%XTRA_CFLAGS%;\"${XTRA_CFLAGS}\";" \
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3126
diff changeset
345 -e "s;%XTRA_CXXFLAGS%;\"${XTRA_CXXFLAGS}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
346 -e "s;%config_opts%;\"${config_opts}\";" | \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
347 sed -e "s;%DEFS%;\"${UGLY_DEFS}\";" > $@.tmp
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
348 $(top_srcdir)/move-if-change $@.tmp $@
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
349 endef
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
350
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
351 define do-subst-default-vals
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
352 echo "making $@ from $<"
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
353 sed < $< > $@.tmp \
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
354 -e "s;%DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
355 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
356 -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
357 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
358 -e "s;%OCTAVE_LIBEXECDIR%;\"${libexecdir}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
359 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
360 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
361 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
362 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
363 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \
2512
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
364 -e "s;%OCTAVE_INFOFILE%;\"${infofile}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
365 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
366 -e "s;%OCTAVE_OCTLIBDIR%;\"${octlibdir}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
367 -e "s;%OCTAVE_LOCALARCHLIBDIR%;\"${localarchlibdir}\";" \
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
368 -e "s;%OCTAVE_LOCALFCNFILEDIR%;\"${localfcnfiledir}\";" \
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
369 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
370 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
371 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
372 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" \
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3131
diff changeset
373 -e "s;%TARGET_HOST_TYPE%;\"${canonical_host_type}\";"
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
374 $(top_srcdir)/move-if-change $@.tmp $@
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
375 endef
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
376
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
377 # Make a relative symbolic link from $includedir/octave to $octincludedir.
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
378
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
379 # XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
380 # of $includedir.
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
381
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
382 define mk-includedir-link
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
383 src=`echo $(octincludedir) | sed 's|^$(includedir)/*||'`; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
384 echo $$src; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
385 if [ "$$src" = "octave" ]; then \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
386 true; \
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
387 else \
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
388 cd $(includedir); \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
389 rm -f octave; \
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
390 $(LN_S) $$src octave; \
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
391 fi
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
392 endef
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
393
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
394 # Make a relative symbolic link from $libdir/octave to $octlibdir.
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
395
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
396 # XXX FIXME XXX -- this assumes that $octlibdir is a subdirectory
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
397 # of $libdir.
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
398
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
399 define mk-libdir-link
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
400 src=`echo $(octlibdir) | sed 's|^$(libdir)/*||'` ; \
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
401 echo $$src ; \
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
402 if [ "$$src" = "octave" ] ; then \
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
403 true ; \
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
404 else \
3152
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
405 if [ -d "$(libdir)/octave" ] ; then \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
406 true ; \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
407 else \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
408 cd $(libdir) ; \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
409 rm -f octave ; \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
410 $(LN_S) $$src octave ; \
a34a56e2e567 [project @ 1998-02-12 01:44:05 by jwe]
jwe
parents: 3141
diff changeset
411 fi ; \
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
412 fi
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
413 endef