Mercurial > octave-nkf
annotate Makeconf.in @ 7948:af10baa63915 ss-3-1-50
3.1.50 snapshot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Jul 2008 17:42:48 -0400 |
parents | d74f996e005d |
children | c0d7eb662384 |
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 |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
149 MAGICK_CONFIG = @MAGICK_CONFIG@ |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
150 MAGICK_INCFLAGS = $(shell $(MAGICK_CONFIG) --cppflags) |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
151 MAGICK_LIBS = $(shell $(MAGICK_CONFIG) --ldflags --libs) |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
152 |
5 | 153 LIBFLAGS = -L$(TOPDIR) |
236 | 154 |
5 | 155 DEFS = @DEFS@ |
156 | |
2032 | 157 UGLY_DEFS = @UGLY_DEFS@ |
158 | |
5 | 159 CC = @CC@ |
1891 | 160 CC_VERSION = @CC_VERSION@ |
5 | 161 CFLAGS = @CFLAGS@ |
1832 | 162 CPICFLAG = @CPICFLAG@ |
3126 | 163 XTRA_CFLAGS = @XTRA_CFLAGS@ |
4626 | 164 WARN_CFLAGS = @WARN_CFLAGS@ |
6141 | 165 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
4626 | 166 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
798 | 167 |
4094 | 168 BUILD_CC = @BUILD_CC@ |
169 BUILD_CFLAGS = @BUILD_CFLAGS@ | |
4093 | 170 |
3775 | 171 DEPEND_FLAGS = @DEPEND_FLAGS@ |
172 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ | |
6087 | 173 INCLUDE_DEPS = @INCLUDE_DEPS@ |
174 ifeq ($(INCLUDE_DEPS),false) | |
175 omit_deps = true; | |
176 endif | |
3775 | 177 |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
178 GRAPHICS_CFLAGS = @GRAPHICS_CFLAGS@ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
179 |
198 | 180 CXX = @CXX@ |
1891 | 181 CXX_VERSION = @CXX_VERSION@ |
518 | 182 CXXCPP = @CXXCPP@ |
198 | 183 CXXFLAGS = @CXXFLAGS@ |
1832 | 184 CXXPICFLAG = @CXXPICFLAG@ |
3126 | 185 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
4626 | 186 WARN_CXXFLAGS = @WARN_CXXFLAGS@ |
187 ALL_CXXFLAGS = \ | |
6141 | 188 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
4626 | 189 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
5 | 190 |
4094 | 191 BUILD_CXX = @BUILD_CXX@ |
192 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ | |
4093 | 193 |
858 | 194 CPPFLAGS = @CPPFLAGS@ |
195 | |
3705 | 196 LD_CXX = @LD_CXX@ |
5 | 197 LDFLAGS = @LDFLAGS@ |
708 | 198 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3887 | 199 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5 | 200 |
4298 | 201 BUILD_LDFLAGS = @BUILD_LDFLAGS@ |
202 | |
2676 | 203 SH_LD = @SH_LD@ |
204 SH_LDFLAGS = @SH_LDFLAGS@ | |
205 | |
4759 | 206 DL_LD = @DL_LD@ |
207 DL_LDFLAGS = @DL_LDFLAGS@ | |
208 | |
3036 | 209 SONAME_FLAGS = @SONAME_FLAGS@ |
210 | |
3233 | 211 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
212 | |
2674 | 213 RLD_FLAG = @RLD_FLAG@ |
214 | |
5 | 215 FLIBS = @FLIBS@ |
708 | 216 |
5451 | 217 LIBGLOB = @LIBGLOB@ |
3156 | 218 LIBOCTINTERP = @LIBOCTINTERP@ |
219 LIBOCTAVE = @LIBOCTAVE@ | |
220 LIBCRUFT = @LIBCRUFT@ | |
4102 | 221 LIBREADLINE = @LIBREADLINE@ |
222 TERMLIBS = @TERMLIBS@ | |
3726 | 223 |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
224 FT2_LIBS = @FT2_LIBS@ |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
225 GRAPHICS_LIBS = @GRAPHICS_LIBS@ |
6823 | 226 QHULL_LIBS = @QHULL_LIBS@ |
5585 | 227 REGEX_LIBS = @REGEX_LIBS@ |
3726 | 228 BLAS_LIBS = @BLAS_LIBS@ |
3827 | 229 FFTW_LIBS = @FFTW_LIBS@ |
5235 | 230 GLPK_LIBS = @GLPK_LIBS@ |
6043 | 231 CURL_LIBS = @CURL_LIBS@ |
5451 | 232 AMD_LIBS = @AMD_LIBS@ |
6024 | 233 CAMD_LIBS = @CAMD_LIBS@ |
5270 | 234 UMFPACK_LIBS = @UMFPACK_LIBS@ |
5451 | 235 COLAMD_LIBS = @COLAMD_LIBS@ |
236 CCOLAMD_LIBS = @CCOLAMD_LIBS@ | |
237 CHOLMOD_LIBS = @CHOLMOD_LIBS@ | |
5610 | 238 CXSPARSE_LIBS = @CXSPARSE_LIBS@ |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7698
diff
changeset
|
239 OPENGL_LIBS = @OPENGL_LIBS@ |
3726 | 240 LIBS = @LIBS@ |
5 | 241 |
5275 | 242 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@ |
243 | |
5708 | 244 TEXINFO_COLAMD = @TEXINFO_COLAMD@ |
245 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@ | |
246 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@ | |
6855 | 247 TEXINFO_QHULL = @TEXINFO_QHULL@ |
5708 | 248 |
2155 | 249 # The arguments passed to configure. |
2156 | 250 config_opts = @config_opts@ |
2155 | 251 |
666 | 252 # ==================== Where To Install Things ==================== |
5 | 253 |
666 | 254 # The default location for installation. Everything is placed in |
255 # subdirectories of this directory. The default values for many of | |
256 # the variables below are expressed in terms of this one, so you may | |
257 # not need to change them. This defaults to /usr/local. | |
258 prefix = @prefix@ | |
5 | 259 |
666 | 260 # Like `prefix', but used for architecture-specific files. |
261 exec_prefix = @exec_prefix@ | |
262 | |
263 # Where to install Octave and other binaries that people will want to | |
264 # run directly. | |
265 bindir = @bindir@ | |
5 | 266 |
4411 | 267 # Normally the directory for installing executables that system |
268 # administrators run. This is the same as libexecdir on Cygwin systems. | |
269 sbindir = @sbindir@ | |
270 | |
5844 | 271 # The root of the directory tree for read-only |
272 # architecture-independent data files. | |
273 datarootdir = @datarootdir@ | |
274 | |
666 | 275 # Where to install architecture-independent data files. ${fcnfiledir} |
276 # and ${localfcnfiledir} are subdirectories of this. | |
277 datadir = @datadir@ | |
5 | 278 |
3141 | 279 libdir = @libdir@ |
280 | |
666 | 281 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141 | 282 # and other architecture-dependent data. |
283 octlibdir = @octlibdir@ | |
5 | 284 |
1720 | 285 # Where to install and expect executable programs to be run by Octave |
286 # rather than directly by users. | |
287 libexecdir = @libexecdir@ | |
288 | |
2141 | 289 # The prefix for Octave's include file directory. The default is |
290 # ${prefix}/include | |
2223 | 291 includedir = @includedir@ |
2141 | 292 |
666 | 293 # Where to install Octave's man pages, and what extension they should |
294 # have. The default is ${prefix}/man/man1 | |
295 mandir = @mandir@ | |
2223 | 296 man1dir = @man1dir@ |
297 man1ext = @man1ext@ | |
5 | 298 |
666 | 299 # Where to install and expect the info files describing Octave.. |
300 infodir = @infodir@ | |
301 | |
2512 | 302 # The fill path to the default info file. |
303 infofile = @infofile@ | |
304 | |
666 | 305 # ==================== Octave-specific directories ==================== |
306 | |
2993 | 307 # These variables hold the values specific to Octave. They are |
666 | 308 # based on the values of the standard Make variables above. |
309 | |
5451 | 310 # What is the path separation character |
311 sepchar = @sepchar@ | |
312 | |
3597 | 313 # Where to install Octave's include files (they will actually be |
314 # installed in a subdirectory called octave). The default is | |
2993 | 315 # ${includedir}/octave-${version} |
316 octincludedir = @octincludedir@ | |
317 | |
666 | 318 # Where to install the function file distributed with |
319 # Octave. This includes the Octave version, so that the | |
320 # function files for different versions of Octave will install | |
321 # themselves in separate directories. | |
322 fcnfiledir = @fcnfiledir@ | |
323 | |
324 # Directories Octave should search for function files specific | |
325 # to this site (i.e. customizations), before consulting | |
326 # ${fcnfiledir}. This should be a colon-separated list of | |
327 # directories. | |
827 | 328 localfcnfiledir = @localfcnfiledir@ |
4449 | 329 localapifcnfiledir = @localapifcnfiledir@ |
3597 | 330 localverfcnfiledir = @localverfcnfiledir@ |
5 | 331 |
666 | 332 # Where to put executables to be run by Octave rather than |
333 # the user. This path usually includes the Octave version | |
334 # and configuration name, so that multiple configurations | |
335 # for multiple versions of Octave may be installed at once. | |
336 archlibdir = @archlibdir@ | |
337 | |
2439 | 338 # Where to put executables to be run by Octave rather than by the |
339 # user that are specific to this site. | |
340 localarchlibdir = @localarchlibdir@ | |
5909 | 341 localapiarchlibdir = @localapiarchlibdir@ |
3597 | 342 localverarchlibdir = @localverarchlibdir@ |
2439 | 343 |
666 | 344 # Where to put object files that will by dynamically loaded. |
345 # This path usually includes the Octave version and configuration | |
346 # name, so that multiple configurations for multiple versions of | |
347 # Octave may be installed at once. | |
348 octfiledir = @octfiledir@ | |
5 | 349 |
666 | 350 # Directories Octave should search for object files that will be |
351 # dynamically loaded and that are specific to this site | |
352 # (i.e. customizations), before consulting ${octfiledir}. This should | |
353 # be a colon-separated list of directories. | |
827 | 354 localoctfiledir = @localoctfiledir@ |
4449 | 355 localapioctfiledir = @localapioctfiledir@ |
3597 | 356 localveroctfiledir = @localveroctfiledir@ |
666 | 357 |
5814 | 358 # Where Octave will search to find image files. |
827 | 359 imagedir = @imagedir@ |
685 | 360 |
5 | 361 # The type of computer we are running on. |
3136 | 362 canonical_host_type = @canonical_host_type@ |
5 | 363 |
4443 | 364 # Where Octave will look for startup files |
365 startupfiledir = ${fcnfiledir}/startup | |
366 localstartupfiledir = ${localfcnfiledir}/startup | |
367 | |
6028 | 368 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ... |
369 library_path_var = @library_path_var@ | |
370 | |
4199 | 371 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ |
372 | |
5 | 373 # The following pattern rules and the substitution functions require |
374 # GNU make. If you don't have it, get it! | |
375 | |
7063 | 376 # How to make .o files: |
5 | 377 |
7063 | 378 %.o : %.f |
379 $(FC) -c $(ALL_FFLAGS) -o $@ $< | |
5 | 380 |
1984 | 381 %.o : %.c |
3615 | 382 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5 | 383 |
1984 | 384 %.o : %.cc |
3615 | 385 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308 | 386 |
7063 | 387 pic/%.o : %.f |
388 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ | |
389 | |
1984 | 390 pic/%.o : %.c |
391 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ | |
392 | |
393 pic/%.o : %.cc | |
394 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ | |
395 | |
308 | 396 # Here is a rule for generating dependencies for .cc files: |
397 | |
1984 | 398 %.d : %.cc |
518 | 399 @echo making $@ from $< |
400 @rm -f $@ | |
3775 | 401 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
4084 | 402 $(SED) \ |
3775 | 403 $(DEPEND_EXTRA_SED_PATTERN) \ |
404 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4050 | 405 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t |
4014 | 406 @mv $@-t $@ |
308 | 407 |
408 # And one for .c files.too: | |
409 | |
1984 | 410 %.d : %.c |
518 | 411 @echo making $@ from $< |
412 @rm -f $@ | |
3775 | 413 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
4084 | 414 $(SED) \ |
3775 | 415 $(DEPEND_EXTRA_SED_PATTERN) \ |
416 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4014 | 417 -e 's,$*\.o,pic/& & $@,g' > $@-t |
418 @mv $@-t $@ | |
1166 | 419 |
1685 | 420 define do-subdir-for-command |
4414 | 421 echo making $@ in $d; $(MAKE) -C $d $@; |
1166 | 422 endef |
1685 | 423 |
424 define subdir-for-command | |
425 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) | |
426 endef | |
2157 | 427 |
6152 | 428 define simple-move-if-change-rule |
429 if [ -s $@-t ]; then \ | |
430 $(top_srcdir)/move-if-change $@-t $@; \ | |
431 else \ | |
432 echo "$@-t is empty!" 1>&2; \ | |
433 rm -f $@-t; \ | |
434 exit 1; \ | |
435 fi | |
436 endef | |
437 | |
438 define builddir-move-if-change-rule | |
439 if [ -s $(@F)-t ]; then \ | |
440 $(top_srcdir)/move-if-change $(@F)-t $(@F); \ | |
441 else \ | |
442 echo "$(@F)-t is empty!" 1>&2; \ | |
443 rm -f $(@F)-t; \ | |
444 exit 1; \ | |
445 fi | |
446 endef | |
447 | |
2862 | 448 # Yes, the second sed command near the end is needed, to avoid limits |
449 # in command lengths for some versions of sed. UGLY_DEFS is often | |
450 # quite large, so it makes sense to split this command there. | |
451 | |
2157 | 452 define do-subst-config-vals |
2223 | 453 echo "making $@ from $<" |
4084 | 454 $(SED) < $< \ |
5451 | 455 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \ |
456 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
457 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \ | |
458 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \ | |
459 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \ | |
460 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \ | |
461 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \ | |
462 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \ | |
463 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \ | |
464 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
465 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \ | |
466 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \ | |
467 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \ | |
468 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \ | |
469 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \ | |
6043 | 470 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \ |
5451 | 471 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \ |
472 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \ | |
473 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \ | |
474 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \ | |
475 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \ | |
476 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
477 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \ | |
478 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \ | |
479 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \ | |
480 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \ | |
481 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \ | |
482 -e "s|%OCTAVE_CONF_F2C%|\"${F2C}\"|" \ | |
483 -e "s|%OCTAVE_CONF_F2CFLAGS%|\"${F2CFLAGS}\"|" \ | |
484 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \ | |
5498 | 485 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \ |
5451 | 486 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \ |
487 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \ | |
488 -e "s|%OCTAVE_CONF_FFTW_LIBS%|\"${FFTW_LIBS}\"|" \ | |
489 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \ | |
490 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \ | |
491 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \ | |
7361 | 492 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \ |
5451 | 493 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \ |
6311 | 494 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \ |
5451 | 495 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \ |
496 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \ | |
497 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \ | |
498 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \ | |
499 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \ | |
500 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \ | |
501 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \ | |
6710 | 502 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \ |
5451 | 503 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \ |
504 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \ | |
505 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \ | |
506 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \ | |
507 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \ | |
508 -e "s|%OCTAVE_CONF_LIBREADLINE%|\"${LIBREADLINE}\"|" \ | |
509 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \ | |
510 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \ | |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
511 -e "s|%OCTAVE_CONF_MAGICK_INCFLAGS%|\"${MAGICK_INCFLAGS}\"|" \ |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
512 -e "s|%OCTAVE_CONF_MAGICK_LIBS%|\"${MAGICK_LIBS}\"|" \ |
6682 | 513 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \ |
6311 | 514 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
515 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
516 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \ | |
5451 | 517 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \ |
518 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \ | |
519 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \ | |
520 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \ | |
521 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \ | |
522 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \ | |
523 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \ | |
524 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \ | |
525 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \ | |
526 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \ | |
527 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \ | |
528 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \ | |
529 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \ | |
530 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \ | |
531 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \ | |
532 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \ | |
533 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \ | |
534 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \ | |
535 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \ | |
536 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \ | |
537 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \ | |
538 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t | |
6152 | 539 $(simple-move-if-change-rule) |
2157 | 540 endef |
541 | |
542 define do-subst-default-vals | |
2223 | 543 echo "making $@ from $<" |
4084 | 544 $(SED) < $< > $@-t \ |
5451 | 545 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \ |
546 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
547 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
548 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \ | |
5847 | 549 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \ |
5451 | 550 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ |
551 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \ | |
552 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \ | |
553 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \ | |
554 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \ | |
555 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \ | |
556 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \ | |
557 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \ | |
558 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \ | |
559 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \ | |
560 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \ | |
561 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \ | |
562 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \ | |
563 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \ | |
564 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \ | |
5909 | 565 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \ |
5451 | 566 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \ |
567 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \ | |
568 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \ | |
569 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \ | |
570 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \ | |
571 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \ | |
572 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \ | |
573 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ | |
574 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
575 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \ | |
576 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \ | |
5658 | 577 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \ |
578 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \ | |
5451 | 579 -e "s|%OCTAVE_VERSION%|\"${version}\"|" |
6152 | 580 $(simple-move-if-change-rule) |
2157 | 581 endef |
4227 | 582 |
5708 | 583 define do-subst-texinfo-vals |
584 echo "making $@ from $<" | |
585 $(SED) < $< \ | |
6583 | 586 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
6577 | 587 -e "s|%top_srcdir%|${top_srcdir}|" \ |
5708 | 588 -e "s|%OCTAVE_HOME%|${prefix}|" \ |
589 -e "s|%OCTAVE_VERSION%|${version}|" \ | |
590 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \ | |
591 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \ | |
6855 | 592 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" \ |
593 -e "s|%TEXINFO_QHULL%|${TEXINFO_QHULL}|" | \ | |
5942 | 594 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t |
6152 | 595 $(simple-move-if-change-rule) |
5708 | 596 endef |
597 | |
5776 | 598 define do-subst-script-vals |
599 echo "making $@ from $<" | |
600 $(SED) < $< \ | |
7244 | 601 -e "s|%AWK%|${AWK}|g" \ |
602 -e "s|%FIND%|${FIND}|g" \ | |
6028 | 603 -e "s|%library_path_var%|${library_path_var}|g" \ |
6155 | 604 -e "s|%liboctinterp%|${LIBPRE}octinterp.${SHLEXT}|g" \ |
605 -e "s|%liboctave%|${LIBPRE}octave.${SHLEXT}|g" \ | |
606 -e "s|%libcruft%|${LIBPRE}cruft.${SHLEXT}|g" \ | |
5776 | 607 -e "s|%srcdir%|${srcdir}|" \ |
608 -e "s|%top_srcdir%|${top_srcdir}|" \ | |
5793 | 609 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
5776 | 610 -e "s|%builddir%|$(shell pwd)|" > $@-t |
6152 | 611 $(simple-move-if-change-rule) |
5776 | 612 endef |
613 | |
6102 | 614 define do-subst-f77-mangling |
615 echo "making $@ from $<" | |
616 $(SED) < $< \ | |
617 -e "s|%F77_TOLOWER%|${F77_TOLOWER}|g" \ | |
618 -e "s|%F77_APPEND_UNDERSCORE%|${F77_APPEND_UNDERSCORE}|" \ | |
619 -e "s|%F77_APPEND_EXTRA_UNDERSCORE%|${F77_APPEND_EXTRA_UNDERSCORE}|" > $@-t | |
6152 | 620 $(simple-move-if-change-rule) |
6102 | 621 endef |
622 | |
5597 | 623 define do-mkpkgadd |
624 $(top_srcdir)/mkpkgadd $(srcdir) > PKG_ADD.t | |
625 if [ -n "`cat PKG_ADD.t`" ]; then \ | |
626 mv PKG_ADD.t PKG_ADD ; \ | |
627 else \ | |
628 rm -f PKG_ADD.t ; \ | |
629 fi | |
630 endef | |
631 | |
4227 | 632 define do-script-install |
4413 | 633 $(top_srcdir)/mkinstalldirs \ |
634 $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) | |
6279 | 635 for f in $(FCN_FILES); do \ |
636 fbase=`basename $$f`; \ | |
637 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
638 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
4227 | 639 done |
4413 | 640 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t |
641 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ | |
642 mv $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ | |
4227 | 643 else \ |
4413 | 644 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ |
4227 | 645 fi |
646 endef | |
647 | |
648 define do-script-uninstall | |
649 for f in $(FCN_FILES_NO_DIR); \ | |
4413 | 650 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
4227 | 651 done |
6366 | 652 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD |
6654 | 653 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) |
4227 | 654 endef |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
655 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
656 define do-check-m-sources |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
657 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
|
658 found=false; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
659 for m in $(SOURCES); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
660 if [ "$$f" = "$$m" ]; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
661 found=true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
662 break; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
663 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
664 done; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
665 if $$found; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
666 true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
667 else \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
668 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
|
669 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
670 done |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
671 endef |