Files
mercury/Mmake.common.in
Fergus Henderson ef731a646a Add `--no-infer-types --no-infer-modes --halt-at-warn' as the
Estimated hours taken: 0.25

mercury/Mmake.common.in:
	Add `--no-infer-types --no-infer-modes --halt-at-warn' as the
	default MCFLAGS.
	*** IMPORTANT NOTE: if you have set MCFLAGS in your
	*** Mmake.params file, you should change your Mmake.params
	*** file to set EXTRA_MCFLAGS instead.
1996-05-26 19:33:43 +00:00

124 lines
4.7 KiB
Plaintext

#-----------------------------------------------------------------------------#
# Copyright (C) 1995 University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public Licence - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
# Mmake.common - this is the part of the makefiles
# for building the Mercury implementation that is shared
# between all the subdirectories. It also contains all
# the parameters that might need to be modified when installing
# Mercury on a new machine.
# These parameters should all be determined automatically by `configure'.
# Any definitions in the Mmake.params file take precedence over the
# definitions here, so if you want to change one of the values here
# it is best to just add a definition to Mmake.params.
#-----------------------------------------------------------------------------#
# Specify the locations for installing things.
# These directories can all be modified independantly.
# In particular, you might want to find a better place for the DVI and
# HTML files.
INSTALL_PREFIX = @prefix@
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
INSTALL_LIBDIR = $(INSTALL_PREFIX)/lib/mercury
INSTALL_INFO_DIR = $(INSTALL_PREFIX)/info
INSTALL_DVI_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
INSTALL_HTML_DIR = $(INSTALL_PREFIX)/lib/mercury/html
# Specify the Mercury compiler to use for bootstrapping
MC = @BOOTSTRAP_MC@
# Specify the compilation model to use for compiling the compiler
GRADE = @GRADE@
# Specify the additional compilation models to install the library for
LIBGRADES = @LIBGRADES@
# Specify the ranlib program, if needed.
RANLIB = @RANLIB@
# Specify the name of the Sicstus Prolog interpreter.
SP = @SP@
# Define `sicstus' for use in the construction of binary distributions
SICSTUS = @SICSTUS@
# Define `nuprolog' for use in the construction of binary distributions
NUPROLOG = @NUPROLOG@
# Specify EXT_FOR_SHARED_LIB as `so' if the operating system
# supports `.so' shared libraries,
# or as `a' if it doesn't.
EXT_FOR_SHARED_LIB = @EXT_FOR_SHARED_LIB@
# Specify any special flags to pass to the C compiler when creating objects
# for a shared library (e.g. -fpic or -fPIC for gcc).
# For Irix 5 and Alpha/OSF, position-independent code is the default,
# so leave this blank.
CFLAGS_FOR_PIC = @CFLAGS_FOR_PIC@
# Specify EXT_FOR_PIC_OBJECTS as `pic_o' if any special $(PIC) flags are
# required (see above), and as `o' otherwise. This is used to ensure that
# we don't bother to build the .pic_o files if $(PIC) is null, since we can
# just reuse the .o files.
EXT_FOR_PIC_OBJECTS = @EXT_FOR_PIC_OBJECTS@
# Specify the command to link a shared library
# This is only used if EXT_FOR_SHARED_LIB was defined as `so' above.
# LINK_SHARED_OBJ = ld -shared # for Irix 5
# LINK_SHARED_OBJ = gcc -assert nodefinitions
# # for SunOS 4 (completely untested)
# LINK_SHARED_OBJ = gcc -shared # for Solaris etc.
LINK_SHARED_OBJ = @LINK_SHARED_OBJ@
SHARED_LIBS = @SHARED_LIBS@
# Set INSTALL_NUPROLOG to `install_nuprolog' if you have NU-Prolog
# and want use it for debugging Mercury programs.
# Otherwise, leave it blank.
INSTALL_NUPROLOG = @INSTALL_NUPROLOG@
# Set INSTALL_SICSTUS to `install_sicstus' if you have SICStus Prolog
# and want use it for debugging Mercury programs.
# Otherwise, leave it blank.
INSTALL_SICSTUS = @INSTALL_SICSTUS@
# You should not need to modify anything below here
#-----------------------------------------------------------------------------#
INSTALL_MODULE_DIR = $(INSTALL_LIBDIR)/modules
INSTALL_INT_DIR = $(INSTALL_LIBDIR)/ints
INSTALL_INC_DIR = $(INSTALL_LIBDIR)/inc
INSTALL_MMAKE_DIR = $(INSTALL_LIBDIR)/mmake
FULLARCH = @FULLARCH@
INSTALL_MERC_BIN_DIR = $(INSTALL_LIBDIR)/bin/$(FULLARCH)
INSTALL_MERC_GC_LIB_DIR = $(INSTALL_LIBDIR)/lib/$(FULLARCH)
INSTALL_MERC_LIB_DIR = $(INSTALL_LIBDIR)/lib/$(GRADE)/$(FULLARCH)
INSTALL_NU_ARCH_DIR = $(INSTALL_LIBDIR)/nuprolog/$(FULLARCH)
INSTALL_NU_DIR = $(INSTALL_LIBDIR)/nuprolog
INSTALL_NU_ARCH_DIR = $(INSTALL_LIBDIR)/nuprolog/$(FULLARCH)
INSTALL_SP_DIR = $(INSTALL_LIBDIR)/sicstus
INSTALL_SP_ARCH_DIR = $(INSTALL_LIBDIR)/sicstus/$(FULLARCH)
SCRIPTS_DIR = $(MERCURY_DIR)/scripts
RUNTIME_DIR = $(MERCURY_DIR)/runtime
LIBRARY_DIR = $(MERCURY_DIR)/library
BOEHM_GC_DIR = $(MERCURY_DIR)/boehm_gc
COMPILER_DIR = $(MERCURY_DIR)/compiler
UTIL_DIR = $(MERCURY_DIR)/util
# Options to pass to the Mercury compiler
MCFLAGS = --no-infer-types --no-infer-modes --halt-at-warn $(EXTRA_MCFLAGS)
#-----------------------------------------------------------------------------#
# The Mmake.params file can be used to override definitions in this file
-include $(MERCURY_DIR)/Mmake.params
#-----------------------------------------------------------------------------#