Files
mercury/scripts/Mmake.vars.in
Fergus Henderson 16bf987b6c Add new variables MCS and MCSFLAGS, for compiling with --split-c-files.
scripts/{Mmake.vars.in,Mmake.rules} {compiler,library,profiler}/Mmake:
	Add new variables MCS and MCSFLAGS, for compiling with --split-c-files.
1996-03-12 03:09:03 +00:00

93 lines
2.7 KiB
Plaintext

#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# Copyright (C) 1995 University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
# Mmake.vars - variables for building Mercury programs
# This file gives the default values for certain variables.
# The values here can be overridden by individual Mmake files.
# Ensure that commands use /bin/sh not the user's shell
SHELL = /bin/sh
MMAKE_VPATH = $(MERCURY_INT_DIR)
VPATH = $(MMAKE_VPATH) # do not remove the `:' from this comment!!!
# the above comment works around a misfeature of
# autoconf which causes it to delete assignments to
# VPATH unless they contain a `:'
DEFAULT_GRADE = $(MERCURY_DEFAULT_GRADE)
GRADE = $(DEFAULT_GRADE)
MC = mc
MCS = $(MC) --split-c-files --compile-only
MCG = $(MC) --compile-to-c
MCD = $(MC) --generate-dependencies
MCI = $(MC) --make-interface
MCFLAGS =
MCIFLAGS = $(MCFLAGS)
MCDFLAGS = $(MCFLAGS)
MCGFLAGS = $(MCFLAGS)
MCSFLAGS = $(MCFLAGS)
#
# The following variables hold the names of various programs and
# the options which should be passed to them.
#
MOD2C = mod2c
MOD2CFLAGS =
MOD2H = mod2h
MOD2HFLAGS =
C2INIT = c2init
C2INITFLAGS =
MGNUC = mgnuc
MGNUCFLAGS =
ML = ml
MLFLAGS =
MNC = mnc
MNCFLAGS =
MNL = mnl
MNLFLAGS =
MNP = mnp
MNPFLAGS =
MSC = msc
MSCFLAGS =
MSL = msl
MSLFLAGS =
MSP = msp
MSPFLAGS =
# $(CFLAGS_FOR_PIC) is passed to the C compiler when creating `.pic_o' files
# (We use `.pic_o' as the extension for `.o' files that must have
# position-independent code.)
CFLAGS_FOR_PIC = @CFLAGS_FOR_PIC@
# $(EXT_FOR_PIC_OBJECTS) will be either `.o', if $(CFLAGS_FOR_PIC) is empty,
# or `.pic_o', if special flags are required for compiling files that
# will be put in shared libraries.
EXT_FOR_PIC_OBJECTS = @EXT_FOR_PIC_OBJECTS@
# $(EXT_FOR_SHARED_LIB) will be the extension for shared libraries,
# if the system supports them (e.g. `.so'), or the extension used
# for non-shared libraries (e.g. `.a') if the system doesn't support
# shared libraries.
EXT_FOR_SHARED_LIB = @EXT_FOR_SHARED_LIB@
# Set `RM_C' to `:' if you want to keep the intermediate `.c' files.
RM_C = rm
#-----------------------------------------------------------------------------#
# This needs to go here so that user Mmake files can add new suffixes.
.SUFFIXES: # reset sufix list to be empty
#-----------------------------------------------------------------------------#
default_target: main_target
#-----------------------------------------------------------------------------#