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