view Makeconf.in @ 300:44512e56188e

[project @ 1994-01-17 20:29:29 by jwe]
author jwe
date Mon, 17 Jan 1994 20:29:29 +0000
parents 49a716824a86
children 3916fadea706
line wrap: on
line source

#
# 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. ####

# The top of the directory tree where the sources live.
root_srcdir = @root_srcdir@

LEX = @LEX@
LFLAGS = @LFLAGS@
LEXLIB = @LEXLIB@

YACC = @YACC@
YFLAGS = -dv

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
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.

# Clean up INCFLAGS a bit if we are not compiling in a separate
# directory.
ifeq ($(srcdir),.)
  TMP_IF_1 = -I.
else
  TMP_IF_1 = -I. -I$(srcdir)
endif
ifeq ($(TOPDIR),$(root_srcdir))
  TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave
else
  TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave \
	-I$(root_srcdir) -I$(root_srcdir)/liboctave 
endif
INCFLAGS = $(TMP_IF_1) $(TMP_IF_2)

LIBFLAGS = -L$(TOPDIR)

DEFS = @DEFS@
UGLY_DEFS = @UGLY_DEFS@

CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(CFLAGS)
UGLY_ALL_CFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(CFLAGS)

CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
EXTERNAL_TEMPLATES = @EXTERNAL_TEMPLATES@
ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(EXTERNAL_TEMPLATES) $(CXXFLAGS)
UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_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) $<