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