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