Mercurial > hg > octave-lyh
diff Makeconf.in @ 5:9c27e323492f
[project @ 1993-08-08 01:29:13 by jwe]
Initial revision
author | jwe |
---|---|
date | Sun, 08 Aug 1993 01:32:33 +0000 |
parents | |
children | 49ab724d0a32 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/Makeconf.in @@ -0,0 +1,114 @@ +# +# Common configuration rules for all of octave's Makefiles. +# +# John W. Eaton +# jwe@che.utexas.edu +# Department of Chemical Engineering +# The University of Texas at Austin + +SHELL = /bin/sh + +#### Start of system configuration section. #### + +LEX = @LEX@ +LFLAGS = @LFLAGS@ +LEXLIB = @LEXLIB@ + +YACC = @YACC@ +YFLAGS = -dv + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ + +RANLIB = @RANLIB@ + +RUNTEST = @RUNTEST@ + +DEFAULT_PAGER = @DEFAULT_PAGER@ + +# Fortran to C translator and associated flags. + +F2C = @F2C@ +F2CFLAGS = @F2CFLAGS@ + +# Fortran compiler flags. + +FFLAGS = @FFLAGS@ + +# cc and associated flags. + +INCFLAGS = -I. -I$(srcdir) +LIBFLAGS = -L$(TOPDIR) +DEFS = @DEFS@ + +CC = @CC@ +CFLAGS = @CFLAGS@ +ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(CFLAGS) + +ifeq ($(CXX), ) + CXX = $(C++) +endif + +CXXFLAGS = @CXXFLAGS@ # GNU Make 3.63 and beyond +C++FLAGS = $(CXXFLAGS) # backward compatibility +ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(CXXFLAGS) + +LDFLAGS = @LDFLAGS@ +ALL_LDFLAGS = $(LIBFLAGS) $(LDFLAGS) + +FLIBS = @FLIBS@ + +# A shell command to extract the version number from version.h. +getversion = sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q + +# The version number. TOPDIR is something like `.' or `..' or `../..' +# and gets us back up to the top level of the source tree. +version = `$(getversion) $(srcdir)/$(TOPDIR)/src/version.h` + +# Common prefix for installation directories. +# NOTE: This directory must exist when you start installation. +prefix = /usr/local + +# Directory in which to put host dependent programs and libraries +exec_prefix = $(prefix) + +# Where to install the executables. +bindir = $(exec_prefix)/bin + +# Where to put libraries like libcruft.a, liboctave.a, and libreadline.a +libdir = $(exec_prefix)/lib + +# Where octave will look for M-files +libsubdir = $(libdir)/octave/$(version) + +# Where to put the manual pages. +mandir = $(prefix)/man/man1 +# Extension (not including `.') for the installed manual page filenames. +manext = 1 + +# Where to put the info files. +infodir = $(prefix)/info + +# Where to put extra data files, system-wide startup files, etc. +datadir = $(prefix)/lib/octave + +# Where to put installed include files. +includedir = $(prefix)/include + +# The type of computer we are running on. +target_host_type = @target_host_type@ + +# The following pattern rules and the substitution functions require +# GNU make. If you don't have it, get it! + +@DEFAULT_DOT_C_FROM_DOT_F@ + +@DEFAULT_DOT_O_FROM_DOT_F@ + +# How to make .o files from .c files: + +.c.o: + $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< + +.cc.o: + $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $<