Mercurial > hg > octave-avbm
changeset 2163:8901e415035a
[project @ 1996-05-13 10:35:04 by jwe]
Initial revision
author | jwe |
---|---|
date | Mon, 13 May 1996 10:35:29 +0000 |
parents | a940dcdfe9de |
children | 269db7306980 |
files | mkoctfile.in src/oct-conf.h.in |
diffstat | 2 files changed, 202 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/mkoctfile.in @@ -0,0 +1,56 @@ +#! /bin/sh +# +# mkoctfile -- create a .oct file suitable for dynamic linking by +# Octave. + +set -e + +if [ $# -eq 1 ]; then + srcfile="$1" + basnm=`echo $srcfile | sed 's,\.cc$,,'` + objfile=$basnm.o + octfile=$basnm.oct +else + echo "usage: mkoctfile file.cc" 1>&2 + exit 1 +fi + +# Configuration: these variables are filled in at configuration time. + +CPPFLAGS=%CPPFLAGS% +INCFLAGS=%INCFLAGS% +CXX=%CXX% +CXX_VERSION=%CXX_VERSION% +CXXFLAGS=%CXXFLAGS% +CXXPICFLAG=%CXXPICFLAG% +HOST_CXXFLAGS=%HOST_CXXFLAGS% +NO_IMPLICIT_TEMPLATES=%NO_IMPLICIT_TEMPLATES% +GCC_IEEE_FP_FLAG=%GCC_IEEE_FP_FLAG% + +LDFLAGS=%LDFLAGS% +LIBFLAGS=%LIBFLAGS% +RLD_FLAG=%RLD_FLAG% +FLIBS=%FLIBS% +LIBS=%LIBS% +LEXLIB=%LEXLIB% +CXXLIBS=%CXXLIBS% +TERMLIBS=%TERMLIBS% +LIBPLPLOT=%LIBPLPLOT% +LIBDLFCN=%LIBDLFCN% + +# For now, leave -lglob out (glob/Makefile.in needs to be fixed to +# install it. + +OCTAVE_LIBS="-loctinterp -loctave -ltinst -lcruft \ + $LIBPLPLOT -lreadline -lkpathsea $LIBDLFCN" + +ALL_CXXFLAGS="$INCFLAGS $HOST_CXXFLAGS $NO_IMPLICIT_TEMPLATES \ + $GCC_IEEE_FP_FLAG $CXXFLAGS" + +echo "making $objfile from $srcfile" + +$CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $srcfile -o $objfile + +echo "making $octfile from $objfile" + +$CXX -shared -o $octfile $objfile $LIBFLAGS $RLD_FLAG $OCTAVE_LIBS $FLIBS $LEXLIB $TERMLIBS $LIBS -lg++
new file mode 100644 --- /dev/null +++ b/src/oct-conf.h.in @@ -0,0 +1,146 @@ +// oct-conf.h.in +/* + +Copyright (C) 1996 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +#if !defined (octave_conf_h) +#define octave_conf_h 1 + +#ifndef config_opts +#define config_opts %config_opts% +#endif + +#ifndef TARGET_HOST_TYPE +#define TARGET_HOST_TYPE %TARGET_HOST_TYPE% +#endif + +#ifndef F77 +#define F77 %F77% +#endif + +#ifndef FFLAGS +#define FFLAGS %FFLAGS% +#endif + +#ifndef FPICFLAG +#define FPICFLAG %FPICFLAG% +#endif + +#ifndef F2C +#define F2C %F2C% +#endif + +#ifndef F2CFLAGS +#define F2CFLAGS %F2CFLAGS% +#endif + +#ifndef FLIBS +#define FLIBS %FLIBS% +#endif + +#ifndef CPPFLAGS +#define CPPFLAGS %CPPFLAGS% +#endif + +#ifndef INCFLAGS +#define INCFLAGS %INCFLAGS% +#endif + +#ifndef CC +#define CC %CC% +#endif + +#ifndef CC_VERSION +#define CC_VERSION %CC_VERSION% +#endif + +#ifndef CFLAGS +#define CFLAGS %CFLAGS% +#endif + +#ifndef CPICFLAG +#define CPICFLAG %CPICFLAG% +#endif + +#ifndef CXX +#define CXX %CXX% +#endif + +#ifndef CXX_VERSION +#define CXX_VERSION %CXX_VERSION% +#endif + +#ifndef CXXFLAGS +#define CXXFLAGS %BUG_CXXFLAGS% +#endif + +#ifndef CXXPICFLAG +#define CXXPICFLAG %CXXPICFLAG% +#endif + +#ifndef LDFLAGS +#define LDFLAGS %LDFLAGS% +#endif + +#ifndef LIBFLAGS +#define LIBFLAGS %LIBFLAGS% +#endif + +#ifndef RLD_FLAG +#define RLD_FLAG %RLD_FLAG% +#endif + +#ifndef CXXLIBS +#define CXXLIBS %CXXLIBS% +#endif + +#ifndef TERMLIBS +#define TERMLIBS %TERMLIBS% +#endif + +#ifndef LIBS +#define LIBS %LIBS% +#endif + +#ifndef LEXLIB +#define LEXLIB %LEXLIB% +#endif + +#ifndef LIBPLPLOT +#define LIBPLPLOT %LIBPLPLOT% +#endif + +#ifndef LIBDLFCN +#define LIBDLFCN %LIBDLFCN% +#endif + +#ifndef DEFS +#define DEFS %DEFS% +#endif + +#endif + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/