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