Mercurial > hg > octave-lyh
changeset 2147:678cb6a93368
[project @ 1996-05-13 06:14:14 by jwe]
author | jwe |
---|---|
date | Mon, 13 May 1996 06:15:09 +0000 |
parents | 5a417927755a |
children | ee08cc210438 |
files | Makeconf.in octMakefile.in src/Makefile.in |
diffstat | 3 files changed, 45 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/Makeconf.in +++ b/Makeconf.in @@ -119,6 +119,9 @@ CXXLIB_LIST = @CXXLIB_LIST@ CXXLIB_PATH = @CXXLIB_PATH@ +TERMLIBS = @TERMLIBS@ +LIBPLPLOT = @LIBPLPLOT@ +LIBDLFCN = @LIBDLFCN@ # A shell command to extract the version number from version.h. getversion = sed -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q
--- a/octMakefile.in +++ b/octMakefile.in @@ -56,24 +56,47 @@ all: octave-bug $(SUBDIRS) .PHONY: all -octave-bug: octave-bug.in - @(sed < $< > $@.tmp \ - -e "s;%VERSION%;${version};" \ - -e "s;%TARGET_HOST_TYPE%;${target_host_type};" \ - -e "s;%F77%;${F77};" \ - -e "s;%FFLAGS%;${FFLAGS};" \ - -e "s;%F2C%;${F2C};" \ - -e "s;%F2CFLAGS%;${F2CFLAGS};" \ - -e "s;%FLIBS%;${FLIBS};" \ - -e "s;%CC%;${CC};" \ - -e "s;%CC_VERSION%;${CC_VERSION};" \ - -e "s;%CFLAGS%;${BUG_CFLAGS};" \ - -e "s;%CXX%;${CXX};" \ - -e "s;%CXX_VERSION%;${CXX_VERSION};" \ - -e "s;%CXXFLAGS%;${BUG_CXXFLAGS};" \ - -e "s;%LDFLAGS%;${LDFLAGS};" \ - -e "s;%DEFS%;${UGLY_DEFS};") - @mv $@.tmp $@ +define do-subst-config-vals +echo making $@ from $(srcdir)/$@.in +sed < $(srcdir)/$@.in > $@.tmp \ + -e "s;%VERSION%;${version};" \ + -e "s;%TARGET_HOST_TYPE%;${target_host_type};" \ + -e "s;%F77%;${F77};" \ + -e "s;%FFLAGS%;${FFLAGS};" \ + -e "s;%F2C%;${F2C};" \ + -e "s;%F2CFLAGS%;${F2CFLAGS};" \ + -e "s;%FLIBS%;${FLIBS};" \ + -e "s;%CPPFLAGS%;${CPPFLAGS};" \ + -e "s;%INCFLAGS%;-I${topincludedir} -I${includedir};" \ + -e "s;%CC%;${CC};" \ + -e "s;%CC_VERSION%;${CC_VERSION};" \ + -e "s;%CFLAGS%;${BUG_CFLAGS};" \ + -e "s;%CXX%;${CXX};" \ + -e "s;%CXX_VERSION%;${CXX_VERSION};" \ + -e "s;%CXXFLAGS%;${CXXFLAGS};" \ + -e "s;%CXXPICFLAG%;${CXXPICFLAG};" \ + -e "s;%BUG_CXXFLAGS%;${BUG_CXXFLAGS};" \ + -e "s;%HOST_CXXFLAGS%;${HOST_CXXFLAGS};" \ + -e "s;%NO_IMPLICIT_TEMPLATES%;${NO_IMPLICIT_TEMPLATES};" \ + -e "s;%GCC_IEEE_FP_FLAG%;${GCC_IEEE_FP_FLAG};" \ + -e "s;%LDFLAGS%;${LDFLAGS};" \ + -e "s;%LIBFLAGS%;-L${libdir};" \ + -e "s;%RLD_FLAG%;${RLD_FLAG};" \ + -e "s;%CXXLIBS%;${CXXLIBS};" \ + -e "s;%TERMLIBS%;${TERMLIBS};" \ + -e "s;%LIBS%;${LIBS};" \ + -e "s;%LEXLIB%;${LEXLIB};" \ + -e "s;%LIBPLPLOT%;${LIBPLPLOT};" \ + -e "s;%LIBDLFCN%;${LIBDLFCN};" \ + -e "s;%DEFS%;${UGLY_DEFS};" +$(top_srcdir)/move-if-change $@.tmp $@ +endef + +octave-bug: + @$(do-subst-config-vals) + +mkoctfile: + @$(do-subst-config-vals) $(SUBDIRS): echo making all in $@
--- a/src/Makefile.in +++ b/src/Makefile.in @@ -157,13 +157,11 @@ -L../kpathsea -L../glob -L../dlfcn -L. $(RLD_FLAG) OCTAVE_LIBS = -loctinterp -loctave -ltinst -lcruft \ - @LIBPLPLOT@ -lreadline -lkpathsea -lglob @LIBDLFCN@ + $(LIBPLPLOT) -lreadline -lkpathsea -lglob $(LIBDLFCN) LIBS_TO_INSTALL = liboctinterp.a libtinst.a \ liboctinterp.$(SHLEXT) libtinst.$(SHLEXT) -TERMLIBS = @TERMLIBS@ - LIBS = @LIBS@ DISTFILES = Makefile.in mkdefs mkbuiltins mk-oct-links.in \