Mercurial > hg > octave-nkf
comparison Makeconf.in @ 3029:9ce32027e269
[project @ 1997-06-05 06:39:06 by jwe]
author | jwe |
---|---|
date | Thu, 05 Jun 1997 06:46:03 +0000 |
parents | 5a9dd0a68b1d |
children | ad0e94b6784c |
comparison
equal
deleted
inserted
replaced
3028:6d56646a2d1f | 3029:9ce32027e269 |
---|---|
7 # University of Wisconsin-Madison | 7 # University of Wisconsin-Madison |
8 # Department of Chemical Engineering | 8 # Department of Chemical Engineering |
9 | 9 |
10 SHELL = /bin/sh | 10 SHELL = /bin/sh |
11 | 11 |
12 # A shell command to extract the version number from version.h. | |
13 getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q | |
14 | |
15 # Look for version.h to get version information. | |
16 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
17 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
18 version := $(shell $(getversion) $(version_file)) | |
19 | |
12 #### Start of system configuration section. #### | 20 #### Start of system configuration section. #### |
13 | 21 |
14 EXE = @EXE@ | 22 EXE = @EXE@ |
15 | 23 |
16 LEX = @LEX@ | 24 LEX = @LEX@ |
40 | 48 |
41 OCTAVE_LITE = @OCTAVE_LITE@ | 49 OCTAVE_LITE = @OCTAVE_LITE@ |
42 | 50 |
43 SHARED_LIBS = @SHARED_LIBS@ | 51 SHARED_LIBS = @SHARED_LIBS@ |
44 SHLEXT = @SHLEXT@ | 52 SHLEXT = @SHLEXT@ |
53 SHLEXT_VER = $(SHLEXT).$(version) | |
54 | |
55 LIBEXT = a | |
45 | 56 |
46 # Fortran to C translator and associated flags. | 57 # Fortran to C translator and associated flags. |
47 | 58 |
48 F2C = @F2C@ | 59 F2C = @F2C@ |
49 F2CFLAGS = @F2CFLAGS@ | 60 F2CFLAGS = @F2CFLAGS@ |
127 LIBREADLINE = @LIBREADLINE@ | 138 LIBREADLINE = @LIBREADLINE@ |
128 | 139 |
129 # The arguments passed to configure. | 140 # The arguments passed to configure. |
130 config_opts = @config_opts@ | 141 config_opts = @config_opts@ |
131 | 142 |
132 # A shell command to extract the version number from version.h. | |
133 getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q | |
134 | |
135 # Look for version.h to get version information. | |
136 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
137 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
138 version := $(shell $(getversion) $(version_file)) | |
139 | |
140 # ==================== Where To Install Things ==================== | 143 # ==================== Where To Install Things ==================== |
141 | 144 |
142 # The default location for installation. Everything is placed in | 145 # The default location for installation. Everything is placed in |
143 # subdirectories of this directory. The default values for many of | 146 # subdirectories of this directory. The default values for many of |
144 # the variables below are expressed in terms of this one, so you may | 147 # the variables below are expressed in terms of this one, so you may |
183 | 186 |
184 # ==================== Octave-specific directories ==================== | 187 # ==================== Octave-specific directories ==================== |
185 | 188 |
186 # These variables hold the values specific to Octave. They are | 189 # These variables hold the values specific to Octave. They are |
187 # based on the values of the standard Make variables above. | 190 # based on the values of the standard Make variables above. |
188 | |
189 # Where to install Octave's library files. The default is | |
190 # ${libdir}/octave-${version} | |
191 octlibdir = @octlibdir@ | |
192 | 191 |
193 # Where to install Octave's include files. The default is | 192 # Where to install Octave's include files. The default is |
194 # ${includedir}/octave-${version} | 193 # ${includedir}/octave-${version} |
195 octincludedir = @octincludedir@ | 194 octincludedir = @octincludedir@ |
196 | 195 |
326 -e "s;%HOST_CXXFLAGS%;\"${HOST_CXXFLAGS}\";" \ | 325 -e "s;%HOST_CXXFLAGS%;\"${HOST_CXXFLAGS}\";" \ |
327 -e "s;%INCFLAGS%;\"-I${octincludedir} -I${includedir}\";" \ | 326 -e "s;%INCFLAGS%;\"-I${octincludedir} -I${includedir}\";" \ |
328 -e "s;%LDFLAGS%;\"${LDFLAGS}\";" \ | 327 -e "s;%LDFLAGS%;\"${LDFLAGS}\";" \ |
329 -e "s;%LEXLIB%;\"${LEXLIB}\";" \ | 328 -e "s;%LEXLIB%;\"${LEXLIB}\";" \ |
330 -e "s;%LIBDLFCN%;\"${LIBDLFCN}\";" \ | 329 -e "s;%LIBDLFCN%;\"${LIBDLFCN}\";" \ |
331 -e "s;%LIBFLAGS%;\"-L${octlibdir} -L${libdir}\";" \ | 330 -e "s;%LIBFLAGS%;\"-L${libdir}\";" \ |
332 -e "s;%LIBPLPLOT%;\"${LIBPLPLOT}\";" \ | 331 -e "s;%LIBPLPLOT%;\"${LIBPLPLOT}\";" \ |
333 -e "s;%LIBS%;\"${LIBS}\";" \ | 332 -e "s;%LIBS%;\"${LIBS}\";" \ |
334 -e "s;%NO_IMPLICIT_TEMPLATES%;\"${NO_IMPLICIT_TEMPLATES}\";" \ | 333 -e "s;%NO_IMPLICIT_TEMPLATES%;\"${NO_IMPLICIT_TEMPLATES}\";" \ |
335 -e "s;%RLD_FLAG%;\"${RLD_FLAG}\";" \ | 334 -e "s;%RLD_FLAG%;\"${RLD_FLAG}\";" \ |
336 -e "s;%SH_LD%;\"${SH_LD}\";" \ | 335 -e "s;%SH_LD%;\"${SH_LD}\";" \ |
371 | 370 |
372 # XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory | 371 # XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory |
373 # of $includedir. | 372 # of $includedir. |
374 | 373 |
375 define mk-includedir-link | 374 define mk-includedir-link |
376 src=`echo $(octincludedir) | sed 's|^$(includedir)/*||'` ; \ | 375 src=`echo $(octincludedir) | sed 's|^$(includedir)/*||'`; \ |
377 echo $$src ; \ | 376 echo $$src; \ |
378 if [ "$$src" = "octave" ] ; then \ | 377 if [ "$$src" = "octave" ]; then \ |
379 true ; \ | 378 true; \ |
380 else \ | 379 else \ |
381 cd $(includedir) ; \ | 380 cd $(includedir); \ |
382 rm -f octave ; \ | 381 rm -f octave; \ |
383 $(LN_S) $$src octave ; \ | 382 $(LN_S) $$src octave; \ |
384 fi | 383 fi |
385 endef | 384 endef |
386 | |
387 # Make a relative symbolic link from $libdir/octave to $octlibdir. | |
388 | |
389 # XXX FIXME XXX -- this assumes that $octlibdir is a subdirectory of $libdir. | |
390 | |
391 define mk-libdir-link | |
392 src=`echo $(octlibdir) | sed 's|^$(libdir)/*||'` ; \ | |
393 if [ "$$src" = "octave" ] ; then \ | |
394 true ; \ | |
395 else \ | |
396 cd $(libdir) ; \ | |
397 rm -f octave ; \ | |
398 $(LN_S) $$src octave ; \ | |
399 fi | |
400 endef |