Mercurial > octave-nkf
annotate Makeconf.in @ 9615:ee3a5e9a381c
Changed SPARSE_LIBS order to respect dependency
author | Marco Atzeri <marco_atzeri@yahoo.it> |
---|---|
date | Fri, 04 Sep 2009 11:34:57 -0400 |
parents | 16907d1153d1 |
children | 7c628fb04fd0 |
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, |
8920 | 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 John W. Eaton |
7017 | 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@ |
8444
c3ac9f2772cd
do not eat white space within @example environments of docstrings
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8417
diff
changeset
|
36 export PERL |
c3ac9f2772cd
do not eat white space within @example environments of docstrings
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8417
diff
changeset
|
37 |
5495 | 38 PYTHON = @PYTHON@ |
5465 | 39 |
7361 | 40 GNUPLOT = @GNUPLOT@ |
41 | |
5468 | 42 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@ |
43 | |
3029 | 44 # A shell command to extract the version number from version.h. |
4449 | 45 getversion = $(SED) -e '/OCTAVE_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
46 | |
47 # A shell command to extract the API version number from version.h. | |
48 getapiversion = $(SED) -e '/OCTAVE_API_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q | |
3029 | 49 |
50 # Look for version.h to get version information. | |
51 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
52 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
53 version := $(shell $(getversion) $(version_file)) | |
5658 | 54 api_version := $(shell $(getapiversion) $(version_file)) |
3029 | 55 |
5 | 56 #### Start of system configuration section. #### |
57 | |
3892 | 58 EXEEXT = @EXEEXT@ |
2577 | 59 |
4098 | 60 BUILD_EXEEXT = @BUILD_EXEEXT@ |
61 | |
5 | 62 LEX = @LEX@ |
63 LFLAGS = @LFLAGS@ | |
64 LEXLIB = @LEXLIB@ | |
65 | |
66 YACC = @YACC@ | |
67 YFLAGS = -dv | |
68 | |
3675 | 69 GPERF = @GPERF@ |
70 | |
1462 | 71 AR = @AR@ |
72 ARFLAGS = @ARFLAGS@ | |
73 | |
3775 | 74 TEMPLATE_AR = @TEMPLATE_AR@ |
75 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ | |
76 | |
5 | 77 RANLIB = @RANLIB@ |
78 | |
1722 | 79 LN_S = @LN_S@ |
80 | |
5934 | 81 MAKEINFO = @MAKEINFO@ |
82 TEXI2DVI = @TEXI2DVI@ | |
83 TEXI2PDF = @TEXI2PDF@ | |
84 | |
85 GHOSTSCRIPT = @GHOSTSCRIPT@ | |
2518 | 86 |
5 | 87 DEFAULT_PAGER = @DEFAULT_PAGER@ |
88 | |
4128 | 89 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@ |
702 | 90 |
3034 | 91 STATIC_LIBS = @STATIC_LIBS@ |
92 | |
1679 | 93 SHARED_LIBS = @SHARED_LIBS@ |
94 SHLEXT = @SHLEXT@ | |
4126 | 95 SHLEXT_VER = @SHLEXT_VER@ |
4102 | 96 SHLLIB = @SHLLIB@ |
4627 | 97 SHLLIB_VER = @SHLLIB_VER@ |
4102 | 98 SHLBIN = @SHLBIN@ |
4126 | 99 SHLBIN_VER = @SHLBIN_VER@ |
100 SHLLINKEXT= | |
4102 | 101 |
3029 | 102 LIBEXT = a |
6051 | 103 LIBPRE = @LIBPRE@ |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
104 SHLPRE = @SHLPRE@ |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
105 SHLLIBPRE = @SHLLIBPRE@ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
106 SHLBINPRE = @SHLBINPRE@ |
1667 | 107 |
5 | 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 |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
149 X11_INCFLAGS = @X11_INCFLAGS@ |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
150 X11_LIBS = @X11_LIBS@ |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
151 |
8771
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8719
diff
changeset
|
152 CARBON_LIBS = @CARBON_LIBS@ |
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8719
diff
changeset
|
153 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9572
diff
changeset
|
154 MAGICK_CPPFLAGS = @MAGICK_CPPFLAGS@ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9572
diff
changeset
|
155 MAGICK_LDFLAGS = @MAGICK_LDFLAGS@ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9572
diff
changeset
|
156 MAGICK_LIBS = @MAGICK_LIBS@ |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
157 |
9488
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9437
diff
changeset
|
158 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9437
diff
changeset
|
159 PTHREAD_LIBS = @PTHREAD_LIBS@ |
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9437
diff
changeset
|
160 |
5 | 161 LIBFLAGS = -L$(TOPDIR) |
236 | 162 |
5 | 163 DEFS = @DEFS@ |
164 | |
2032 | 165 UGLY_DEFS = @UGLY_DEFS@ |
166 | |
5 | 167 CC = @CC@ |
1891 | 168 CC_VERSION = @CC_VERSION@ |
5 | 169 CFLAGS = @CFLAGS@ |
1832 | 170 CPICFLAG = @CPICFLAG@ |
3126 | 171 XTRA_CFLAGS = @XTRA_CFLAGS@ |
4626 | 172 WARN_CFLAGS = @WARN_CFLAGS@ |
9488
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9437
diff
changeset
|
173 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) |
4626 | 174 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
798 | 175 |
4094 | 176 BUILD_CC = @BUILD_CC@ |
177 BUILD_CFLAGS = @BUILD_CFLAGS@ | |
4093 | 178 |
3775 | 179 DEPEND_FLAGS = @DEPEND_FLAGS@ |
180 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ | |
6087 | 181 INCLUDE_DEPS = @INCLUDE_DEPS@ |
182 ifeq ($(INCLUDE_DEPS),false) | |
183 omit_deps = true; | |
184 endif | |
3775 | 185 |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
186 GRAPHICS_CFLAGS = @GRAPHICS_CFLAGS@ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
187 |
198 | 188 CXX = @CXX@ |
1891 | 189 CXX_VERSION = @CXX_VERSION@ |
518 | 190 CXXCPP = @CXXCPP@ |
198 | 191 CXXFLAGS = @CXXFLAGS@ |
1832 | 192 CXXPICFLAG = @CXXPICFLAG@ |
3126 | 193 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
4626 | 194 WARN_CXXFLAGS = @WARN_CXXFLAGS@ |
195 ALL_CXXFLAGS = \ | |
9488
ee572cdd4b97
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
9437
diff
changeset
|
196 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS) |
4626 | 197 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
5 | 198 |
4094 | 199 BUILD_CXX = @BUILD_CXX@ |
200 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ | |
4093 | 201 |
858 | 202 CPPFLAGS = @CPPFLAGS@ |
203 | |
3705 | 204 LD_CXX = @LD_CXX@ |
5 | 205 LDFLAGS = @LDFLAGS@ |
708 | 206 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3887 | 207 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5 | 208 |
4298 | 209 BUILD_LDFLAGS = @BUILD_LDFLAGS@ |
210 | |
2676 | 211 SH_LD = @SH_LD@ |
212 SH_LDFLAGS = @SH_LDFLAGS@ | |
213 | |
4759 | 214 DL_LD = @DL_LD@ |
215 DL_LDFLAGS = @DL_LDFLAGS@ | |
216 | |
3036 | 217 SONAME_FLAGS = @SONAME_FLAGS@ |
218 | |
3233 | 219 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
220 | |
2674 | 221 RLD_FLAG = @RLD_FLAG@ |
222 | |
5 | 223 FLIBS = @FLIBS@ |
708 | 224 |
5451 | 225 LIBGLOB = @LIBGLOB@ |
3156 | 226 LIBOCTINTERP = @LIBOCTINTERP@ |
227 LIBOCTAVE = @LIBOCTAVE@ | |
228 LIBCRUFT = @LIBCRUFT@ | |
3726 | 229 |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
230 FT2_LIBS = @FT2_LIBS@ |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
231 |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
232 HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
233 HDF5_LDFLAGS = @HDF5_LDFLAGS@ |
9514 | 234 HDF5_LIBS = @HDF5_LIBS@ |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
235 |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
236 Z_CPPFLAGS = @Z_CPPFLAGS@ |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
237 Z_LDFLAGS = @Z_LDFLAGS@ |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
238 Z_LIBS = @Z_LIBS@ |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
239 |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
240 GRAPHICS_LIBS = @GRAPHICS_LIBS@ |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
241 |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
242 QHULL_CPPFLAGS = @QHULL_CPPFLAGS@ |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
243 QHULL_LDFLAGS = @QHULL_LDFLAGS@ |
6823 | 244 QHULL_LIBS = @QHULL_LIBS@ |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
245 |
5585 | 246 REGEX_LIBS = @REGEX_LIBS@ |
3726 | 247 BLAS_LIBS = @BLAS_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
248 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
249 FFTW3_CPPFLAGS = @FFTW3_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
250 FFTW3_LDFLAGS = @FFTW3_LDFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
251 FFTW3_LIBS = @FFTW3_LIBS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
252 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
253 FFTW3F_CPPFLAGS = @FFTW3F_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
254 FFTW3F_LDFLAGS = @FFTW3F_LDFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
255 FFTW3F_LIBS = @FFTW3F_LIBS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
256 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
257 GLPK_CPPFLAGS = @GLPK_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
258 GLPK_LDFLAGS = @GLPK_LDFLAGS@ |
5235 | 259 GLPK_LIBS = @GLPK_LIBS@ |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
260 |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
261 CURL_CPPFLAGS = @CURL_CPPFLAGS@ |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
262 CURL_LDFLAGS = @CURL_LDFLAGS@ |
6043 | 263 CURL_LIBS = @CURL_LIBS@ |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
264 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
265 AMD_CPPFLAGS = @AMD_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
266 AMD_LDFLAGS = @AMD_LDFLAGS@ |
5451 | 267 AMD_LIBS = @AMD_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
268 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
269 CAMD_CPPFLAGS = @CAMD_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
270 CAMD_LDFLAGS = @CAMD_LDFLAGS@ |
6024 | 271 CAMD_LIBS = @CAMD_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
272 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
273 COLAMD_CPPFLAGS = @COLAMD_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
274 COLAMD_LDFLAGS = @COLAMD_LDFLAGS@ |
5451 | 275 COLAMD_LIBS = @COLAMD_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
276 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
277 CCOLAMD_CPPFLAGS = @CCOLAMD_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
278 CCOLAMD_LDFLAGS = @CCOLAMD_LDFLAGS@ |
5451 | 279 CCOLAMD_LIBS = @CCOLAMD_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
280 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
281 CHOLMOD_CPPFLAGS = @CHOLMOD_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
282 CHOLMOD_LDFLAGS = @CHOLMOD_LDFLAGS@ |
5451 | 283 CHOLMOD_LIBS = @CHOLMOD_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
284 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
285 CXSPARSE_CPPFLAGS = @CXSPARSE_CPPFLAGS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
286 CXSPARSE_LDFLAGS = @CXSPARSE_LDFLAGS@ |
5610 | 287 CXSPARSE_LIBS = @CXSPARSE_LIBS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
288 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
289 UMFPACK_CPPFLAGS = @UMFPACK_CPPFLAGS@ |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
290 UMFPACK_LDFLAGS = @UMFPACK_LDFLAGS@ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
291 UMFPACK_LIBS = @UMFPACK_LIBS@ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
292 |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7698
diff
changeset
|
293 OPENGL_LIBS = @OPENGL_LIBS@ |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
294 |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
295 QRUPDATE_CPPFLAGS = @QRUPDATE_CPPFLAGS@ |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
296 QRUPDATE_LDFLAGS = @QRUPDATE_LDFLAGS@ |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8444
diff
changeset
|
297 QRUPDATE_LIBS = @QRUPDATE_LIBS@ |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
298 |
9515 | 299 READLINE_LIBS = @READLINE_LIBS@ |
300 TERM_LIBS = @TERM_LIBS@ | |
9568
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
301 |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
302 ARPACK_CPPFLAGS = @ARPACK_CPPFLAGS@ |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
303 ARPACK_LDFLAGS = @ARPACK_LDFLAGS@ |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8005
diff
changeset
|
304 ARPACK_LIBS = @ARPACK_LIBS@ |
9568
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
305 |
9515 | 306 DL_LIBS = @DL_LIBS@ |
3726 | 307 LIBS = @LIBS@ |
5 | 308 |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
309 ALL_CPPFLAGS = $(CPPFLAGS) $(HDF5_CPPFLAGS) $(Z_CPPFLAGS) |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
310 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
311 ## Use sort to remove duplicates. |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
312 SPARSE_CPPFLAGS = \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
313 $(sort $(AMD_CPPFLAGS) $(CAMD_CPPFLAGS) $(COLAMD_CPPFLAGS) \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
314 $(CCOLAMD_CPPFLAGS) $(CHOLMOD_CPPFLAGS) $(CXSPARSE_CPPFLAGS) \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
315 $(UMFPACK_CPPFLAGS)) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
316 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
317 ## Use sort to remove duplicates. |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
318 SPARSE_LDFLAGS = \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
319 $(sort $(AMD_LDFLAGS) $(CAMD_LDFLAGS) $(COLAMD_LDFLAGS) \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
320 $(CCOLAMD_LDFLAGS) $(CHOLMOD_LDFLAGS) $(CXSPARSE_LDFLAGS) \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
321 $(UMFPACK_LDFLAGS)) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
322 |
9615
ee3a5e9a381c
Changed SPARSE_LIBS order to respect dependency
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9613
diff
changeset
|
323 ## Order matters, at least on some systems (Cygwin, for example). |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
324 SPARSE_LIBS = \ |
9615
ee3a5e9a381c
Changed SPARSE_LIBS order to respect dependency
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9613
diff
changeset
|
325 $(CHOLMOD_LIBS) $(UMFPACK_LIBS) \ |
ee3a5e9a381c
Changed SPARSE_LIBS order to respect dependency
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9613
diff
changeset
|
326 $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \ |
ee3a5e9a381c
Changed SPARSE_LIBS order to respect dependency
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9613
diff
changeset
|
327 $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
328 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
329 ## Use sort to remove duplicates. |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
330 FFTW_CPPFLAGS = $(sort $(FFTW3_CPPFLAGS) $(FFTW3F_CPPFLAGS)) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
331 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
332 ## Use sort to remove duplicates. |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
333 FFTW_LDFLAGS = $(sort $(FFTW3_LDFLAGS) $(FFTW3F_LDFLAGS)) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
334 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
335 FFTW_LIBS = $(FFTW3_LIBS) $(FFTW3F_LIBS) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
336 |
5275 | 337 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@ |
338 | |
5708 | 339 TEXINFO_COLAMD = @TEXINFO_COLAMD@ |
340 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@ | |
341 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@ | |
6855 | 342 TEXINFO_QHULL = @TEXINFO_QHULL@ |
5708 | 343 |
2155 | 344 # The arguments passed to configure. |
2156 | 345 config_opts = @config_opts@ |
2155 | 346 |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8772
diff
changeset
|
347 CONFIG_SUBDIRS = @subdirs@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8772
diff
changeset
|
348 |
666 | 349 # ==================== Where To Install Things ==================== |
5 | 350 |
666 | 351 # The default location for installation. Everything is placed in |
352 # subdirectories of this directory. The default values for many of | |
353 # the variables below are expressed in terms of this one, so you may | |
354 # not need to change them. This defaults to /usr/local. | |
355 prefix = @prefix@ | |
5 | 356 |
666 | 357 # Like `prefix', but used for architecture-specific files. |
358 exec_prefix = @exec_prefix@ | |
359 | |
360 # Where to install Octave and other binaries that people will want to | |
361 # run directly. | |
362 bindir = @bindir@ | |
5 | 363 |
4411 | 364 # Normally the directory for installing executables that system |
365 # administrators run. This is the same as libexecdir on Cygwin systems. | |
366 sbindir = @sbindir@ | |
367 | |
5844 | 368 # The root of the directory tree for read-only |
369 # architecture-independent data files. | |
370 datarootdir = @datarootdir@ | |
371 | |
666 | 372 # Where to install architecture-independent data files. ${fcnfiledir} |
373 # and ${localfcnfiledir} are subdirectories of this. | |
374 datadir = @datadir@ | |
5 | 375 |
3141 | 376 libdir = @libdir@ |
377 | |
8940
6994961bf1f4
use doc-cache instead of DOC for doc cache file name
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
378 # Where to install and expect extra files like NEWS and doc-cache. |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
379 octetcdir = @octetcdir@ |
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
380 |
666 | 381 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141 | 382 # and other architecture-dependent data. |
383 octlibdir = @octlibdir@ | |
5 | 384 |
1720 | 385 # Where to install and expect executable programs to be run by Octave |
386 # rather than directly by users. | |
387 libexecdir = @libexecdir@ | |
388 | |
2141 | 389 # The prefix for Octave's include file directory. The default is |
390 # ${prefix}/include | |
2223 | 391 includedir = @includedir@ |
2141 | 392 |
666 | 393 # Where to install Octave's man pages, and what extension they should |
394 # have. The default is ${prefix}/man/man1 | |
395 mandir = @mandir@ | |
2223 | 396 man1dir = @man1dir@ |
397 man1ext = @man1ext@ | |
5 | 398 |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
399 # The full path to the default doc cache file. |
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
400 doc_cache_file = @doc_cache_file@ |
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
401 |
666 | 402 # Where to install and expect the info files describing Octave.. |
403 infodir = @infodir@ | |
404 | |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
405 # The full path to the default info file. |
2512 | 406 infofile = @infofile@ |
407 | |
666 | 408 # ==================== Octave-specific directories ==================== |
409 | |
2993 | 410 # These variables hold the values specific to Octave. They are |
666 | 411 # based on the values of the standard Make variables above. |
412 | |
5451 | 413 # What is the path separation character |
414 sepchar = @sepchar@ | |
415 | |
3597 | 416 # Where to install Octave's include files (they will actually be |
417 # installed in a subdirectory called octave). The default is | |
2993 | 418 # ${includedir}/octave-${version} |
419 octincludedir = @octincludedir@ | |
420 | |
666 | 421 # Where to install the function file distributed with |
422 # Octave. This includes the Octave version, so that the | |
423 # function files for different versions of Octave will install | |
424 # themselves in separate directories. | |
425 fcnfiledir = @fcnfiledir@ | |
426 | |
427 # Directories Octave should search for function files specific | |
428 # to this site (i.e. customizations), before consulting | |
429 # ${fcnfiledir}. This should be a colon-separated list of | |
430 # directories. | |
827 | 431 localfcnfiledir = @localfcnfiledir@ |
4449 | 432 localapifcnfiledir = @localapifcnfiledir@ |
3597 | 433 localverfcnfiledir = @localverfcnfiledir@ |
5 | 434 |
666 | 435 # Where to put executables to be run by Octave rather than |
436 # the user. This path usually includes the Octave version | |
437 # and configuration name, so that multiple configurations | |
438 # for multiple versions of Octave may be installed at once. | |
439 archlibdir = @archlibdir@ | |
440 | |
2439 | 441 # Where to put executables to be run by Octave rather than by the |
442 # user that are specific to this site. | |
443 localarchlibdir = @localarchlibdir@ | |
5909 | 444 localapiarchlibdir = @localapiarchlibdir@ |
3597 | 445 localverarchlibdir = @localverarchlibdir@ |
2439 | 446 |
666 | 447 # Where to put object files that will by dynamically loaded. |
448 # This path usually includes the Octave version and configuration | |
449 # name, so that multiple configurations for multiple versions of | |
450 # Octave may be installed at once. | |
451 octfiledir = @octfiledir@ | |
5 | 452 |
666 | 453 # Directories Octave should search for object files that will be |
454 # dynamically loaded and that are specific to this site | |
455 # (i.e. customizations), before consulting ${octfiledir}. This should | |
456 # be a colon-separated list of directories. | |
827 | 457 localoctfiledir = @localoctfiledir@ |
4449 | 458 localapioctfiledir = @localapioctfiledir@ |
3597 | 459 localveroctfiledir = @localveroctfiledir@ |
666 | 460 |
5814 | 461 # Where Octave will search to find image files. |
827 | 462 imagedir = @imagedir@ |
685 | 463 |
5 | 464 # The type of computer we are running on. |
3136 | 465 canonical_host_type = @canonical_host_type@ |
5 | 466 |
4443 | 467 # Where Octave will look for startup files |
468 startupfiledir = ${fcnfiledir}/startup | |
469 localstartupfiledir = ${localfcnfiledir}/startup | |
470 | |
6028 | 471 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ... |
472 library_path_var = @library_path_var@ | |
473 | |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
474 # The separator used for elements of the LD_PRELOAD variable (might be |
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
475 # a space, so protect with $(null)) |
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
476 null := |
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
477 ldpreloadsep = $(null)@ldpreloadsep@$(null) |
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
478 |
4199 | 479 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ |
480 | |
5 | 481 # The following pattern rules and the substitution functions require |
482 # GNU make. If you don't have it, get it! | |
483 | |
7063 | 484 # How to make .o files: |
5 | 485 |
7063 | 486 %.o : %.f |
487 $(FC) -c $(ALL_FFLAGS) -o $@ $< | |
5 | 488 |
1984 | 489 %.o : %.c |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
490 $(CC) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5 | 491 |
1984 | 492 %.o : %.cc |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
493 $(CXX) -c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308 | 494 |
7063 | 495 pic/%.o : %.f |
496 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ | |
497 | |
1984 | 498 pic/%.o : %.c |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
499 $(CC) -c $(ALL_CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ |
1984 | 500 |
501 pic/%.o : %.cc | |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
502 $(CXX) -c $(ALL_CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ |
1984 | 503 |
308 | 504 # Here is a rule for generating dependencies for .cc files: |
505 | |
1984 | 506 %.d : %.cc |
518 | 507 @echo making $@ from $< |
508 @rm -f $@ | |
3775 | 509 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
4084 | 510 $(SED) \ |
3775 | 511 $(DEPEND_EXTRA_SED_PATTERN) \ |
512 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4050 | 513 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t |
4014 | 514 @mv $@-t $@ |
308 | 515 |
516 # And one for .c files.too: | |
517 | |
1984 | 518 %.d : %.c |
518 | 519 @echo making $@ from $< |
520 @rm -f $@ | |
3775 | 521 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
4084 | 522 $(SED) \ |
3775 | 523 $(DEPEND_EXTRA_SED_PATTERN) \ |
524 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4014 | 525 -e 's,$*\.o,pic/& & $@,g' > $@-t |
526 @mv $@-t $@ | |
1166 | 527 |
1685 | 528 define do-subdir-for-command |
4414 | 529 echo making $@ in $d; $(MAKE) -C $d $@; |
1166 | 530 endef |
1685 | 531 |
532 define subdir-for-command | |
533 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) | |
534 endef | |
2157 | 535 |
6152 | 536 define simple-move-if-change-rule |
537 if [ -s $@-t ]; then \ | |
538 $(top_srcdir)/move-if-change $@-t $@; \ | |
539 else \ | |
540 echo "$@-t is empty!" 1>&2; \ | |
541 rm -f $@-t; \ | |
542 exit 1; \ | |
543 fi | |
544 endef | |
545 | |
546 define builddir-move-if-change-rule | |
547 if [ -s $(@F)-t ]; then \ | |
548 $(top_srcdir)/move-if-change $(@F)-t $(@F); \ | |
549 else \ | |
550 echo "$(@F)-t is empty!" 1>&2; \ | |
551 rm -f $(@F)-t; \ | |
552 exit 1; \ | |
553 fi | |
554 endef | |
555 | |
2862 | 556 # Yes, the second sed command near the end is needed, to avoid limits |
557 # in command lengths for some versions of sed. UGLY_DEFS is often | |
558 # quite large, so it makes sense to split this command there. | |
559 | |
2157 | 560 define do-subst-config-vals |
2223 | 561 echo "making $@ from $<" |
4084 | 562 $(SED) < $< \ |
5451 | 563 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \ |
564 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
565 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \ | |
566 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \ | |
567 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \ | |
568 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \ | |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
569 -e "s|%OCTAVE_CONF_AMD_CPPFLAGS%|\"${AMD_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
570 -e "s|%OCTAVE_CONF_AMD_LDFLAGS%|\"${AMD_LDFLAGS}\"|" \ |
9514 | 571 -e "s|%OCTAVE_CONF_AMD_LIBS%|\"${AMD_LIBS}\"|" \ |
5451 | 572 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \ |
573 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \ | |
9568
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
574 -e "s|%OCTAVE_CONF_ARPACK_CPPFLAGS%|\"${ARPACK_CPPFLAGS}\"|" \ |
d3fccc4c4b9e
use OCTAVE_CHECK_LIBRARY to check for ARPACK
John W. Eaton <jwe@octave.org>
parents:
9542
diff
changeset
|
575 -e "s|%OCTAVE_CONF_ARPACK_LDFLAGS%|\"${ARPACK_LDFLAGS}\"|" \ |
9514 | 576 -e "s|%OCTAVE_CONF_ARPACK_LIBS%|\"${ARPACK_LIBS}\"|" \ |
5451 | 577 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
578 -e "s|%OCTAVE_CONF_CAMD_CPPFLAGS%|\"${CAMD_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
579 -e "s|%OCTAVE_CONF_CAMD_LDFLAGS%|\"${CAMD_LDFLAGS}\"|" \ |
9514 | 580 -e "s|%OCTAVE_CONF_CAMD_LIBS%|\"${CAMD_LIBS}\"|" \ |
5451 | 581 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ |
8772
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
582 -e "s|%OCTAVE_CONF_CARBON_LIBS%|\"${CARBON_LIBS}\"|" \ |
5451 | 583 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \ |
584 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \ | |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
585 -e "s|%OCTAVE_CONF_CCOLAMD_CPPFLAGS%|\"${CCOLAMD_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
586 -e "s|%OCTAVE_CONF_CCOLAMD_LDFLAGS%|\"${CCOLAMD_LDFLAGS}\"|" \ |
9514 | 587 -e "s|%OCTAVE_CONF_CCOLAMD_LIBS%|\"${CCOLAMD_LIBS}\"|" \ |
5451 | 588 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
589 -e "s|%OCTAVE_CONF_CHOLMOD_CPPFLAGS%|\"${CHOLMOD_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
590 -e "s|%OCTAVE_CONF_CHOLMOD_LDFLAGS%|\"${CHOLMOD_LDFLAGS}\"|" \ |
9514 | 591 -e "s|%OCTAVE_CONF_CHOLMOD_LIBS%|\"${CHOLMOD_LIBS}\"|" \ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
592 -e "s|%OCTAVE_CONF_COLAMD_CPPFLAGS%|\"${COLAMD_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
593 -e "s|%OCTAVE_CONF_COLAMD_LDFLAGS%|\"${COLAMD_LDFLAGS}\"|" \ |
9514 | 594 -e "s|%OCTAVE_CONF_COLAMD_LIBS%|\"${COLAMD_LIBS}\"|" \ |
5451 | 595 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \ |
596 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \ | |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
597 -e "s|%OCTAVE_CONF_CURL_CPPFLAGS%|\"${CURL_CPPFLAGS}\"|" \ |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
598 -e "s|%OCTAVE_CONF_CURL_LDFLAGS%|\"${CURL_LDFLAGS}\"|" \ |
6043 | 599 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
600 -e "s|%OCTAVE_CONF_CXSPARSE_CPPFLAGS%|\"${CXSPARSE_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
601 -e "s|%OCTAVE_CONF_CXSPARSE_LDFLAGS%|\"${CXSPARSE_LDFLAGS}\"|" \ |
9514 | 602 -e "s|%OCTAVE_CONF_CXSPARSE_LIBS%|\"${CXSPARSE_LIBS}\"|" \ |
5451 | 603 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \ |
604 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \ | |
605 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \ | |
606 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \ | |
607 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \ | |
608 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
609 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \ | |
610 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \ | |
611 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \ | |
612 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \ | |
9515 | 613 -e "s|%OCTAVE_CONF_DL_LIBS%|\"${DL_LIBS}\"|" \ |
5451 | 614 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \ |
615 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \ | |
5498 | 616 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \ |
5451 | 617 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \ |
618 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \ | |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
619 -e "s|%OCTAVE_CONF_FFTW3_CPPFLAGS%|\"${FFTW3_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
620 -e "s|%OCTAVE_CONF_FFTW3_LDFLAGS%|\"${FFTW3_LDFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
621 -e "s|%OCTAVE_CONF_FFTW3_LIBS%|\"${FFTW3_LIBS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
622 -e "s|%OCTAVE_CONF_FFTW3F_CPPFLAGS%|\"${FFTW3F_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
623 -e "s|%OCTAVE_CONF_FFTW3F_LDFLAGS%|\"${FFTW3F_LDFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
624 -e "s|%OCTAVE_CONF_FFTW3F_LIBS%|\"${FFTW3F_LIBS}\"|" \ |
5451 | 625 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \ |
626 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \ | |
9514 | 627 -e "s|%OCTAVE_CONF_FT2_LIBS%|\"${FT2_LIBS}\"|" \ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
628 -e "s|%OCTAVE_CONF_GLPK_CPPFLAGS%|\"${GLPK_CPPFLAGS}\"|" \ |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
629 -e "s|%OCTAVE_CONF_GLPK_LDFLAGS%|\"${GLPK_LDFLAGS}\"|" \ |
5451 | 630 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \ |
7361 | 631 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \ |
9514 | 632 -e "s|%OCTAVE_CONF_GRAPHICS_LIBS%|\"${GRAPHICS_LIBS}\"|" \ |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
633 -e "s|%OCTAVE_CONF_HDF5_CPPFLAGS%|\"${HDF5_CPPFLAGS}\"|" \ |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
634 -e "s|%OCTAVE_CONF_HDF5_LDFLAGS%|\"${HDF5_LDFLAGS}\"|" \ |
9514 | 635 -e "s|%OCTAVE_CONF_HDF5_LIBS%|\"${HDF5_LIBS}\"|" \ |
5451 | 636 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \ |
6311 | 637 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \ |
5451 | 638 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \ |
639 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \ | |
640 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \ | |
641 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \ | |
642 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \ | |
643 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \ | |
644 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \ | |
6710 | 645 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \ |
5451 | 646 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \ |
647 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \ | |
648 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \ | |
649 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \ | |
650 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \ | |
651 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \ | |
652 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \ | |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9572
diff
changeset
|
653 -e "s|%OCTAVE_CONF_MAGICK_CPPFLAGS%|\"${MAGICK_CPPFLAGS}\"|" \ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9572
diff
changeset
|
654 -e "s|%OCTAVE_CONF_MAGICK_LDFLAGS%|\"${MAGICK_LDFLAGS}\"|" \ |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
655 -e "s|%OCTAVE_CONF_MAGICK_LIBS%|\"${MAGICK_LIBS}\"|" \ |
6682 | 656 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \ |
6311 | 657 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
658 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
9514 | 659 -e "s|%OCTAVE_CONF_OPENGL_LIBS%|\"${OPENGL_LIBS}\"|" \ |
6311 | 660 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \ |
9514 | 661 -e "s|%OCTAVE_CONF_PTHREAD_CFLAGS%|\"${PTHREAD_CFLAGS}\"|" \ |
662 -e "s|%OCTAVE_CONF_PTHREAD_LIBS%|\"${PTHREAD_LIBS}\"|" \ | |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
663 -e "s|%OCTAVE_CONF_QHULL_CPPFLAGS%|\"${QHULL_CPPFLAGSS}\"|" \ |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
664 -e "s|%OCTAVE_CONF_QHULL_LDFLAGS%|\"${QHULL_LDFLAGSS}\"|" \ |
9514 | 665 -e "s|%OCTAVE_CONF_QHULL_LIBS%|\"${QHULL_LIBS}\"|" \ |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
666 -e "s|%OCTAVE_CONF_QRUPDATE_CPPFLAGS%|\"${QRUPDATE_CPPFLAGS}\"|" \ |
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
667 -e "s|%OCTAVE_CONF_QRUPDATE_LDFLAGS%|\"${QRUPDATE_LDFLAGS}\"|" \ |
9514 | 668 -e "s|%OCTAVE_CONF_QRUPDATE_LIBS%|\"${QRUPDATE_LIBS}\"|" \ |
5451 | 669 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \ |
670 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \ | |
9515 | 671 -e "s|%OCTAVE_CONF_READLINE_LIBS%|\"${READLINE_LIBS}\"|" \ |
9514 | 672 -e "s|%OCTAVE_CONF_REGEX_LIBS%|\"${REGEX_LIBS}\"|" \ |
5451 | 673 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \ |
674 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \ | |
675 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \ | |
676 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \ | |
677 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \ | |
678 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \ | |
679 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \ | |
680 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \ | |
681 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \ | |
682 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \ | |
9515 | 683 -e "s|%OCTAVE_CONF_TERM_LIBS%|\"${TERM_LIBS}\"|" \ |
5451 | 684 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \ |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
685 -e "s|%OCTAVE_CONF_UMFPACK_CPPFLAGS%|\"${UMFPACK_CPPFLAGS}\"|" \ |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
686 -e "s|%OCTAVE_CONF_UMFPACK_LDFLAGS%|\"${UMFPACK_LDFLAGS}\"|" \ |
9514 | 687 -e "s|%OCTAVE_CONF_UMFPACK_LIBS%|\"${UMFPACK_LIBS}\"|" \ |
5451 | 688 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \ |
689 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \ | |
690 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \ | |
8772
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
691 -e "s|%OCTAVE_CONF_X11_INCFLAGS%|\"${X11_INCFLAGS}\"|" \ |
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
692 -e "s|%OCTAVE_CONF_X11_LIBS%|\"${X11_LIBS}\"|" \ |
5451 | 693 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \ |
694 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \ | |
695 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \ | |
696 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \ | |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
697 -e "s|%OCTAVE_CONF_Z_CPPFLAGS%|\"${Z_CPPFLAGS}\"|" \ |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
698 -e "s|%OCTAVE_CONF_Z_LDFLAGS%|\"${Z_LDFLAGS}\"|" \ |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9523
diff
changeset
|
699 -e "s|%OCTAVE_CONF_Z_LIBS%|\"${Z_LIBS}\"|" \ |
5451 | 700 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \ |
701 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t | |
6152 | 702 $(simple-move-if-change-rule) |
2157 | 703 endef |
704 | |
705 define do-subst-default-vals | |
2223 | 706 echo "making $@ from $<" |
4084 | 707 $(SED) < $< > $@-t \ |
5451 | 708 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \ |
709 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
710 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
711 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \ | |
5847 | 712 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \ |
5451 | 713 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
714 -e "s|%OCTAVE_DOC_CACHE_FILE%|\"${doc_cache_file}\"|" \ |
5451 | 715 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \ |
716 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \ | |
717 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \ | |
718 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \ | |
719 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \ | |
720 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \ | |
721 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \ | |
722 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \ | |
723 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \ | |
724 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \ | |
725 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \ | |
726 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \ | |
727 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \ | |
728 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \ | |
5909 | 729 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \ |
5451 | 730 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \ |
731 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \ | |
732 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \ | |
733 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \ | |
734 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \ | |
735 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \ | |
736 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \ | |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
737 -e "s|%OCTAVE_OCTETCDIR%|\"${octetcdir}\"|" \ |
5451 | 738 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
739 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
740 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \ | |
741 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \ | |
5658 | 742 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \ |
743 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \ | |
5451 | 744 -e "s|%OCTAVE_VERSION%|\"${version}\"|" |
6152 | 745 $(simple-move-if-change-rule) |
2157 | 746 endef |
4227 | 747 |
5708 | 748 define do-subst-texinfo-vals |
749 echo "making $@ from $<" | |
750 $(SED) < $< \ | |
6583 | 751 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
6577 | 752 -e "s|%top_srcdir%|${top_srcdir}|" \ |
5708 | 753 -e "s|%OCTAVE_HOME%|${prefix}|" \ |
754 -e "s|%OCTAVE_VERSION%|${version}|" \ | |
755 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \ | |
756 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \ | |
6855 | 757 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" \ |
758 -e "s|%TEXINFO_QHULL%|${TEXINFO_QHULL}|" | \ | |
5942 | 759 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t |
6152 | 760 $(simple-move-if-change-rule) |
5708 | 761 endef |
762 | |
5776 | 763 define do-subst-script-vals |
764 echo "making $@ from $<" | |
765 $(SED) < $< \ | |
7244 | 766 -e "s|%AWK%|${AWK}|g" \ |
767 -e "s|%FIND%|${FIND}|g" \ | |
8005
c0d7eb662384
run-octave.in: use sed to append : to path elements
John W. Eaton <jwe@octave.org>
parents:
7926
diff
changeset
|
768 -e "s|%SED%|${SED}|g" \ |
6028 | 769 -e "s|%library_path_var%|${library_path_var}|g" \ |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
770 -e "s|%liboctinterp%|${SHLPRE}octinterp.${SHLEXT}|g" \ |
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
771 -e "s|%liboctave%|${SHLPRE}octave.${SHLEXT}|g" \ |
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
772 -e "s|%libcruft%|${SHLPRE}cruft.${SHLEXT}|g" \ |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9575
diff
changeset
|
773 -e "s|%ldpreloadsep%|${ldpreloadsep}|g" \ |
5776 | 774 -e "s|%srcdir%|${srcdir}|" \ |
775 -e "s|%top_srcdir%|${top_srcdir}|" \ | |
5793 | 776 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
5776 | 777 -e "s|%builddir%|$(shell pwd)|" > $@-t |
6152 | 778 $(simple-move-if-change-rule) |
5776 | 779 endef |
780 | |
6102 | 781 define do-subst-f77-mangling |
782 echo "making $@ from $<" | |
783 $(SED) < $< \ | |
784 -e "s|%F77_TOLOWER%|${F77_TOLOWER}|g" \ | |
785 -e "s|%F77_APPEND_UNDERSCORE%|${F77_APPEND_UNDERSCORE}|" \ | |
786 -e "s|%F77_APPEND_EXTRA_UNDERSCORE%|${F77_APPEND_EXTRA_UNDERSCORE}|" > $@-t | |
6152 | 787 $(simple-move-if-change-rule) |
6102 | 788 endef |
789 | |
5597 | 790 define do-mkpkgadd |
791 $(top_srcdir)/mkpkgadd $(srcdir) > PKG_ADD.t | |
792 if [ -n "`cat PKG_ADD.t`" ]; then \ | |
793 mv PKG_ADD.t PKG_ADD ; \ | |
794 else \ | |
795 rm -f PKG_ADD.t ; \ | |
796 fi | |
797 endef | |
798 | |
4227 | 799 define do-script-install |
4413 | 800 $(top_srcdir)/mkinstalldirs \ |
801 $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) | |
6279 | 802 for f in $(FCN_FILES); do \ |
803 fbase=`basename $$f`; \ | |
804 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
805 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
4227 | 806 done |
4413 | 807 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t |
808 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ | |
9078
e92591954ea2
Makeconf.in (do-script-install): Use $(INSTALL_DATA) instead of mv to install PKG_ADD file
John W. Eaton <jwe@octave.org>
parents:
9077
diff
changeset
|
809 $(INSTALL_DATA) $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ |
4227 | 810 else \ |
4413 | 811 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ |
4227 | 812 fi |
813 endef | |
814 | |
815 define do-script-uninstall | |
816 for f in $(FCN_FILES_NO_DIR); \ | |
4413 | 817 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
4227 | 818 done |
6366 | 819 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD |
6654 | 820 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) |
4227 | 821 endef |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
822 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
823 define do-check-m-sources |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
824 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
|
825 found=false; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
826 for m in $(SOURCES); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
827 if [ "$$f" = "$$m" ]; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
828 found=true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
829 break; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
830 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
831 done; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
832 if $$found; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
833 true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
834 else \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
835 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
|
836 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
837 done |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
838 endef |