diff options
Diffstat (limited to 'ghc/mk')
-rw-r--r-- | ghc/mk/boilerplate.mk | 28 | ||||
-rw-r--r-- | ghc/mk/config.mk.in | 67 | ||||
-rw-r--r-- | ghc/mk/paths.mk | 80 | ||||
-rw-r--r-- | ghc/mk/target.mk | 14 | ||||
-rw-r--r-- | ghc/mk/version.mk.in | 60 |
5 files changed, 0 insertions, 249 deletions
diff --git a/ghc/mk/boilerplate.mk b/ghc/mk/boilerplate.mk deleted file mode 100644 index 0ab3f331a0..0000000000 --- a/ghc/mk/boilerplate.mk +++ /dev/null @@ -1,28 +0,0 @@ -# GHC boilerplate.mk - -GHC_TOP := $(TOP) - -# Include this first, because the top-level .mk files might depend on -# the values of $(ProjectXXX) variables. (in fact they might/should not, -# but we're not brave enough to move this include later --SDM). --include $(GHC_TOP)/mk/version.mk - -# We need to set TOP to be the TOP that the next level up expects! -# The TOP variable is reset after the inclusion of the fptools -# boilerplate, so we stash TOP away first: -TOP:=$(GHC_TOP)/.. - -include $(TOP)/mk/boilerplate.mk - -# Reset TOP -TOP:=$(GHC_TOP) - -# ----------------------------------------------------------------- -# Everything after this point -# augments or overrides previously set variables. -# ----------------------------------------------------------------- - --include $(GHC_TOP)/mk/config.mk --include $(GHC_TOP)/mk/paths.mk --include $(GHC_TOP)/mk/opts.mk --include $(GHC_TOP)/mk/suffix.mk diff --git a/ghc/mk/config.mk.in b/ghc/mk/config.mk.in deleted file mode 100644 index e3060ec20c..0000000000 --- a/ghc/mk/config.mk.in +++ /dev/null @@ -1,67 +0,0 @@ -# -*-makefile-*- -# @configure_input@ - -# ----------------------------------------------------------------------------- -# GHC binary distribution configuration - -# These settings are used by the top-level Makefile when building -# binary distributions. - -# what to include in a binary distribution -GhcMainDir = ghc -GhcBinDistDirs = ghc libraries hslibs - -ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -GhcBinDistShScripts = ghc-$(ProjectVersion) ghci-$(ProjectVersion) ghc-pkg-$(ProjectVersion) hsc2hs -else -GhcBinDistShScripts = -endif - -GhcBinDistPrlScripts = ghcprof -GhcBinDistLibPrlScripts = ghc-asm ghc-split -GhcBinDistBins = hp2ps runghc -GhcBinDistOptBins = runhaskell -GhcBinDistLinks = ghc ghci ghc-pkg -GhcBinDistLibSplicedFiles = package.conf - -# ----------------------------------------------------------------------------- -# GHC-specific configuration settings - -# Set to YES if $(GHC) has the readline package installed -GhcHasReadline = @GhcHasReadline@ - -# GTK+ -GTK_CONFIG = @GTK_CONFIG@ - -# ----------------------------------------------------------------------------- - -# We can build using the stage1 compiler by setting UseStage1=YES. -# This is useful when building up a set of .hc files for -# bootstrapping, because we need the ghc/lib/compat library and the -# contents of ghc/utils compiled with the stage1 compiler. - -ifeq "$(UseStage1)" "YES" -HC=$(GHC_STAGE1) -MKDEPENDHS=$(GHC_STAGE1) -endif - -# Some useful GHC version predicates: - -ifeq "$(UseStage1)" "YES" -ghc_ge_504 = YES -ghc_ge_601 = YES -ghc_ge_602 = YES -ghc_ge_603 = YES -else -ifeq "$(BootingFromHc)" "YES" -ghc_ge_504 = YES -ghc_ge_601 = YES -ghc_ge_602 = YES -ghc_ge_603 = YES -else -ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) -ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi) -ghc_ge_602 = $(shell if (test $(GhcCanonVersion) -ge 602); then echo YES; else echo NO; fi) -ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi) -endif -endif diff --git a/ghc/mk/paths.mk b/ghc/mk/paths.mk deleted file mode 100644 index 2e86122f2c..0000000000 --- a/ghc/mk/paths.mk +++ /dev/null @@ -1,80 +0,0 @@ -# ----------------------------------------------------------------------------- -# $Id: paths.mk,v 1.44 2004/11/11 09:36:40 simonmar Exp $ -# -# ghc project specific make variables -# - -PROJECT_DIR := ghc - -#----------------------------------------------------------------------------- -# Useful directories -# -# xxx_DIR_REL a directory relative to $(GHC_TOP) -# xxx_DIR a directory (including $(GHC_TOP)) - -GHC_INCLUDE_DIR_REL = includes -GHC_COMPILER_DIR_REL = compiler -GHC_RUNTIME_DIR_REL = rts -GHC_UTILS_DIR_REL = utils -GHC_DRIVER_DIR_REL = driver -GHC_LIB_DIR_REL = lib - -GHC_UNLIT_DIR_REL = $(GHC_UTILS_DIR_REL)/unlit -GHC_HSTAGS_DIR_REL = $(GHC_UTILS_DIR_REL)/hasktags -GHC_TOUCHY_DIR_REL = $(GHC_UTILS_DIR_REL)/touchy -GHC_PKG_DIR_REL = $(GHC_UTILS_DIR_REL)/ghc-pkg -GHC_GENPRIMOP_DIR_REL = $(GHC_UTILS_DIR_REL)/genprimopcode -GHC_GENAPPLY_DIR_REL = $(GHC_UTILS_DIR_REL)/genapply -GHC_MANGLER_DIR_REL = $(GHC_DRIVER_DIR_REL)/mangler -GHC_SPLIT_DIR_REL = $(GHC_DRIVER_DIR_REL)/split -GHC_SYSMAN_DIR_REL = $(GHC_RUNTIME_DIR_REL)/parallel -GHC_LIB_COMPAT_DIR_REL = $(GHC_LIB_DIR_REL)/compat - -GHC_INCLUDE_DIR = $(GHC_TOP)/$(GHC_INCLUDE_DIR_REL) -GHC_COMPILER_DIR = $(GHC_TOP)/$(GHC_COMPILER_DIR_REL) -GHC_RUNTIME_DIR = $(GHC_TOP)/$(GHC_RUNTIME_DIR_REL) -GHC_UTILS_DIR = $(GHC_TOP)/$(GHC_UTILS_DIR_REL) -GHC_DRIVER_DIR = $(GHC_TOP)/$(GHC_DRIVER_DIR_REL) -GHC_PKG_DIR = $(GHC_TOP)/$(GHC_PKG_DIR_REL) -GHC_GENPRIMOP_DIR = $(GHC_TOP)/$(GHC_GENPRIMOP_DIR_REL) -GHC_GENAPPLY_DIR = $(GHC_TOP)/$(GHC_GENAPPLY_DIR_REL) -GHC_MANGLER_DIR = $(GHC_TOP)/$(GHC_MANGLER_DIR_REL) -GHC_SPLIT_DIR = $(GHC_TOP)/$(GHC_SPLIT_DIR_REL) -GHC_LIB_COMPAT_DIR = $(GHC_TOP)/$(GHC_LIB_COMPAT_DIR_REL) - -# ----------------------------------------------------------------------------- -# Names of programs in the GHC tree -# -# xxx_PGM the name of an executable, without the path - -GHC_UNLIT_PGM = unlit$(exeext) -GHC_HSTAGS_PGM = hasktags -GHC_TOUCHY_PGM = touchy$(exeext) -GHC_MANGLER_PGM = ghc-asm -GHC_SPLIT_PGM = ghc-split -GHC_SYSMAN_PGM = SysMan -GHC_PKG_INPLACE_PGM = ghc-pkg-inplace -GHC_GENPRIMOP_PGM = genprimopcode -GHC_GENAPPLY_PGM = genapply - -# ----------------------------------------------------------------------------- -# Auxilliary programs used by GHC -# -# xxx the pathname to an executable (some using $(TOP)) - -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -GHC_CP = "xcopy /y" -GHC_PERL = perl -else -GHC_CP = $(CP) -GHC_PERL = $(PERL) -endif - -GHC_UNLIT = $(GHC_UNLIT_DIR)/$(GHC_UNLIT_PGM) -GHC_HSTAGS = $(GHC_HSTAGS_DIR)/$(GHC_HSTAGS_PGM) -GHC_MANGLER = $(GHC_MANGLER_DIR)/$(GHC_MANGLER_PGM) -GHC_SPLIT = $(GHC_SPLIT_DIR)/$(GHC_SPLIT_PGM) -GHC_SYSMAN = $(GHC_SYSMAN_DIR)/$(GHC_SYSMAN_PGM) -GHC_PKG_INPLACE = $(GHC_PKG_DIR)/$(GHC_PKG_INPLACE_PGM) -GHC_GENPRIMOP = $(GHC_GENPRIMOP_DIR)/$(GHC_GENPRIMOP_PGM) -GHC_GENAPPLY = $(GHC_GENAPPLY_DIR)/$(GHC_GENAPPLY_PGM) diff --git a/ghc/mk/target.mk b/ghc/mk/target.mk deleted file mode 100644 index 0d49585a90..0000000000 --- a/ghc/mk/target.mk +++ /dev/null @@ -1,14 +0,0 @@ -# -# target.mk project stub -# - -# We need to set TOP to be the TOP that the next level up expects! -# The TOP variable is reset after the inclusion of the fptools -# boilerplate, so we stash TOP away first: -GHC_TOP := $(TOP) -TOP:=$(TOP)/.. - -include $(TOP)/mk/target.mk - -# Reset TOP -TOP:=$(GHC_TOP) diff --git a/ghc/mk/version.mk.in b/ghc/mk/version.mk.in deleted file mode 100644 index e8e1656b7c..0000000000 --- a/ghc/mk/version.mk.in +++ /dev/null @@ -1,60 +0,0 @@ -# -# Project-specific version information. -# -# Note: -# this config file is intended to centralise all -# project version information. To bump up the version -# info on your package, edit this file and recompile -# all the dependents. This file lives in the source tree. -# -# In the case of the ghc/ project, if you make changes -# to this file, you'll *have to* to rebuild the driver -# in your build tree(s). The ghc/driver/Makefile has got -# a dependency that will force such rebuilding to happen, -# but it does require you to do a 'make' in ghc/driver. - -# -# Ghc project settings: -# -# ProjectVersion is treated as a *string* -# ProjectVersionInt is treated as an *integer* (for cpp defines) - -# Versioning scheme: A.B.C -# A: major version, decimal, any number of digits -# B: minor version, decimal, any number of digits -# C: patchlevel, one digit, omitted if zero. -# -# ProjectVersionInt does *not* contain the patchlevel (rationale: this -# figure is used for conditional compilations, and library interfaces -# etc. are not supposed to change between patchlevels). -# -# The ProjectVersionInt is included in interface files, and GHC -# checks that it's reading interface generated by the same ProjectVersion -# as itself. It does this even though interface file syntax may not -# change between versions. Rationale: calling conventions or other -# random .o-file stuff might change even if the .hi syntax doesn't - -ProjectName = @ProjectName@ -ProjectNameShort = @ProjectNameShort@ -ProjectVersion = @ProjectVersion@ -ProjectVersionInt = @ProjectVersionInt@ -ProjectPatchLevel = @ProjectPatchLevel@ - -# Interface file version (hi-boot files only) -# -# A GHC built with HscIfaceFileVersion=n will look for -# M.hi-boot-n, and only then for -# M.hi-boot. -# (It'll be happy with the latter if the former doesn't exist.) -# -# -# This variable is used ONLY for hi-boot files. Its only purpose is -# to allow you to have a single directory with multiple .hi-boot files -# for the same module, each corresponding to a different version of -# GHC. -# -# HscIfaceFileVersion is propagated to hsc via -# ghc/compiler/main/Config.hs, which is automatically generated by -# ghc/compiler/Makefile. - -HscIfaceFileVersion=6 |