860
|
1 # @configure_input@ |
5
|
2 # |
|
3 # Common configuration rules for all of octave's Makefiles. |
|
4 # |
|
5 # John W. Eaton |
1450
|
6 # jwe@bevo.che.wisc.edu |
|
7 # University of Wisconsin-Madison |
5
|
8 # Department of Chemical Engineering |
1450
|
9 |
5
|
10 SHELL = /bin/sh |
|
11 |
3029
|
12 # A shell command to extract the version number from version.h. |
|
13 getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
|
14 |
|
15 # Look for version.h to get version information. |
|
16 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h |
|
17 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) |
|
18 version := $(shell $(getversion) $(version_file)) |
|
19 |
5
|
20 #### Start of system configuration section. #### |
|
21 |
2577
|
22 EXE = @EXE@ |
|
23 |
5
|
24 LEX = @LEX@ |
|
25 LFLAGS = @LFLAGS@ |
|
26 LEXLIB = @LEXLIB@ |
|
27 |
|
28 YACC = @YACC@ |
|
29 YFLAGS = -dv |
|
30 |
1462
|
31 AR = @AR@ |
|
32 ARFLAGS = @ARFLAGS@ |
|
33 |
5
|
34 RANLIB = @RANLIB@ |
|
35 |
1722
|
36 LN_S = @LN_S@ |
|
37 |
5
|
38 RUNTEST = @RUNTEST@ |
|
39 |
2518
|
40 TEXI2DVI = $(top_srcdir)/texi2dvi |
|
41 |
5
|
42 DEFAULT_PAGER = @DEFAULT_PAGER@ |
|
43 |
1679
|
44 WITH_DL = @WITH_DL@ |
|
45 WITH_SHL = @WITH_SHL@ |
|
46 |
|
47 WITH_DYNAMIC_LINKING = @WITH_DYNAMIC_LINKING@ |
702
|
48 |
1679
|
49 OCTAVE_LITE = @OCTAVE_LITE@ |
702
|
50 |
3034
|
51 STATIC_LIBS = @STATIC_LIBS@ |
|
52 |
1679
|
53 SHARED_LIBS = @SHARED_LIBS@ |
|
54 SHLEXT = @SHLEXT@ |
3029
|
55 SHLEXT_VER = $(SHLEXT).$(version) |
|
56 |
|
57 LIBEXT = a |
1667
|
58 |
5
|
59 # Fortran to C translator and associated flags. |
|
60 |
|
61 F2C = @F2C@ |
|
62 F2CFLAGS = @F2CFLAGS@ |
|
63 |
|
64 # Fortran compiler flags. |
|
65 |
1163
|
66 FC = @FC@ |
798
|
67 F77 = @F77@ |
5
|
68 FFLAGS = @FFLAGS@ |
1832
|
69 FPICFLAG = @FPICFLAG@ |
2566
|
70 FORTRAN_MAIN_FLAG = @FORTRAN_MAIN_FLAG@ |
2610
|
71 ALL_FFLAGS = $(FFLAGS) |
5
|
72 |
|
73 # cc and associated flags. |
|
74 |
2064
|
75 DLFCN_INCFLAGS = @DLFCN_INCFLAGS@ |
3215
|
76 GLOB_INCFLAGS = @GLOB_INCFLAGS@ |
2064
|
77 |
236
|
78 # Clean up INCFLAGS a bit if we are not compiling in a separate |
|
79 # directory. |
|
80 ifeq ($(srcdir),.) |
2546
|
81 TMP_IF_1 = -I. |
236
|
82 else |
2546
|
83 TMP_IF_1 = -I. -I$(srcdir) |
236
|
84 endif |
404
|
85 ifeq ($(TOPDIR),$(top_srcdir)) |
1832
|
86 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
87 -I$(TOPDIR)/libcruft/misc |
236
|
88 else |
507
|
89 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
90 -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \ |
2546
|
91 -I$(top_srcdir)/liboctave -I$(top_srcdir)/src \ |
3156
|
92 -I$(top_srcdir)/libcruft/misc |
236
|
93 endif |
3156
|
94 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS) |
236
|
95 |
5
|
96 LIBFLAGS = -L$(TOPDIR) |
236
|
97 |
5
|
98 DEFS = @DEFS@ |
|
99 |
2032
|
100 UGLY_DEFS = @UGLY_DEFS@ |
|
101 |
5
|
102 CC = @CC@ |
1891
|
103 CC_VERSION = @CC_VERSION@ |
5
|
104 CFLAGS = @CFLAGS@ |
1832
|
105 CPICFLAG = @CPICFLAG@ |
3126
|
106 XTRA_CFLAGS = @XTRA_CFLAGS@ |
|
107 ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
|
108 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
798
|
109 |
198
|
110 CXX = @CXX@ |
1891
|
111 CXX_VERSION = @CXX_VERSION@ |
518
|
112 CXXCPP = @CXXCPP@ |
198
|
113 CXXFLAGS = @CXXFLAGS@ |
1832
|
114 CXXPICFLAG = @CXXPICFLAG@ |
3126
|
115 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
|
116 ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
117 UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
118 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
5
|
119 |
858
|
120 CPPFLAGS = @CPPFLAGS@ |
|
121 |
5
|
122 LDFLAGS = @LDFLAGS@ |
708
|
123 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3126
|
124 ALL_LDFLAGS = $(LIBFLAGS) $(FORTRAN_MAIN_FLAG) \ |
2592
|
125 $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5
|
126 |
2676
|
127 SH_LD = @SH_LD@ |
|
128 SH_LDFLAGS = @SH_LDFLAGS@ |
|
129 |
3036
|
130 SONAME_FLAGS = @SONAME_FLAGS@ |
|
131 |
3233
|
132 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
|
133 |
2674
|
134 RLD_FLAG = @RLD_FLAG@ |
|
135 |
5
|
136 FLIBS = @FLIBS@ |
708
|
137 |
2147
|
138 TERMLIBS = @TERMLIBS@ |
2930
|
139 LIBDLFCN = @LIBDLFCN@ |
3215
|
140 LIBGLOB = @LIBGLOB@ |
2147
|
141 LIBPLPLOT = @LIBPLPLOT@ |
2930
|
142 LIBREADLINE = @LIBREADLINE@ |
3156
|
143 LIBKPATHSEA = @LIBKPATHSEA@ |
|
144 LIBOCTINTERP = @LIBOCTINTERP@ |
|
145 LIBOCTAVE = @LIBOCTAVE@ |
|
146 LIBCRUFT = @LIBCRUFT@ |
3111
|
147 SPECIAL_MATH_LIB = @SPECIAL_MATH_LIB@ |
5
|
148 |
2155
|
149 # The arguments passed to configure. |
2156
|
150 config_opts = @config_opts@ |
2155
|
151 |
666
|
152 # ==================== Where To Install Things ==================== |
5
|
153 |
666
|
154 # The default location for installation. Everything is placed in |
|
155 # subdirectories of this directory. The default values for many of |
|
156 # the variables below are expressed in terms of this one, so you may |
|
157 # not need to change them. This defaults to /usr/local. |
|
158 prefix = @prefix@ |
5
|
159 |
666
|
160 # Like `prefix', but used for architecture-specific files. |
|
161 exec_prefix = @exec_prefix@ |
|
162 |
|
163 # Where to install Octave and other binaries that people will want to |
|
164 # run directly. |
|
165 bindir = @bindir@ |
5
|
166 |
666
|
167 # Where to install architecture-independent data files. ${fcnfiledir} |
|
168 # and ${localfcnfiledir} are subdirectories of this. |
|
169 datadir = @datadir@ |
5
|
170 |
3141
|
171 libdir = @libdir@ |
|
172 |
666
|
173 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141
|
174 # and other architecture-dependent data. |
|
175 octlibdir = @octlibdir@ |
5
|
176 |
1720
|
177 # Where to install and expect executable programs to be run by Octave |
|
178 # rather than directly by users. |
|
179 libexecdir = @libexecdir@ |
|
180 |
2141
|
181 # The prefix for Octave's include file directory. The default is |
|
182 # ${prefix}/include |
2223
|
183 includedir = @includedir@ |
2141
|
184 |
666
|
185 # Where to install Octave's man pages, and what extension they should |
|
186 # have. The default is ${prefix}/man/man1 |
|
187 mandir = @mandir@ |
2223
|
188 man1dir = @man1dir@ |
|
189 man1ext = @man1ext@ |
5
|
190 |
666
|
191 # Where to install and expect the info files describing Octave.. |
|
192 infodir = @infodir@ |
|
193 |
2512
|
194 # The fill path to the default info file. |
|
195 infofile = @infofile@ |
|
196 |
666
|
197 # ==================== Octave-specific directories ==================== |
|
198 |
2993
|
199 # These variables hold the values specific to Octave. They are |
666
|
200 # based on the values of the standard Make variables above. |
|
201 |
3597
|
202 # Where to install Octave's include files (they will actually be |
|
203 # installed in a subdirectory called octave). The default is |
2993
|
204 # ${includedir}/octave-${version} |
|
205 octincludedir = @octincludedir@ |
|
206 |
666
|
207 # Where to install the function file distributed with |
|
208 # Octave. This includes the Octave version, so that the |
|
209 # function files for different versions of Octave will install |
|
210 # themselves in separate directories. |
|
211 fcnfiledir = @fcnfiledir@ |
|
212 |
|
213 # Directories Octave should search for function files specific |
|
214 # to this site (i.e. customizations), before consulting |
|
215 # ${fcnfiledir}. This should be a colon-separated list of |
|
216 # directories. |
827
|
217 localfcnfiledir = @localfcnfiledir@ |
3597
|
218 localverfcnfiledir = @localverfcnfiledir@ |
666
|
219 localfcnfilepath = @localfcnfilepath@ |
5
|
220 |
666
|
221 # Where to put executables to be run by Octave rather than |
|
222 # the user. This path usually includes the Octave version |
|
223 # and configuration name, so that multiple configurations |
|
224 # for multiple versions of Octave may be installed at once. |
|
225 archlibdir = @archlibdir@ |
|
226 |
2439
|
227 # Where to put executables to be run by Octave rather than by the |
|
228 # user that are specific to this site. |
|
229 localarchlibdir = @localarchlibdir@ |
3597
|
230 localverarchlibdir = @localverarchlibdir@ |
2439
|
231 |
666
|
232 # Where to put object files that will by dynamically loaded. |
|
233 # This path usually includes the Octave version and configuration |
|
234 # name, so that multiple configurations for multiple versions of |
|
235 # Octave may be installed at once. |
|
236 octfiledir = @octfiledir@ |
5
|
237 |
666
|
238 # Directories Octave should search for object files that will be |
|
239 # dynamically loaded and that are specific to this site |
|
240 # (i.e. customizations), before consulting ${octfiledir}. This should |
|
241 # be a colon-separated list of directories. |
827
|
242 localoctfiledir = @localoctfiledir@ |
3597
|
243 localveroctfiledir = @localveroctfiledir@ |
666
|
244 localoctfilepath = @localoctfilepath@ |
|
245 |
|
246 # Where Octave will search to find its function files. Before |
|
247 # changing this, check to see if your purpose wouldn't |
|
248 # better be served by changing localfcnfilepath. This |
|
249 # should be a colon-separated list of directories. |
|
250 fcnfilepath = @fcnfilepath@ |
5
|
251 |
685
|
252 # Where Octave will search to find image files.es. |
827
|
253 imagedir = @imagedir@ |
685
|
254 imagepath = @imagepath@ |
|
255 |
5
|
256 # The type of computer we are running on. |
3136
|
257 canonical_host_type = @canonical_host_type@ |
5
|
258 |
3591
|
259 # The -I flags to use for the mkoctfile script. |
3597
|
260 MKOCTFILE_INCFLAGS = \ |
|
261 -I$(octincludedir) -I$(octincludedir)/octave -I$(includedir) |
3591
|
262 |
5
|
263 # The following pattern rules and the substitution functions require |
|
264 # GNU make. If you don't have it, get it! |
|
265 |
1679
|
266 # Rules for making object files from Fortran source. |
994
|
267 # |
|
268 # If we are using f2c there will be a command for the `%.c : %.f' |
|
269 # pattern and no command for the `%.o : %.f' pattern, so that make |
|
270 # will not invoke the fortran compiler by mistake. |
|
271 # |
|
272 # If we are not using f2c, it should be ok to have an empty rule for |
|
273 # the pattern `%.c : %.f', but we don't want to replace make's default |
|
274 # rule for making object from Fortran source files, so there should be |
|
275 # no pattern or command for that. |
5
|
276 |
1679
|
277 @f77_rules_frag@ |
994
|
278 |
1668
|
279 # How to make .o files: |
5
|
280 |
1984
|
281 %.o : %.c |
3615
|
282 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5
|
283 |
1984
|
284 %.o : %.cc |
3615
|
285 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308
|
286 |
1984
|
287 pic/%.o : %.c |
|
288 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ |
|
289 |
|
290 pic/%.o : %.cc |
|
291 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ |
|
292 |
308
|
293 # Here is a rule for generating dependencies for .cc files: |
|
294 |
1984
|
295 %.d : %.cc |
518
|
296 @echo making $@ from $< |
|
297 @rm -f $@ |
2647
|
298 @$(CXX) -M $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
|
299 sed -e 's,$*\.o,pic/& & $@,g' > $@.tmp |
518
|
300 @mv $@.tmp $@ |
308
|
301 |
|
302 # And one for .c files.too: |
|
303 |
1984
|
304 %.d : %.c |
518
|
305 @echo making $@ from $< |
|
306 @rm -f $@ |
2647
|
307 @$(CC) -M $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
|
308 sed -e 's,$*\.o,pic/& & $@,g' > $@.tmp |
518
|
309 @mv $@.tmp $@ |
1166
|
310 |
1685
|
311 define do-subdir-for-command |
|
312 echo making $@ in $d; cd $d; $(MAKE) $@; cd ..; |
1166
|
313 endef |
1685
|
314 |
|
315 define subdir-for-command |
|
316 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) |
|
317 endef |
2157
|
318 |
2862
|
319 # Yes, the second sed command near the end is needed, to avoid limits |
|
320 # in command lengths for some versions of sed. UGLY_DEFS is often |
|
321 # quite large, so it makes sense to split this command there. |
|
322 |
2157
|
323 define do-subst-config-vals |
2223
|
324 echo "making $@ from $<" |
2439
|
325 sed < $< \ |
3584
|
326 -e "s;%OCTAVE_CONF_ALL_CFLAGS%;\"${ALL_CFLAGS}\";" \ |
|
327 -e "s;%OCTAVE_CONF_ALL_CXXFLAGS%;\"${ALL_CXXFLAGS}\";" \ |
|
328 -e "s;%OCTAVE_CONF_ALL_FFLAGS%;\"${ALL_FFLAGS}\";" \ |
|
329 -e "s;%OCTAVE_CONF_ALL_LDFLAGS%;\"${ALL_LDFLAGS}\";" \ |
|
330 -e "s;%OCTAVE_CONF_AR%;\"${AR}\";" \ |
|
331 -e "s;%OCTAVE_CONF_ARFLAGS%;\"${ARFLAGS}\";" \ |
|
332 -e "s;%OCTAVE_CONF_CC%;\"${CC}\";" \ |
|
333 -e "s;%OCTAVE_CONF_CC_VERSION%;\"${CC_VERSION}\";" \ |
|
334 -e "s;%OCTAVE_CONF_CFLAGS%;\"${CFLAGS}\";" \ |
|
335 -e "s;%OCTAVE_CONF_CPICFLAG%;\"${CPICFLAG}\";" \ |
|
336 -e "s;%OCTAVE_CONF_CPPFLAGS%;\"${CPPFLAGS}\";" \ |
|
337 -e "s;%OCTAVE_CONF_CXX%;\"${CXX}\";" \ |
|
338 -e "s;%OCTAVE_CONF_CXXCPP%;\"${CXXCPP}\";" \ |
|
339 -e "s;%OCTAVE_CONF_CXXFLAGS%;\"${CXXFLAGS}\";" \ |
|
340 -e "s;%OCTAVE_CONF_CXXPICFLAG%;\"${CXXPICFLAG}\";" \ |
|
341 -e "s;%OCTAVE_CONF_CXX_VERSION%;\"${CXX_VERSION}\";" \ |
|
342 -e "s;%OCTAVE_CONF_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
|
343 -e "s;%OCTAVE_CONF_DLFCN_INCFLAGS%;\"${DLFCN_INCFLAGS}\";" \ |
|
344 -e "s;%OCTAVE_CONF_EXE%;\"${EXE}\";" \ |
|
345 -e "s;%OCTAVE_CONF_F2C%;\"${F2C}\";" \ |
|
346 -e "s;%OCTAVE_CONF_F2CFLAGS%;\"${F2CFLAGS}\";" \ |
|
347 -e "s;%OCTAVE_CONF_F77%;\"${F77}\";" \ |
|
348 -e "s;%OCTAVE_CONF_FC%;\"${FC}\";" \ |
|
349 -e "s;%OCTAVE_CONF_FFLAGS%;\"${FFLAGS}\";" \ |
|
350 -e "s;%OCTAVE_CONF_FLIBS%;\"${FLIBS}\";" \ |
|
351 -e "s;%OCTAVE_CONF_FORTRAN_MAIN_FLAG%;\"${FORTRAN_MAIN_FLAG}\";" \ |
|
352 -e "s;%OCTAVE_CONF_FPICFLAG%;\"${FPICFLAG}\";" \ |
|
353 -e "s;%OCTAVE_CONF_GLOB_INCFLAGS%;\"${GLOB_INCFLAGS}\";" \ |
|
354 -e "s;%OCTAVE_CONF_INCFLAGS%;\"${INCFLAGS}\";" \ |
|
355 -e "s;%OCTAVE_CONF_LDFLAGS%;\"${LDFLAGS}\";" \ |
|
356 -e "s;%OCTAVE_CONF_LD_STATIC_FLAG%;\"${LD_STATIC_FLAG}\";" \ |
|
357 -e "s;%OCTAVE_CONF_LEX%;\"${LEX}\";" \ |
|
358 -e "s;%OCTAVE_CONF_LEXLIB%;\"${LEXLIB}\";" \ |
|
359 -e "s;%OCTAVE_CONF_LFLAGS%;\"${LFLAGS}\";" \ |
|
360 -e "s;%OCTAVE_CONF_LIBCRUFT%;\"${LIBCRUFT}\";" \ |
|
361 -e "s;%OCTAVE_CONF_LIBDLFCN%;\"${LIBDLFCN}\";" \ |
|
362 -e "s;%OCTAVE_CONF_LIBEXT%;\"${LIBEXT}\";" \ |
|
363 -e "s;%OCTAVE_CONF_LIBFLAGS%;\"${LIBFLAGS}\";" \ |
|
364 -e "s;%OCTAVE_CONF_LIBGLOB%;\"${LIBGLOB}\";" \ |
|
365 -e "s;%OCTAVE_CONF_LIBKPATHSEA%;\"${LIBKPATHSEA}\";" \ |
|
366 -e "s;%OCTAVE_CONF_LIBOCTAVE%;\"${LIBOCTAVE}\";" \ |
|
367 -e "s;%OCTAVE_CONF_LIBOCTINTERP%;\"${LIBOCTINTERP}\";" \ |
|
368 -e "s;%OCTAVE_CONF_LIBPLPLOT%;\"${LIBPLPLOT}\";" \ |
|
369 -e "s;%OCTAVE_CONF_LIBREADLINE%;\"${LIBREADLINE}\";" \ |
|
370 -e "s;%OCTAVE_CONF_LIBS%;\"${LIBS}\";" \ |
|
371 -e "s;%OCTAVE_CONF_LN_S%;\"${LN_S}\";" \ |
3591
|
372 -e "s;%OCTAVE_CONF_MKOCTFILE_INCFLAGS%;\"${MKOCTFILE_INCFLAGS}\";" \ |
3584
|
373 -e "s;%OCTAVE_CONF_OCTAVE_LITE%;\"${OCTAVE_LITE}\";" \ |
|
374 -e "s;%OCTAVE_CONF_RANLIB%;\"${RANLIB}\";" \ |
|
375 -e "s;%OCTAVE_CONF_RDYNAMIC_FLAG%;\"${RDYNAMIC_FLAG}\";" \ |
|
376 -e "s;%OCTAVE_CONF_RLD_FLAG%;\"${RLD_FLAG}\";" \ |
|
377 -e "s;%OCTAVE_CONF_RUNTEST%;\"${RUNTEST}\";" \ |
|
378 -e "s;%OCTAVE_CONF_SHARED_LIBS%;\"${SHARED_LIBS}\";" \ |
|
379 -e "s;%OCTAVE_CONF_SHLEXT%;\"${SHLEXT}\";" \ |
|
380 -e "s;%OCTAVE_CONF_SHLEXT_VER%;\"${SHLEXT_VER}\";" \ |
|
381 -e "s;%OCTAVE_CONF_SH_LD%;\"${SH_LD}\";" \ |
|
382 -e "s;%OCTAVE_CONF_SH_LDFLAGS%;\"${SH_LDFLAGS}\";" \ |
|
383 -e "s;%OCTAVE_CONF_SONAME_FLAGS%;\"${SONAME_FLAGS}\";" \ |
|
384 -e "s;%OCTAVE_CONF_SPECIAL_MATH_LIB%;\"${SPECIAL_MATH_LIB}\";" \ |
|
385 -e "s;%OCTAVE_CONF_STATIC_LIBS%;\"${STATIC_LIBS}\";" \ |
|
386 -e "s;%OCTAVE_CONF_TERMLIBS%;\"${TERMLIBS}\";" \ |
|
387 -e "s;%OCTAVE_CONF_UGLY_DEFS%;\"${UGLY_DEFS}\";" \ |
|
388 -e "s;%OCTAVE_CONF_VERSION%;\"${version}\";" \ |
|
389 -e "s;%OCTAVE_CONF_WITH_DL%;\"${WITH_DL}\";" \ |
|
390 -e "s;%OCTAVE_CONF_WITH_DYNAMIC_LINKING%;\"${WITH_DYNAMIC_LINKING}\";" \ |
|
391 -e "s;%OCTAVE_CONF_WITH_SHL%;\"${WITH_SHL}\";" \ |
|
392 -e "s;%OCTAVE_CONF_XTRA_CFLAGS%;\"${XTRA_CFLAGS}\";" \ |
|
393 -e "s;%OCTAVE_CONF_XTRA_CXXFLAGS%;\"${XTRA_CXXFLAGS}\";" \ |
|
394 -e "s;%OCTAVE_CONF_YACC%;\"${YACC}\";" \ |
|
395 -e "s;%OCTAVE_CONF_YFLAGS%;\"${YFLAGS}\";" \ |
|
396 -e "s;%OCTAVE_CONF_config_opts%;\"${config_opts}\";" | \ |
|
397 sed -e "s;%OCTAVE_CONF_DEFS%;\"${UGLY_DEFS}\";" > $@.tmp |
2157
|
398 $(top_srcdir)/move-if-change $@.tmp $@ |
|
399 endef |
|
400 |
|
401 define do-subst-default-vals |
2223
|
402 echo "making $@ from $<" |
|
403 sed < $< > $@.tmp \ |
2862
|
404 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \ |
|
405 -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \ |
3584
|
406 -e "s;%OCTAVE_CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \ |
2157
|
407 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \ |
3584
|
408 -e "s;%OCTAVE_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
2862
|
409 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \ |
|
410 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \ |
|
411 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \ |
3584
|
412 -e "s;%OCTAVE_IMAGEDIR%;\"${imagedir}\";" \ |
2862
|
413 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \ |
3584
|
414 -e "s;%OCTAVE_INCLUDEDIR%;\"${includedir}\";" \ |
2157
|
415 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \ |
2512
|
416 -e "s;%OCTAVE_INFOFILE%;\"${infofile}\";" \ |
2862
|
417 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \ |
3584
|
418 -e "s;%OCTAVE_LIBEXECDIR%;\"${libexecdir}\";" \ |
2862
|
419 -e "s;%OCTAVE_LOCALARCHLIBDIR%;\"${localarchlibdir}\";" \ |
2157
|
420 -e "s;%OCTAVE_LOCALFCNFILEDIR%;\"${localfcnfiledir}\";" \ |
|
421 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \ |
3584
|
422 -e "s;%OCTAVE_LOCALOCTFILEDIR%;\"${localoctfiledir}\";" \ |
2862
|
423 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \ |
3597
|
424 -e "s;%OCTAVE_LOCALVERARCHLIBDIR%;\"${localverarchlibdir}\";" \ |
|
425 -e "s;%OCTAVE_LOCALVERFCNFILEDIR%;\"${localverfcnfiledir}\";" \ |
|
426 -e "s;%OCTAVE_LOCALVEROCTFILEDIR%;\"${localveroctfiledir}\";" \ |
3584
|
427 -e "s;%OCTAVE_MAN1DIR%;\"${man1dir}\";" \ |
|
428 -e "s;%OCTAVE_MAN1EXT%;\"${man1ext}\";" \ |
|
429 -e "s;%OCTAVE_MANDIR%;\"${mandir}\";" \ |
2157
|
430 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \ |
3584
|
431 -e "s;%OCTAVE_OCTINCLUDEDIR%;\"${octincludedir}\";" \ |
|
432 -e "s;%OCTAVE_OCTLIBDIR%;\"${octlibdir}\";" \ |
|
433 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" |
2157
|
434 $(top_srcdir)/move-if-change $@.tmp $@ |
|
435 endef |
2993
|
436 |
3597
|
437 # Make a relative symbolic link from $includedir/octave to |
|
438 # $octincludedir/octave. |
2993
|
439 |
|
440 # XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory |
|
441 # of $includedir. |
|
442 |
|
443 define mk-includedir-link |
3597
|
444 src=`echo $(octincludedir)/octave | sed 's|^$(includedir)/*||'`; \ |
3029
|
445 echo $$src; \ |
|
446 if [ "$$src" = "octave" ]; then \ |
|
447 true; \ |
2993
|
448 else \ |
3029
|
449 cd $(includedir); \ |
|
450 rm -f octave; \ |
|
451 $(LN_S) $$src octave; \ |
2993
|
452 fi |
|
453 endef |
3141
|
454 |
|
455 # Make a relative symbolic link from $libdir/octave to $octlibdir. |
|
456 |
|
457 # XXX FIXME XXX -- this assumes that $octlibdir is a subdirectory |
|
458 # of $libdir. |
|
459 |
|
460 define mk-libdir-link |
|
461 src=`echo $(octlibdir) | sed 's|^$(libdir)/*||'` ; \ |
|
462 echo $$src ; \ |
|
463 if [ "$$src" = "octave" ] ; then \ |
|
464 true ; \ |
|
465 else \ |
3152
|
466 if [ -d "$(libdir)/octave" ] ; then \ |
|
467 true ; \ |
|
468 else \ |
|
469 cd $(libdir) ; \ |
|
470 rm -f octave ; \ |
|
471 $(LN_S) $$src octave ; \ |
|
472 fi ; \ |
3141
|
473 fi |
|
474 endef |