Mercurial > octave-nkf
annotate Makeconf.in @ 7908:47a18b8c9000
ov-fcn-inline.cc (octave_fcn_inline::load_ascii): Avoid GCC warning
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Jul 2008 12:07:17 -0400 |
parents | e3a502930e2a |
children | e998e81224b5 |
rev | line source |
---|---|
860 | 1 # @configure_input@ |
5 | 2 # |
3 # Common configuration rules for all of octave's Makefiles. | |
4 # | |
7017 | 5 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
6 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton | |
7 # | |
7016 | 8 # This file is part of Octave. |
9 # | |
10 # Octave is free software; you can redistribute it and/or modify it | |
11 # under the terms of the GNU General Public License as published by the | |
12 # Free Software Foundation; either version 3 of the License, or (at | |
13 # your option) any later version. | |
14 # | |
15 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
17 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
18 # for more details. | |
19 # | |
20 # You should have received a copy of the GNU General Public License | |
21 # along with Octave; see the file COPYING. If not, see | |
22 # <http://www.gnu.org/licenses/>. | |
1450 | 23 |
5 | 24 SHELL = /bin/sh |
25 | |
4544 | 26 AWK = @AWK@ |
27 export AWK | |
28 | |
4084 | 29 SED = @SED@ |
4299 | 30 export SED |
4084 | 31 |
7244 | 32 FIND = @FIND@ |
33 export FIND | |
34 | |
5465 | 35 PERL = @PERL@ |
5495 | 36 PYTHON = @PYTHON@ |
5465 | 37 |
7361 | 38 GNUPLOT = @GNUPLOT@ |
39 | |
5468 | 40 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@ |
41 | |
3029 | 42 # A shell command to extract the version number from version.h. |
4449 | 43 getversion = $(SED) -e '/OCTAVE_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
44 | |
45 # A shell command to extract the API version number from version.h. | |
46 getapiversion = $(SED) -e '/OCTAVE_API_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q | |
3029 | 47 |
48 # Look for version.h to get version information. | |
49 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
50 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
51 version := $(shell $(getversion) $(version_file)) | |
5658 | 52 api_version := $(shell $(getapiversion) $(version_file)) |
3029 | 53 |
5 | 54 #### Start of system configuration section. #### |
55 | |
3892 | 56 EXEEXT = @EXEEXT@ |
2577 | 57 |
4098 | 58 BUILD_EXEEXT = @BUILD_EXEEXT@ |
59 | |
5 | 60 LEX = @LEX@ |
61 LFLAGS = @LFLAGS@ | |
62 LEXLIB = @LEXLIB@ | |
63 | |
64 YACC = @YACC@ | |
65 YFLAGS = -dv | |
66 | |
3675 | 67 GPERF = @GPERF@ |
68 | |
1462 | 69 AR = @AR@ |
70 ARFLAGS = @ARFLAGS@ | |
71 | |
3775 | 72 TEMPLATE_AR = @TEMPLATE_AR@ |
73 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ | |
74 | |
5 | 75 RANLIB = @RANLIB@ |
76 | |
1722 | 77 LN_S = @LN_S@ |
78 | |
5934 | 79 MAKEINFO = @MAKEINFO@ |
80 TEXI2DVI = @TEXI2DVI@ | |
81 TEXI2PDF = @TEXI2PDF@ | |
82 | |
83 GHOSTSCRIPT = @GHOSTSCRIPT@ | |
2518 | 84 |
5 | 85 DEFAULT_PAGER = @DEFAULT_PAGER@ |
86 | |
4128 | 87 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@ |
702 | 88 |
3034 | 89 STATIC_LIBS = @STATIC_LIBS@ |
90 | |
1679 | 91 SHARED_LIBS = @SHARED_LIBS@ |
92 SHLEXT = @SHLEXT@ | |
4126 | 93 SHLEXT_VER = @SHLEXT_VER@ |
4102 | 94 SHLLIB = @SHLLIB@ |
4627 | 95 SHLLIB_VER = @SHLLIB_VER@ |
4102 | 96 SHLBIN = @SHLBIN@ |
4126 | 97 SHLBIN_VER = @SHLBIN_VER@ |
98 SHLLINKEXT= | |
4102 | 99 |
3029 | 100 LIBEXT = a |
6051 | 101 LIBPRE = @LIBPRE@ |
1667 | 102 |
5 | 103 # Fortran to C translator and associated flags. |
104 | |
105 F2C = @F2C@ | |
106 F2CFLAGS = @F2CFLAGS@ | |
107 | |
108 # Fortran compiler flags. | |
109 | |
1163 | 110 FC = @FC@ |
798 | 111 F77 = @F77@ |
5 | 112 FFLAGS = @FFLAGS@ |
1832 | 113 FPICFLAG = @FPICFLAG@ |
2610 | 114 ALL_FFLAGS = $(FFLAGS) |
5498 | 115 F77_FLOAT_STORE_FLAG = @F77_FLOAT_STORE_FLAG@ |
5 | 116 |
6102 | 117 F77_TOLOWER=@F77_TOLOWER@ |
118 F77_APPEND_UNDERSCORE=@F77_TOLOWER@ | |
119 F77_APPEND_EXTRA_UNDERSCORE=@F77_TOLOWER@ | |
120 | |
5 | 121 # cc and associated flags. |
122 | |
236 | 123 # Clean up INCFLAGS a bit if we are not compiling in a separate |
124 # directory. | |
125 ifeq ($(srcdir),.) | |
2546 | 126 TMP_IF_1 = -I. |
236 | 127 else |
2546 | 128 TMP_IF_1 = -I. -I$(srcdir) |
236 | 129 endif |
404 | 130 ifeq ($(TOPDIR),$(top_srcdir)) |
5164 | 131 TMP_IF_2 = \ |
132 -I$(TOPDIR) \ | |
133 -I$(TOPDIR)/liboctave \ | |
134 -I$(TOPDIR)/src \ | |
135 -I$(TOPDIR)/libcruft/misc | |
236 | 136 else |
5164 | 137 TMP_IF_2 = \ |
138 -I$(TOPDIR) \ | |
139 -I$(TOPDIR)/liboctave \ | |
140 -I$(TOPDIR)/src \ | |
141 -I$(TOPDIR)/libcruft/misc \ | |
142 -I$(top_srcdir) \ | |
143 -I$(top_srcdir)/liboctave \ | |
144 -I$(top_srcdir)/src \ | |
145 -I$(top_srcdir)/libcruft/misc | |
236 | 146 endif |
7253 | 147 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) |
236 | 148 |
5 | 149 LIBFLAGS = -L$(TOPDIR) |
236 | 150 |
5 | 151 DEFS = @DEFS@ |
152 | |
2032 | 153 UGLY_DEFS = @UGLY_DEFS@ |
154 | |
5 | 155 CC = @CC@ |
1891 | 156 CC_VERSION = @CC_VERSION@ |
5 | 157 CFLAGS = @CFLAGS@ |
1832 | 158 CPICFLAG = @CPICFLAG@ |
3126 | 159 XTRA_CFLAGS = @XTRA_CFLAGS@ |
4626 | 160 WARN_CFLAGS = @WARN_CFLAGS@ |
6141 | 161 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
4626 | 162 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
798 | 163 |
4094 | 164 BUILD_CC = @BUILD_CC@ |
165 BUILD_CFLAGS = @BUILD_CFLAGS@ | |
4093 | 166 |
3775 | 167 DEPEND_FLAGS = @DEPEND_FLAGS@ |
168 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ | |
6087 | 169 INCLUDE_DEPS = @INCLUDE_DEPS@ |
170 ifeq ($(INCLUDE_DEPS),false) | |
171 omit_deps = true; | |
172 endif | |
3775 | 173 |
198 | 174 CXX = @CXX@ |
1891 | 175 CXX_VERSION = @CXX_VERSION@ |
518 | 176 CXXCPP = @CXXCPP@ |
198 | 177 CXXFLAGS = @CXXFLAGS@ |
1832 | 178 CXXPICFLAG = @CXXPICFLAG@ |
3126 | 179 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
4626 | 180 WARN_CXXFLAGS = @WARN_CXXFLAGS@ |
181 ALL_CXXFLAGS = \ | |
6141 | 182 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
4626 | 183 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
5 | 184 |
4094 | 185 BUILD_CXX = @BUILD_CXX@ |
186 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ | |
4093 | 187 |
858 | 188 CPPFLAGS = @CPPFLAGS@ |
189 | |
3705 | 190 LD_CXX = @LD_CXX@ |
5 | 191 LDFLAGS = @LDFLAGS@ |
708 | 192 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3887 | 193 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5 | 194 |
4298 | 195 BUILD_LDFLAGS = @BUILD_LDFLAGS@ |
196 | |
2676 | 197 SH_LD = @SH_LD@ |
198 SH_LDFLAGS = @SH_LDFLAGS@ | |
199 | |
4759 | 200 DL_LD = @DL_LD@ |
201 DL_LDFLAGS = @DL_LDFLAGS@ | |
202 | |
3036 | 203 SONAME_FLAGS = @SONAME_FLAGS@ |
204 | |
3233 | 205 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
206 | |
2674 | 207 RLD_FLAG = @RLD_FLAG@ |
208 | |
5 | 209 FLIBS = @FLIBS@ |
708 | 210 |
5451 | 211 LIBGLOB = @LIBGLOB@ |
3156 | 212 LIBOCTINTERP = @LIBOCTINTERP@ |
213 LIBOCTAVE = @LIBOCTAVE@ | |
214 LIBCRUFT = @LIBCRUFT@ | |
4102 | 215 LIBREADLINE = @LIBREADLINE@ |
216 TERMLIBS = @TERMLIBS@ | |
3726 | 217 |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
218 FT2_LIBS = @FT2_LIBS@ |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
219 GRAPHICS_LIBS = @GRAPHICS_LIBS@ |
6823 | 220 QHULL_LIBS = @QHULL_LIBS@ |
5585 | 221 REGEX_LIBS = @REGEX_LIBS@ |
3726 | 222 BLAS_LIBS = @BLAS_LIBS@ |
3827 | 223 FFTW_LIBS = @FFTW_LIBS@ |
5235 | 224 GLPK_LIBS = @GLPK_LIBS@ |
6043 | 225 CURL_LIBS = @CURL_LIBS@ |
5451 | 226 AMD_LIBS = @AMD_LIBS@ |
6024 | 227 CAMD_LIBS = @CAMD_LIBS@ |
5270 | 228 UMFPACK_LIBS = @UMFPACK_LIBS@ |
5451 | 229 COLAMD_LIBS = @COLAMD_LIBS@ |
230 CCOLAMD_LIBS = @CCOLAMD_LIBS@ | |
231 CHOLMOD_LIBS = @CHOLMOD_LIBS@ | |
5610 | 232 CXSPARSE_LIBS = @CXSPARSE_LIBS@ |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7698
diff
changeset
|
233 OPENGL_LIBS = @OPENGL_LIBS@ |
3726 | 234 LIBS = @LIBS@ |
5 | 235 |
5275 | 236 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@ |
237 | |
5708 | 238 TEXINFO_COLAMD = @TEXINFO_COLAMD@ |
239 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@ | |
240 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@ | |
6855 | 241 TEXINFO_QHULL = @TEXINFO_QHULL@ |
5708 | 242 |
2155 | 243 # The arguments passed to configure. |
2156 | 244 config_opts = @config_opts@ |
2155 | 245 |
666 | 246 # ==================== Where To Install Things ==================== |
5 | 247 |
666 | 248 # The default location for installation. Everything is placed in |
249 # subdirectories of this directory. The default values for many of | |
250 # the variables below are expressed in terms of this one, so you may | |
251 # not need to change them. This defaults to /usr/local. | |
252 prefix = @prefix@ | |
5 | 253 |
666 | 254 # Like `prefix', but used for architecture-specific files. |
255 exec_prefix = @exec_prefix@ | |
256 | |
257 # Where to install Octave and other binaries that people will want to | |
258 # run directly. | |
259 bindir = @bindir@ | |
5 | 260 |
4411 | 261 # Normally the directory for installing executables that system |
262 # administrators run. This is the same as libexecdir on Cygwin systems. | |
263 sbindir = @sbindir@ | |
264 | |
5844 | 265 # The root of the directory tree for read-only |
266 # architecture-independent data files. | |
267 datarootdir = @datarootdir@ | |
268 | |
666 | 269 # Where to install architecture-independent data files. ${fcnfiledir} |
270 # and ${localfcnfiledir} are subdirectories of this. | |
271 datadir = @datadir@ | |
5 | 272 |
3141 | 273 libdir = @libdir@ |
274 | |
666 | 275 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141 | 276 # and other architecture-dependent data. |
277 octlibdir = @octlibdir@ | |
5 | 278 |
1720 | 279 # Where to install and expect executable programs to be run by Octave |
280 # rather than directly by users. | |
281 libexecdir = @libexecdir@ | |
282 | |
2141 | 283 # The prefix for Octave's include file directory. The default is |
284 # ${prefix}/include | |
2223 | 285 includedir = @includedir@ |
2141 | 286 |
666 | 287 # Where to install Octave's man pages, and what extension they should |
288 # have. The default is ${prefix}/man/man1 | |
289 mandir = @mandir@ | |
2223 | 290 man1dir = @man1dir@ |
291 man1ext = @man1ext@ | |
5 | 292 |
666 | 293 # Where to install and expect the info files describing Octave.. |
294 infodir = @infodir@ | |
295 | |
2512 | 296 # The fill path to the default info file. |
297 infofile = @infofile@ | |
298 | |
666 | 299 # ==================== Octave-specific directories ==================== |
300 | |
2993 | 301 # These variables hold the values specific to Octave. They are |
666 | 302 # based on the values of the standard Make variables above. |
303 | |
5451 | 304 # What is the path separation character |
305 sepchar = @sepchar@ | |
306 | |
3597 | 307 # Where to install Octave's include files (they will actually be |
308 # installed in a subdirectory called octave). The default is | |
2993 | 309 # ${includedir}/octave-${version} |
310 octincludedir = @octincludedir@ | |
311 | |
666 | 312 # Where to install the function file distributed with |
313 # Octave. This includes the Octave version, so that the | |
314 # function files for different versions of Octave will install | |
315 # themselves in separate directories. | |
316 fcnfiledir = @fcnfiledir@ | |
317 | |
318 # Directories Octave should search for function files specific | |
319 # to this site (i.e. customizations), before consulting | |
320 # ${fcnfiledir}. This should be a colon-separated list of | |
321 # directories. | |
827 | 322 localfcnfiledir = @localfcnfiledir@ |
4449 | 323 localapifcnfiledir = @localapifcnfiledir@ |
3597 | 324 localverfcnfiledir = @localverfcnfiledir@ |
5 | 325 |
666 | 326 # Where to put executables to be run by Octave rather than |
327 # the user. This path usually includes the Octave version | |
328 # and configuration name, so that multiple configurations | |
329 # for multiple versions of Octave may be installed at once. | |
330 archlibdir = @archlibdir@ | |
331 | |
2439 | 332 # Where to put executables to be run by Octave rather than by the |
333 # user that are specific to this site. | |
334 localarchlibdir = @localarchlibdir@ | |
5909 | 335 localapiarchlibdir = @localapiarchlibdir@ |
3597 | 336 localverarchlibdir = @localverarchlibdir@ |
2439 | 337 |
666 | 338 # Where to put object files that will by dynamically loaded. |
339 # This path usually includes the Octave version and configuration | |
340 # name, so that multiple configurations for multiple versions of | |
341 # Octave may be installed at once. | |
342 octfiledir = @octfiledir@ | |
5 | 343 |
666 | 344 # Directories Octave should search for object files that will be |
345 # dynamically loaded and that are specific to this site | |
346 # (i.e. customizations), before consulting ${octfiledir}. This should | |
347 # be a colon-separated list of directories. | |
827 | 348 localoctfiledir = @localoctfiledir@ |
4449 | 349 localapioctfiledir = @localapioctfiledir@ |
3597 | 350 localveroctfiledir = @localveroctfiledir@ |
666 | 351 |
5814 | 352 # Where Octave will search to find image files. |
827 | 353 imagedir = @imagedir@ |
685 | 354 |
5 | 355 # The type of computer we are running on. |
3136 | 356 canonical_host_type = @canonical_host_type@ |
5 | 357 |
4443 | 358 # Where Octave will look for startup files |
359 startupfiledir = ${fcnfiledir}/startup | |
360 localstartupfiledir = ${localfcnfiledir}/startup | |
361 | |
6028 | 362 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ... |
363 library_path_var = @library_path_var@ | |
364 | |
4199 | 365 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ |
366 | |
5 | 367 # The following pattern rules and the substitution functions require |
368 # GNU make. If you don't have it, get it! | |
369 | |
7063 | 370 # How to make .o files: |
5 | 371 |
7063 | 372 %.o : %.f |
373 $(FC) -c $(ALL_FFLAGS) -o $@ $< | |
5 | 374 |
1984 | 375 %.o : %.c |
3615 | 376 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5 | 377 |
1984 | 378 %.o : %.cc |
3615 | 379 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308 | 380 |
7063 | 381 pic/%.o : %.f |
382 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ | |
383 | |
1984 | 384 pic/%.o : %.c |
385 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ | |
386 | |
387 pic/%.o : %.cc | |
388 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ | |
389 | |
308 | 390 # Here is a rule for generating dependencies for .cc files: |
391 | |
1984 | 392 %.d : %.cc |
518 | 393 @echo making $@ from $< |
394 @rm -f $@ | |
3775 | 395 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
4084 | 396 $(SED) \ |
3775 | 397 $(DEPEND_EXTRA_SED_PATTERN) \ |
398 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4050 | 399 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t |
4014 | 400 @mv $@-t $@ |
308 | 401 |
402 # And one for .c files.too: | |
403 | |
1984 | 404 %.d : %.c |
518 | 405 @echo making $@ from $< |
406 @rm -f $@ | |
3775 | 407 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
4084 | 408 $(SED) \ |
3775 | 409 $(DEPEND_EXTRA_SED_PATTERN) \ |
410 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4014 | 411 -e 's,$*\.o,pic/& & $@,g' > $@-t |
412 @mv $@-t $@ | |
1166 | 413 |
1685 | 414 define do-subdir-for-command |
4414 | 415 echo making $@ in $d; $(MAKE) -C $d $@; |
1166 | 416 endef |
1685 | 417 |
418 define subdir-for-command | |
419 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) | |
420 endef | |
2157 | 421 |
6152 | 422 define simple-move-if-change-rule |
423 if [ -s $@-t ]; then \ | |
424 $(top_srcdir)/move-if-change $@-t $@; \ | |
425 else \ | |
426 echo "$@-t is empty!" 1>&2; \ | |
427 rm -f $@-t; \ | |
428 exit 1; \ | |
429 fi | |
430 endef | |
431 | |
432 define builddir-move-if-change-rule | |
433 if [ -s $(@F)-t ]; then \ | |
434 $(top_srcdir)/move-if-change $(@F)-t $(@F); \ | |
435 else \ | |
436 echo "$(@F)-t is empty!" 1>&2; \ | |
437 rm -f $(@F)-t; \ | |
438 exit 1; \ | |
439 fi | |
440 endef | |
441 | |
2862 | 442 # Yes, the second sed command near the end is needed, to avoid limits |
443 # in command lengths for some versions of sed. UGLY_DEFS is often | |
444 # quite large, so it makes sense to split this command there. | |
445 | |
2157 | 446 define do-subst-config-vals |
2223 | 447 echo "making $@ from $<" |
4084 | 448 $(SED) < $< \ |
5451 | 449 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \ |
450 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
451 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \ | |
452 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \ | |
453 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \ | |
454 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \ | |
455 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \ | |
456 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \ | |
457 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \ | |
458 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
459 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \ | |
460 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \ | |
461 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \ | |
462 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \ | |
463 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \ | |
6043 | 464 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \ |
5451 | 465 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \ |
466 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \ | |
467 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \ | |
468 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \ | |
469 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \ | |
470 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
471 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \ | |
472 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \ | |
473 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \ | |
474 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \ | |
475 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \ | |
476 -e "s|%OCTAVE_CONF_F2C%|\"${F2C}\"|" \ | |
477 -e "s|%OCTAVE_CONF_F2CFLAGS%|\"${F2CFLAGS}\"|" \ | |
478 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \ | |
5498 | 479 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \ |
5451 | 480 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \ |
481 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \ | |
482 -e "s|%OCTAVE_CONF_FFTW_LIBS%|\"${FFTW_LIBS}\"|" \ | |
483 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \ | |
484 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \ | |
485 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \ | |
7361 | 486 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \ |
5451 | 487 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \ |
6311 | 488 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \ |
5451 | 489 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \ |
490 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \ | |
491 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \ | |
492 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \ | |
493 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \ | |
494 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \ | |
495 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \ | |
6710 | 496 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \ |
5451 | 497 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \ |
498 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \ | |
499 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \ | |
500 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \ | |
501 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \ | |
502 -e "s|%OCTAVE_CONF_LIBREADLINE%|\"${LIBREADLINE}\"|" \ | |
503 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \ | |
504 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \ | |
6682 | 505 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \ |
6311 | 506 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
507 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
508 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \ | |
5451 | 509 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \ |
510 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \ | |
511 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \ | |
512 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \ | |
513 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \ | |
514 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \ | |
515 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \ | |
516 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \ | |
517 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \ | |
518 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \ | |
519 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \ | |
520 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \ | |
521 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \ | |
522 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \ | |
523 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \ | |
524 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \ | |
525 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \ | |
526 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \ | |
527 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \ | |
528 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \ | |
529 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \ | |
530 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t | |
6152 | 531 $(simple-move-if-change-rule) |
2157 | 532 endef |
533 | |
534 define do-subst-default-vals | |
2223 | 535 echo "making $@ from $<" |
4084 | 536 $(SED) < $< > $@-t \ |
5451 | 537 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \ |
538 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
539 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
540 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \ | |
5847 | 541 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \ |
5451 | 542 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ |
543 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \ | |
544 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \ | |
545 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \ | |
546 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \ | |
547 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \ | |
548 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \ | |
549 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \ | |
550 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \ | |
551 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \ | |
552 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \ | |
553 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \ | |
554 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \ | |
555 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \ | |
556 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \ | |
5909 | 557 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \ |
5451 | 558 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \ |
559 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \ | |
560 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \ | |
561 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \ | |
562 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \ | |
563 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \ | |
564 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \ | |
565 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ | |
566 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
567 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \ | |
568 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \ | |
5658 | 569 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \ |
570 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \ | |
5451 | 571 -e "s|%OCTAVE_VERSION%|\"${version}\"|" |
6152 | 572 $(simple-move-if-change-rule) |
2157 | 573 endef |
4227 | 574 |
5708 | 575 define do-subst-texinfo-vals |
576 echo "making $@ from $<" | |
577 $(SED) < $< \ | |
6583 | 578 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
6577 | 579 -e "s|%top_srcdir%|${top_srcdir}|" \ |
5708 | 580 -e "s|%OCTAVE_HOME%|${prefix}|" \ |
581 -e "s|%OCTAVE_VERSION%|${version}|" \ | |
582 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \ | |
583 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \ | |
6855 | 584 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" \ |
585 -e "s|%TEXINFO_QHULL%|${TEXINFO_QHULL}|" | \ | |
5942 | 586 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t |
6152 | 587 $(simple-move-if-change-rule) |
5708 | 588 endef |
589 | |
5776 | 590 define do-subst-script-vals |
591 echo "making $@ from $<" | |
592 $(SED) < $< \ | |
7244 | 593 -e "s|%AWK%|${AWK}|g" \ |
594 -e "s|%FIND%|${FIND}|g" \ | |
6028 | 595 -e "s|%library_path_var%|${library_path_var}|g" \ |
6155 | 596 -e "s|%liboctinterp%|${LIBPRE}octinterp.${SHLEXT}|g" \ |
597 -e "s|%liboctave%|${LIBPRE}octave.${SHLEXT}|g" \ | |
598 -e "s|%libcruft%|${LIBPRE}cruft.${SHLEXT}|g" \ | |
5776 | 599 -e "s|%srcdir%|${srcdir}|" \ |
600 -e "s|%top_srcdir%|${top_srcdir}|" \ | |
5793 | 601 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
5776 | 602 -e "s|%builddir%|$(shell pwd)|" > $@-t |
6152 | 603 $(simple-move-if-change-rule) |
5776 | 604 endef |
605 | |
6102 | 606 define do-subst-f77-mangling |
607 echo "making $@ from $<" | |
608 $(SED) < $< \ | |
609 -e "s|%F77_TOLOWER%|${F77_TOLOWER}|g" \ | |
610 -e "s|%F77_APPEND_UNDERSCORE%|${F77_APPEND_UNDERSCORE}|" \ | |
611 -e "s|%F77_APPEND_EXTRA_UNDERSCORE%|${F77_APPEND_EXTRA_UNDERSCORE}|" > $@-t | |
6152 | 612 $(simple-move-if-change-rule) |
6102 | 613 endef |
614 | |
5597 | 615 define do-mkpkgadd |
616 $(top_srcdir)/mkpkgadd $(srcdir) > PKG_ADD.t | |
617 if [ -n "`cat PKG_ADD.t`" ]; then \ | |
618 mv PKG_ADD.t PKG_ADD ; \ | |
619 else \ | |
620 rm -f PKG_ADD.t ; \ | |
621 fi | |
622 endef | |
623 | |
4227 | 624 define do-script-install |
4413 | 625 $(top_srcdir)/mkinstalldirs \ |
626 $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) | |
6279 | 627 for f in $(FCN_FILES); do \ |
628 fbase=`basename $$f`; \ | |
629 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
630 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
4227 | 631 done |
4413 | 632 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t |
633 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ | |
634 mv $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ | |
4227 | 635 else \ |
4413 | 636 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ |
4227 | 637 fi |
638 endef | |
639 | |
640 define do-script-uninstall | |
641 for f in $(FCN_FILES_NO_DIR); \ | |
4413 | 642 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
4227 | 643 done |
6366 | 644 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD |
6654 | 645 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) |
4227 | 646 endef |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
647 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
648 define do-check-m-sources |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
649 for f in $(notdir $(wildcard $(srcdir)/*.m)); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
650 found=false; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
651 for m in $(SOURCES); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
652 if [ "$$f" = "$$m" ]; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
653 found=true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
654 break; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
655 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
656 done; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
657 if $$found; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
658 true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
659 else \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
660 echo "$(script_sub_dir)/$$f: not listed in SOURCES"; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
661 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
662 done |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
663 endef |