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