annotate Makeconf.in @ 6469:a848b846cb3a ss-2-9-10

[project @ 2007-03-27 18:42:11 by jwe]
author jwe
date Tue, 27 Mar 2007 18:42:11 +0000
parents 06f26e174fc9
children f72d6d4b735a
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
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4449
diff changeset
12 AWK = @AWK@
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4449
diff changeset
13 export AWK
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4449
diff changeset
14
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
15 SED = @SED@
4299
02fcb550f20c [project @ 2003-01-16 20:15:14 by jwe]
jwe
parents: 4298
diff changeset
16 export SED
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
17
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5451
diff changeset
18 PERL = @PERL@
5495
71c9d4a6a843 [project @ 2005-10-14 07:29:26 by jwe]
jwe
parents: 5468
diff changeset
19 PYTHON = @PYTHON@
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5451
diff changeset
20
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
21 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
22
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
23 # A shell command to extract the version number from version.h.
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
24 getversion = $(SED) -e '/OCTAVE_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
25
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
26 # A shell command to extract the API version number from version.h.
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
27 getapiversion = $(SED) -e '/OCTAVE_API_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
28
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
29 # Look for version.h to get version information.
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
30 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
31 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file))))
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
32 version := $(shell $(getversion) $(version_file))
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5610
diff changeset
33 api_version := $(shell $(getapiversion) $(version_file))
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
34
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
35 #### Start of system configuration section. ####
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
36
3892
56db014d8980 [project @ 2002-04-05 04:08:56 by jwe]
jwe
parents: 3887
diff changeset
37 EXEEXT = @EXEEXT@
2577
2f0ea8b0db0e [project @ 1996-12-09 20:28:13 by jwe]
jwe
parents: 2566
diff changeset
38
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4094
diff changeset
39 BUILD_EXEEXT = @BUILD_EXEEXT@
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4094
diff changeset
40
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
41 LEX = @LEX@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
42 LFLAGS = @LFLAGS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
43 LEXLIB = @LEXLIB@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
44
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
45 YACC = @YACC@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
46 YFLAGS = -dv
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
47
3675
59123cd0be83 [project @ 2000-06-07 17:14:36 by jwe]
jwe
parents: 3615
diff changeset
48 GPERF = @GPERF@
59123cd0be83 [project @ 2000-06-07 17:14:36 by jwe]
jwe
parents: 3615
diff changeset
49
1462
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
50 AR = @AR@
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
51 ARFLAGS = @ARFLAGS@
8aa535221fa1 [project @ 1995-09-22 01:29:00 by jwe]
jwe
parents: 1450
diff changeset
52
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
53 TEMPLATE_AR = @TEMPLATE_AR@
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
54 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
55
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
56 RANLIB = @RANLIB@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
57
1722
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1720
diff changeset
58 LN_S = @LN_S@
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1720
diff changeset
59
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
60 RUNTEST = @RUNTEST@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
61
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5909
diff changeset
62 MAKEINFO = @MAKEINFO@
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5909
diff changeset
63 TEXI2DVI = @TEXI2DVI@
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5909
diff changeset
64 TEXI2PDF = @TEXI2PDF@
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5909
diff changeset
65
6116
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
66 # Both texi2dvi and texi2pdf check COMSPEC to decide what path
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
67 # separator to use. We build Octave with a Unixy shell, even on
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
68 # Windows sytems, so we need to unset COMSPEC when invoking these
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
69 # scripts. Used in the doc/*/Makefiles.
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
70 ifneq ($(COMSPEC),)
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
71 UNSETCOMSPEC = COMSPEC=
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
72 endif
b64fb24bf4a0 [project @ 2006-10-27 18:04:49 by jwe]
jwe
parents: 6102
diff changeset
73
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5909
diff changeset
74 GHOSTSCRIPT = @GHOSTSCRIPT@
2518
64de62e8e73d [project @ 1996-11-14 20:42:03 by jwe]
jwe
parents: 2512
diff changeset
75
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
76 DEFAULT_PAGER = @DEFAULT_PAGER@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
77
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
78 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@
702
45764610984a [project @ 1994-09-15 02:32:47 by jwe]
jwe
parents: 685
diff changeset
79
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
80 STATIC_LIBS = @STATIC_LIBS@
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
81
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
82 SHARED_LIBS = @SHARED_LIBS@
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
83 SHLEXT = @SHLEXT@
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4110
diff changeset
84 SHLEXT_VER = @SHLEXT_VER@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
85 SHLLIB = @SHLLIB@
4627
212fc2115e09 [project @ 2003-11-17 03:48:03 by jwe]
jwe
parents: 4626
diff changeset
86 SHLLIB_VER = @SHLLIB_VER@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
87 SHLBIN = @SHLBIN@
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4110
diff changeset
88 SHLBIN_VER = @SHLBIN_VER@
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4110
diff changeset
89 SHLLINKEXT=
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
90
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3025
diff changeset
91 LIBEXT = a
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6043
diff changeset
92 LIBPRE = @LIBPRE@
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1663
diff changeset
93
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
94 # Fortran to C translator and associated flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
95
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
96 F2C = @F2C@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
97 F2CFLAGS = @F2CFLAGS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
98
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
99 # Fortran compiler flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
100
1163
f963aa9821b5 [project @ 1995-03-01 03:24:33 by jwe]
jwe
parents: 1105
diff changeset
101 FC = @FC@
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 759
diff changeset
102 F77 = @F77@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
103 FFLAGS = @FFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
104 FPICFLAG = @FPICFLAG@
2610
8125b6f9c134 [project @ 1997-01-20 17:23:44 by jwe]
jwe
parents: 2592
diff changeset
105 ALL_FFLAGS = $(FFLAGS)
5498
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5495
diff changeset
106 F77_FLOAT_STORE_FLAG = @F77_FLOAT_STORE_FLAG@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
107
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
108 F77_TOLOWER=@F77_TOLOWER@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
109 F77_APPEND_UNDERSCORE=@F77_TOLOWER@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
110 F77_APPEND_EXTRA_UNDERSCORE=@F77_TOLOWER@
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
111
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
112 # cc and associated flags.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
113
2064
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2054
diff changeset
114 DLFCN_INCFLAGS = @DLFCN_INCFLAGS@
424b95481a85 [project @ 1996-04-07 22:25:33 by jwe]
jwe
parents: 2054
diff changeset
115
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
116 # 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
117 # directory.
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
118 ifeq ($(srcdir),.)
2546
9b7cd3ff8891 [project @ 1996-11-20 05:15:56 by jwe]
jwe
parents: 2518
diff changeset
119 TMP_IF_1 = -I.
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
120 else
2546
9b7cd3ff8891 [project @ 1996-11-20 05:15:56 by jwe]
jwe
parents: 2518
diff changeset
121 TMP_IF_1 = -I. -I$(srcdir)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
122 endif
404
54741230fb83 [project @ 1994-04-20 05:38:17 by jwe]
jwe
parents: 325
diff changeset
123 ifeq ($(TOPDIR),$(top_srcdir))
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
124 TMP_IF_2 = \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
125 -I$(TOPDIR) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
126 -I$(TOPDIR)/liboctave \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
127 -I$(TOPDIR)/src \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
128 -I$(TOPDIR)/libcruft/misc
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
129 else
5164
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
130 TMP_IF_2 = \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
131 -I$(TOPDIR) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
132 -I$(TOPDIR)/liboctave \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
133 -I$(TOPDIR)/src \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
134 -I$(TOPDIR)/libcruft/misc \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
135 -I$(top_srcdir) \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
136 -I$(top_srcdir)/liboctave \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
137 -I$(top_srcdir)/src \
57077d0ddc8e [project @ 2005-02-25 19:55:24 by jwe]
jwe
parents: 5151
diff changeset
138 -I$(top_srcdir)/libcruft/misc
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
139 endif
5169
47e2ef7d0ad6 [project @ 2005-03-01 06:16:25 by jwe]
jwe
parents: 5164
diff changeset
140 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
141
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
142 LIBFLAGS = -L$(TOPDIR)
236
93bbd907de34 [project @ 1993-11-30 20:21:19 by jwe]
jwe
parents: 198
diff changeset
143
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
144 DEFS = @DEFS@
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
145
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 1984
diff changeset
146 UGLY_DEFS = @UGLY_DEFS@
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 1984
diff changeset
147
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
148 CC = @CC@
1891
96d926e193cf [project @ 1996-02-08 16:13:26 by jwe]
jwe
parents: 1832
diff changeset
149 CC_VERSION = @CC_VERSION@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
150 CFLAGS = @CFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
151 CPICFLAG = @CPICFLAG@
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
152 XTRA_CFLAGS = @XTRA_CFLAGS@
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4544
diff changeset
153 WARN_CFLAGS = @WARN_CFLAGS@
6141
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6116
diff changeset
154 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4544
diff changeset
155 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
798
0acec886a912 [project @ 1994-10-13 04:57:48 by jwe]
jwe
parents: 759
diff changeset
156
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4093
diff changeset
157 BUILD_CC = @BUILD_CC@
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4093
diff changeset
158 BUILD_CFLAGS = @BUILD_CFLAGS@
4093
5a82e874999b [project @ 2002-10-08 23:48:45 by jwe]
jwe
parents: 4084
diff changeset
159
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
160 DEPEND_FLAGS = @DEPEND_FLAGS@
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
161 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6051
diff changeset
162 INCLUDE_DEPS = @INCLUDE_DEPS@
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6051
diff changeset
163 ifeq ($(INCLUDE_DEPS),false)
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6051
diff changeset
164 omit_deps = true;
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6051
diff changeset
165 endif
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
166
198
e34910e90474 [project @ 1993-11-07 13:06:22 by jwe]
jwe
parents: 187
diff changeset
167 CXX = @CXX@
1891
96d926e193cf [project @ 1996-02-08 16:13:26 by jwe]
jwe
parents: 1832
diff changeset
168 CXX_VERSION = @CXX_VERSION@
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
169 CXXCPP = @CXXCPP@
198
e34910e90474 [project @ 1993-11-07 13:06:22 by jwe]
jwe
parents: 187
diff changeset
170 CXXFLAGS = @CXXFLAGS@
1832
0c0d14cc90cd [project @ 1996-02-03 05:03:40 by jwe]
jwe
parents: 1722
diff changeset
171 CXXPICFLAG = @CXXPICFLAG@
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3111
diff changeset
172 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4544
diff changeset
173 WARN_CXXFLAGS = @WARN_CXXFLAGS@
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4544
diff changeset
174 ALL_CXXFLAGS = \
6141
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6116
diff changeset
175 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS)
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4544
diff changeset
176 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
177
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4093
diff changeset
178 BUILD_CXX = @BUILD_CXX@
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4093
diff changeset
179 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@
4093
5a82e874999b [project @ 2002-10-08 23:48:45 by jwe]
jwe
parents: 4084
diff changeset
180
858
a85ab265d138 [project @ 1994-10-28 19:52:07 by jwe]
jwe
parents: 827
diff changeset
181 CPPFLAGS = @CPPFLAGS@
a85ab265d138 [project @ 1994-10-28 19:52:07 by jwe]
jwe
parents: 827
diff changeset
182
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3675
diff changeset
183 LD_CXX = @LD_CXX@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
184 LDFLAGS = @LDFLAGS@
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 702
diff changeset
185 LD_STATIC_FLAG = @LD_STATIC_FLAG@
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3859
diff changeset
186 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
187
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4227
diff changeset
188 BUILD_LDFLAGS = @BUILD_LDFLAGS@
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4227
diff changeset
189
2676
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
190 SH_LD = @SH_LD@
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
191 SH_LDFLAGS = @SH_LDFLAGS@
a5a300c61159 [project @ 1997-02-14 03:16:06 by jwe]
jwe
parents: 2674
diff changeset
192
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4627
diff changeset
193 DL_LD = @DL_LD@
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4627
diff changeset
194 DL_LDFLAGS = @DL_LDFLAGS@
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4627
diff changeset
195
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
196 SONAME_FLAGS = @SONAME_FLAGS@
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
197
3233
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3215
diff changeset
198 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@
98d0ee053ba4 [project @ 1999-01-27 20:23:40 by jwe]
jwe
parents: 3215
diff changeset
199
2674
5a9e08ddc093 [project @ 1997-02-13 22:30:38 by jwe]
jwe
parents: 2647
diff changeset
200 RLD_FLAG = @RLD_FLAG@
5a9e08ddc093 [project @ 1997-02-13 22:30:38 by jwe]
jwe
parents: 2647
diff changeset
201
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
202 FLIBS = @FLIBS@
708
6caaaf4c5dd4 [project @ 1994-09-16 13:57:43 by jwe]
jwe
parents: 702
diff changeset
203
2930
1b219fa3c56a [project @ 1997-05-05 05:57:02 by jwe]
jwe
parents: 2862
diff changeset
204 LIBDLFCN = @LIBDLFCN@
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
205 LIBGLOB = @LIBGLOB@
3156
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
206 LIBOCTINTERP = @LIBOCTINTERP@
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
207 LIBOCTAVE = @LIBOCTAVE@
a494f93e60ff [project @ 1998-02-20 07:47:48 by jwe]
jwe
parents: 3152
diff changeset
208 LIBCRUFT = @LIBCRUFT@
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
209 LIBREADLINE = @LIBREADLINE@
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4098
diff changeset
210 TERMLIBS = @TERMLIBS@
3726
b7d997d593d9 [project @ 2000-10-27 17:51:21 by jwe]
jwe
parents: 3705
diff changeset
211
5585
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5498
diff changeset
212 REGEX_LIBS = @REGEX_LIBS@
3726
b7d997d593d9 [project @ 2000-10-27 17:51:21 by jwe]
jwe
parents: 3705
diff changeset
213 BLAS_LIBS = @BLAS_LIBS@
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3822
diff changeset
214 FFTW_LIBS = @FFTW_LIBS@
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5169
diff changeset
215 GLPK_LIBS = @GLPK_LIBS@
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6028
diff changeset
216 CURL_LIBS = @CURL_LIBS@
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
217 AMD_LIBS = @AMD_LIBS@
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 5942
diff changeset
218 CAMD_LIBS = @CAMD_LIBS@
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
219 UMFPACK_LIBS = @UMFPACK_LIBS@
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
220 COLAMD_LIBS = @COLAMD_LIBS@
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
221 CCOLAMD_LIBS = @CCOLAMD_LIBS@
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
222 CHOLMOD_LIBS = @CHOLMOD_LIBS@
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5597
diff changeset
223 CXSPARSE_LIBS = @CXSPARSE_LIBS@
3726
b7d997d593d9 [project @ 2000-10-27 17:51:21 by jwe]
jwe
parents: 3705
diff changeset
224 LIBS = @LIBS@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
225
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
226 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
227
5708
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
228 TEXINFO_COLAMD = @TEXINFO_COLAMD@
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
229 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
230 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
231
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2147
diff changeset
232 # The arguments passed to configure.
2156
be6e76ca8a84 [project @ 1996-05-13 09:10:08 by jwe]
jwe
parents: 2155
diff changeset
233 config_opts = @config_opts@
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2147
diff changeset
234
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
235 # ==================== Where To Install Things ====================
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
236
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
237 # The default location for installation. Everything is placed in
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
238 # 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
239 # 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
240 # 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
241 prefix = @prefix@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
242
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
243 # Like `prefix', but used for architecture-specific files.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
244 exec_prefix = @exec_prefix@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
245
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
246 # 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
247 # run directly.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
248 bindir = @bindir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
249
4411
cd14ff360ec8 [project @ 2003-05-14 01:10:27 by jwe]
jwe
parents: 4378
diff changeset
250 # Normally the directory for installing executables that system
cd14ff360ec8 [project @ 2003-05-14 01:10:27 by jwe]
jwe
parents: 4378
diff changeset
251 # administrators run. This is the same as libexecdir on Cygwin systems.
cd14ff360ec8 [project @ 2003-05-14 01:10:27 by jwe]
jwe
parents: 4378
diff changeset
252 sbindir = @sbindir@
cd14ff360ec8 [project @ 2003-05-14 01:10:27 by jwe]
jwe
parents: 4378
diff changeset
253
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5814
diff changeset
254 # The root of the directory tree for read-only
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5814
diff changeset
255 # architecture-independent data files.
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5814
diff changeset
256 datarootdir = @datarootdir@
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5814
diff changeset
257
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
258 # Where to install architecture-independent data files. ${fcnfiledir}
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
259 # and ${localfcnfiledir} are subdirectories of this.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
260 datadir = @datadir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
261
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
262 libdir = @libdir@
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
263
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
264 # 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
265 # and other architecture-dependent data.
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3136
diff changeset
266 octlibdir = @octlibdir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
267
1720
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
268 # 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
269 # rather than directly by users.
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
270 libexecdir = @libexecdir@
36df074f5274 [project @ 1996-01-09 05:38:18 by jwe]
jwe
parents: 1685
diff changeset
271
2141
420afeadbb45 [project @ 1996-05-13 04:29:02 by jwe]
jwe
parents: 2064
diff changeset
272 # 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
273 # ${prefix}/include
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
274 includedir = @includedir@
2141
420afeadbb45 [project @ 1996-05-13 04:29:02 by jwe]
jwe
parents: 2064
diff changeset
275
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
276 # 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
277 # have. The default is ${prefix}/man/man1
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
278 mandir = @mandir@
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
279 man1dir = @man1dir@
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
280 man1ext = @man1ext@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
281
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
282 # 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
283 infodir = @infodir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
284
2512
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
285 # The fill path to the default info file.
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
286 infofile = @infofile@
fda09c1e787e [project @ 1996-11-14 08:39:41 by jwe]
jwe
parents: 2488
diff changeset
287
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
288 # ==================== Octave-specific directories ====================
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
289
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
290 # 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
291 # 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
292
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
293 # What is the path separation character
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
294 sepchar = @sepchar@
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
295
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3591
diff changeset
296 # Where to install Octave's include files (they will actually be
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3591
diff changeset
297 # installed in a subdirectory called octave). The default is
2993
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
298 # ${includedir}/octave-${version}
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
299 octincludedir = @octincludedir@
91589ab98e37 [project @ 1997-05-21 21:44:54 by jwe]
jwe
parents: 2930
diff changeset
300
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
301 # Where to install the function file distributed with
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
302 # Octave. This includes the Octave version, so that the
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
303 # function files for different versions of Octave will install
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
304 # themselves in separate directories.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
305 fcnfiledir = @fcnfiledir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
306
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
307 # Directories Octave should search for function files specific
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
308 # to this site (i.e. customizations), before consulting
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
309 # ${fcnfiledir}. This should be a colon-separated list of
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
310 # directories.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
311 localfcnfiledir = @localfcnfiledir@
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
312 localapifcnfiledir = @localapifcnfiledir@
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3591
diff changeset
313 localverfcnfiledir = @localverfcnfiledir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
314
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
315 # 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
316 # the user. This path usually includes the Octave version
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
317 # and configuration name, so that multiple configurations
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
318 # 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
319 archlibdir = @archlibdir@
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
320
2439
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
321 # 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
322 # user that are specific to this site.
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
323 localarchlibdir = @localarchlibdir@
5909
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5847
diff changeset
324 localapiarchlibdir = @localapiarchlibdir@
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3591
diff changeset
325 localverarchlibdir = @localverarchlibdir@
2439
dc870b8b229f [project @ 1996-10-30 07:57:31 by jwe]
jwe
parents: 2386
diff changeset
326
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
327 # 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
328 # This path usually includes the Octave version and configuration
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
329 # name, so that multiple configurations for multiple versions of
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
330 # Octave may be installed at once.
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
331 octfiledir = @octfiledir@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
332
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
333 # 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
334 # dynamically loaded and that are specific to this site
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
335 # (i.e. customizations), before consulting ${octfiledir}. This should
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
336 # be a colon-separated list of directories.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
337 localoctfiledir = @localoctfiledir@
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4443
diff changeset
338 localapioctfiledir = @localapioctfiledir@
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3591
diff changeset
339 localveroctfiledir = @localveroctfiledir@
666
fb4f6556b443 [project @ 1994-09-06 21:22:46 by jwe]
jwe
parents: 651
diff changeset
340
5814
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5793
diff changeset
341 # Where Octave will search to find image files.
827
85039b726047 [project @ 1994-10-17 04:43:06 by jwe]
jwe
parents: 798
diff changeset
342 imagedir = @imagedir@
685
eb88bf09a645 [project @ 1994-09-09 19:08:15 by jwe]
jwe
parents: 666
diff changeset
343
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
344 # The type of computer we are running on.
3136
af7ec9d3a5e6 [project @ 1998-02-01 20:11:06 by jwe]
jwe
parents: 3131
diff changeset
345 canonical_host_type = @canonical_host_type@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
346
4443
aa345723c698 [project @ 2003-07-07 19:55:18 by jwe]
jwe
parents: 4414
diff changeset
347 # Where Octave will look for startup files
aa345723c698 [project @ 2003-07-07 19:55:18 by jwe]
jwe
parents: 4414
diff changeset
348 startupfiledir = ${fcnfiledir}/startup
aa345723c698 [project @ 2003-07-07 19:55:18 by jwe]
jwe
parents: 4414
diff changeset
349 localstartupfiledir = ${localfcnfiledir}/startup
aa345723c698 [project @ 2003-07-07 19:55:18 by jwe]
jwe
parents: 4414
diff changeset
350
6028
3dbbbec85190 [project @ 2006-10-04 13:42:21 by jwe]
jwe
parents: 6024
diff changeset
351 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ...
3dbbbec85190 [project @ 2006-10-04 13:42:21 by jwe]
jwe
parents: 6024
diff changeset
352 library_path_var = @library_path_var@
3dbbbec85190 [project @ 2006-10-04 13:42:21 by jwe]
jwe
parents: 6024
diff changeset
353
4761
c62b067609f8 [project @ 2004-02-15 06:06:24 by jwe]
jwe
parents: 4760
diff changeset
354 MKOCTFILE_DL_LDFLAGS = @MKOCTFILE_DL_LDFLAGS@
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4130
diff changeset
355
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4130
diff changeset
356 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4130
diff changeset
357
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
358 # The following pattern rules and the substitution functions require
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
359 # GNU make. If you don't have it, get it!
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
360
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
361 # Rules for making object files from Fortran source.
994
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
362 #
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
363 # 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
364 # 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
365 # will not invoke the fortran compiler by mistake.
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
366 #
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
367 # 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
368 # 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
369 # 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
370 # no pattern or command for that.
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
371
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
372 @f77_rules_frag@
994
6ada1ed8eba6 [project @ 1994-12-16 01:24:27 by jwe]
jwe
parents: 860
diff changeset
373
1668
6e8ac624ed9b [project @ 1995-12-26 06:35:24 by jwe]
jwe
parents: 1667
diff changeset
374 # How to make .o files:
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
375
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
376 %.o : %.c
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3597
diff changeset
377 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
378
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
379 %.o : %.cc
3615
c3b1f34a4748 [project @ 2000-03-21 08:19:19 by jwe]
jwe
parents: 3597
diff changeset
380 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
381
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
382 pic/%.o : %.c
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
383 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
384
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
385 pic/%.o : %.cc
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
386 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
387
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
388 # 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
389
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
390 %.d : %.cc
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
391 @echo making $@ from $<
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
392 @rm -f $@
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
393 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
394 $(SED) \
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
395 $(DEPEND_EXTRA_SED_PATTERN) \
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
396 -e 's,^[^:]*/\(.*\.o\):,\1:,' \
4050
6481f41a79f3 [project @ 2002-08-17 02:18:18 by jwe]
jwe
parents: 4014
diff changeset
397 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 3892
diff changeset
398 @mv $@-t $@
308
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
399
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
400 # And one for .c files.too:
3916fadea706 [project @ 1994-01-19 01:28:46 by jwe]
jwe
parents: 281
diff changeset
401
1984
1c121da7b952 [project @ 1996-02-29 14:57:47 by jwe]
jwe
parents: 1892
diff changeset
402 %.d : %.c
518
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
403 @echo making $@ from $<
2349d5721cd9 [project @ 1994-07-19 14:31:14 by jwe]
jwe
parents: 507
diff changeset
404 @rm -f $@
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
405 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
406 $(SED) \
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
407 $(DEPEND_EXTRA_SED_PATTERN) \
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
408 -e 's,^[^:]*/\(.*\.o\):,\1:,' \
4014
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 3892
diff changeset
409 -e 's,$*\.o,pic/& & $@,g' > $@-t
8eaf7182d48a [project @ 2002-08-01 20:55:57 by jwe]
jwe
parents: 3892
diff changeset
410 @mv $@-t $@
1166
4e39d71f1ff2 [project @ 1995-03-10 16:32:58 by jwe]
jwe
parents: 1163
diff changeset
411
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
412 define do-subdir-for-command
4414
f071adceaa04 [project @ 2003-05-16 20:11:35 by jwe]
jwe
parents: 4413
diff changeset
413 echo making $@ in $d; $(MAKE) -C $d $@;
1166
4e39d71f1ff2 [project @ 1995-03-10 16:32:58 by jwe]
jwe
parents: 1163
diff changeset
414 endef
1685
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
415
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
416 define subdir-for-command
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
417 $(foreach d, $(SUBDIRS), $(do-subdir-for-command))
5738406d6759 [project @ 1995-12-30 04:12:43 by jwe]
jwe
parents: 1679
diff changeset
418 endef
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
419
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
420 define simple-move-if-change-rule
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
421 if [ -s $@-t ]; then \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
422 $(top_srcdir)/move-if-change $@-t $@; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
423 else \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
424 echo "$@-t is empty!" 1>&2; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
425 rm -f $@-t; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
426 exit 1; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
427 fi
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
428 endef
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
429
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
430 define builddir-move-if-change-rule
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
431 if [ -s $(@F)-t ]; then \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
432 $(top_srcdir)/move-if-change $(@F)-t $(@F); \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
433 else \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
434 echo "$(@F)-t is empty!" 1>&2; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
435 rm -f $(@F)-t; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
436 exit 1; \
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
437 fi
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
438 endef
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
439
2862
95e85daad148 [project @ 1997-04-15 22:00:57 by jwe]
jwe
parents: 2831
diff changeset
440 # 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
441 # 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
442 # 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
443
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
444 define do-subst-config-vals
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
445 echo "making $@ from $<"
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
446 $(SED) < $< \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
447 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
448 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
449 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
450 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
451 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
452 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
453 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
454 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
455 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
456 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
457 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
458 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
459 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
460 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
461 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6028
diff changeset
462 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
463 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
464 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
465 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
466 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
467 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
468 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
469 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
470 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
471 -e "s|%OCTAVE_CONF_DLFCN_INCFLAGS%|\"${DLFCN_INCFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
472 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
473 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
474 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
475 -e "s|%OCTAVE_CONF_F2C%|\"${F2C}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
476 -e "s|%OCTAVE_CONF_F2CFLAGS%|\"${F2CFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
477 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \
5498
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5495
diff changeset
478 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
479 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
480 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
481 -e "s|%OCTAVE_CONF_FFTW_LIBS%|\"${FFTW_LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
482 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
483 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
484 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
485 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \
6311
e2a1aca62551 [project @ 2007-02-15 21:18:34 by jwe]
jwe
parents: 6279
diff changeset
486 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
487 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
488 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
489 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
490 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
491 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
492 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
493 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
494 -e "s|%OCTAVE_CONF_LIBDLFCN%|\"${LIBDLFCN}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
495 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
496 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
497 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
498 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
499 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
500 -e "s|%OCTAVE_CONF_LIBREADLINE%|\"${LIBREADLINE}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
501 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
502 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
503 -e "s|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"${MKOCTFILE_DL_LDFLAGS}\"|" \
6311
e2a1aca62551 [project @ 2007-02-15 21:18:34 by jwe]
jwe
parents: 6279
diff changeset
504 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \
e2a1aca62551 [project @ 2007-02-15 21:18:34 by jwe]
jwe
parents: 6279
diff changeset
505 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \
e2a1aca62551 [project @ 2007-02-15 21:18:34 by jwe]
jwe
parents: 6279
diff changeset
506 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
507 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
508 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
509 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
510 -e "s|%OCTAVE_CONF_RUNTEST%|\"${RUNTEST}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
511 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
512 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
513 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
514 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
515 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
516 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
517 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
518 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
519 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
520 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
521 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
522 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
523 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
524 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
525 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
526 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
527 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
528 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
529 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
530 $(simple-move-if-change-rule)
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
531 endef
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
532
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
533 define do-subst-default-vals
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2160
diff changeset
534 echo "making $@ from $<"
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4050
diff changeset
535 $(SED) < $< > $@-t \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
536 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
537 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
538 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
539 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \
5847
62e7b9307d00 [project @ 2006-06-08 14:28:07 by jwe]
jwe
parents: 5844
diff changeset
540 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
541 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
542 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
543 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
544 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
545 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
546 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
547 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
548 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
549 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
550 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
551 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
552 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
553 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
554 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
555 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \
5909
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5847
diff changeset
556 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
557 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
558 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
559 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
560 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
561 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
562 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
563 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
564 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
565 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
566 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
567 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \
5658
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5610
diff changeset
568 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \
7b45fda21557 [project @ 2006-03-10 03:57:23 by jwe]
jwe
parents: 5610
diff changeset
569 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5376
diff changeset
570 -e "s|%OCTAVE_VERSION%|\"${version}\"|"
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
571 $(simple-move-if-change-rule)
2157
a50f869537b9 [project @ 1996-05-13 09:17:52 by jwe]
jwe
parents: 2156
diff changeset
572 endef
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
573
5708
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
574 define do-subst-texinfo-vals
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
575 echo "making $@ from $<"
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
576 $(SED) < $< \
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
577 -e "s|%OCTAVE_HOME%|${prefix}|" \
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
578 -e "s|%OCTAVE_VERSION%|${version}|" \
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
579 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
580 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
581 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" | \
5942
a02a305e06ee [project @ 2006-08-18 18:57:06 by jwe]
jwe
parents: 5934
diff changeset
582 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
583 $(simple-move-if-change-rule)
5708
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
584 endef
dec8dd15a574 [project @ 2006-03-22 22:25:58 by jwe]
jwe
parents: 5658
diff changeset
585
5776
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
586 define do-subst-script-vals
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
587 echo "making $@ from $<"
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
588 $(SED) < $< \
6028
3dbbbec85190 [project @ 2006-10-04 13:42:21 by jwe]
jwe
parents: 6024
diff changeset
589 -e "s|%library_path_var%|${library_path_var}|g" \
6155
ab5008998876 [project @ 2006-11-13 18:49:52 by jwe]
jwe
parents: 6152
diff changeset
590 -e "s|%liboctinterp%|${LIBPRE}octinterp.${SHLEXT}|g" \
ab5008998876 [project @ 2006-11-13 18:49:52 by jwe]
jwe
parents: 6152
diff changeset
591 -e "s|%liboctave%|${LIBPRE}octave.${SHLEXT}|g" \
ab5008998876 [project @ 2006-11-13 18:49:52 by jwe]
jwe
parents: 6152
diff changeset
592 -e "s|%libcruft%|${LIBPRE}cruft.${SHLEXT}|g" \
5776
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
593 -e "s|%srcdir%|${srcdir}|" \
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
594 -e "s|%top_srcdir%|${top_srcdir}|" \
5793
395382df0d8a [project @ 2006-05-06 14:55:35 by dbateman]
dbateman
parents: 5776
diff changeset
595 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \
5776
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
596 -e "s|%builddir%|$(shell pwd)|" > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
597 $(simple-move-if-change-rule)
5776
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
598 endef
1182d6852172 [project @ 2006-04-26 01:23:17 by jwe]
jwe
parents: 5708
diff changeset
599
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
600 define do-subst-f77-mangling
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
601 echo "making $@ from $<"
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
602 $(SED) < $< \
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
603 -e "s|%F77_TOLOWER%|${F77_TOLOWER}|g" \
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
604 -e "s|%F77_APPEND_UNDERSCORE%|${F77_APPEND_UNDERSCORE}|" \
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
605 -e "s|%F77_APPEND_EXTRA_UNDERSCORE%|${F77_APPEND_EXTRA_UNDERSCORE}|" > $@-t
6152
2eb0723b4fad [project @ 2006-11-11 19:07:17 by jwe]
jwe
parents: 6141
diff changeset
606 $(simple-move-if-change-rule)
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
607 endef
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6087
diff changeset
608
5597
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
609 define do-mkpkgadd
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
610 $(top_srcdir)/mkpkgadd $(srcdir) > PKG_ADD.t
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
611 if [ -n "`cat PKG_ADD.t`" ]; then \
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
612 mv PKG_ADD.t PKG_ADD ; \
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
613 else \
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
614 rm -f PKG_ADD.t ; \
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
615 fi
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
616 endef
e0e48ea2a93c [project @ 2006-01-13 21:17:37 by jwe]
jwe
parents: 5585
diff changeset
617
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
618 define do-script-install
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
619 $(top_srcdir)/mkinstalldirs \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
620 $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir))
6279
195382e92d51 [project @ 2007-02-08 03:47:19 by jwe]
jwe
parents: 6155
diff changeset
621 for f in $(FCN_FILES); do \
195382e92d51 [project @ 2007-02-08 03:47:19 by jwe]
jwe
parents: 6155
diff changeset
622 fbase=`basename $$f`; \
195382e92d51 [project @ 2007-02-08 03:47:19 by jwe]
jwe
parents: 6155
diff changeset
623 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \
195382e92d51 [project @ 2007-02-08 03:47:19 by jwe]
jwe
parents: 6155
diff changeset
624 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
625 done
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
626 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
627 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
628 mv $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
629 else \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
630 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
631 fi
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
632 endef
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
633
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
634 define do-script-uninstall
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
635 for f in $(FCN_FILES_NO_DIR); \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 4411
diff changeset
636 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
637 done
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6311
diff changeset
638 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD
4227
399793c2c95a [project @ 2002-12-18 03:31:55 by jwe]
jwe
parents: 4199
diff changeset
639 endef