X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=ff1b564db27048567cd512c97edba55fda309543;hb=1a470c9404950cc6737853309d35798a98ad0c30;hp=3718485bee47d225411124dbab2a784d6921ce07;hpb=8b08c15b8ace5a76e341939081fbb6ad2736ddd1;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 3718485..ff1b564 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -56,7 +56,8 @@ endif # random .o-file stuff might change even if the .hi syntax doesn't ProjectName = @ProjectName@ -ProjectVersion = @ProjectVersion@ +ProjectTags = +ProjectVersion = @ProjectVersion@$(ProjectTags) ProjectVersionInt = @ProjectVersionInt@ ProjectPatchLevel = @ProjectPatchLevel@ @@ -315,9 +316,6 @@ BuildingGranSim=$(subst mg,YES,$(filter mg,$(WAYS))) HscIfaceFileVersion=6 -# Building with debugger? -GhciWithDebugger=YES - #------------------------------------------------------------------------------ # Options for Libraries @@ -341,11 +339,19 @@ endif # debug_u : debugging unregisterised # thr_debug : debugging threaded # thr_debug_p : debugging threaded profiled +# t : ticky-ticky profiling +# debug_t : debugging ticky-ticky profiling # -ifeq "$(BootingFromHc)" "YES" GhcRTSWays= -else -GhcRTSWays=thr thr_p debug thr_debug + +# Usually want the debug version +ifeq "$(BootingFromHc)" "NO" +GhcRTSWays += debug +endif + +# Want the threaded versions unless we're unregisterised +ifeq "$(GhcUnregisterised)" "NO" +GhcRTSWays += thr thr_p thr_debug endif # Option flags to pass to GHC when it's compiling modules in @@ -502,12 +508,17 @@ FPTOOLS_TOP_ABS = @hardtop@ # The platform specific version of 'hardtop'. FPTOOLS_TOP_ABS_PLATFORM = @hardtop_plat@ +BIN_DIST_NAME=ghc-$(ProjectVersion) +BIN_DIST_TOPDIR=$(FPTOOLS_TOP_ABS) +BIN_DIST_DIR=$(BIN_DIST_TOPDIR)/$(BIN_DIST_NAME) + # # Installation directories, we don't use half of these, # but since the configure script has them on offer while # passing through, we might as well set them. prefix = @prefix@ +datarootdir = @datarootdir@ exec_prefix = @exec_prefix@ bindir = @bindir@ datadir0 = @datadir@ @@ -774,6 +785,8 @@ MKDIRHIER = $(GHC_MKDIRHIER_DIR)/$(GHC_MKDIRHIER_PGM) LNDIR = $(GHC_LNDIR_DIR)/$(GHC_LNDIR_PGM) RUNTEST = $(GHC_RUNTEST_DIR)/$(GHC_RUNTEST_PGM) +GENERATED_FILE = chmod a-w + #----------------------------------------------------------------------------- # Haskell compilers and mkdependHS @@ -816,11 +829,11 @@ GhcPatchLevel = @ProjectPatchLevel@ GhcMajVersion = @GhcMajVersion@ GhcMinVersion = @GhcMinVersion@ -ghc_ge_504 = YES ghc_ge_601 = YES ghc_ge_602 = YES ghc_ge_603 = YES ghc_ge_605 = YES +ghc_ge_607 = YES else # not UseStage1 or BootingFromHc @@ -832,11 +845,11 @@ GhcMajVersion = @GhcMajVersion@ GhcMinVersion = @GhcMinVersion@ # Some useful GHC version predicates: -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) -ghc_ge_605 = $(shell if (test $(GhcCanonVersion) -ge 605); then echo YES; else echo NO; fi) +ghc_ge_601 = @ghc_ge_601@ +ghc_ge_602 = @ghc_ge_602@ +ghc_ge_603 = @ghc_ge_603@ +ghc_ge_605 = @ghc_ge_605@ +ghc_ge_607 = @ghc_ge_607@ endif # Canonicalised ghc version number, used for easy (integer) version @@ -881,6 +894,9 @@ endif HaveLibGmp = @HaveLibGmp@ LibGmp = @LibGmp@ +GMP_INCLUDE_DIRS=@GMP_INCLUDE_DIRS@ +GMP_LIB_DIRS=@GMP_LIB_DIRS@ + #----------------------------------------------------------------------------- # GMP framework (Mac OS X) # @@ -1148,6 +1164,10 @@ WAY_debug_p_HC_OPTS=-optc-DDEBUG -prof WAY_debug_u_NAME=debug unregisterised WAY_debug_u_HC_OPTS=-optc-DDEBUG -unreg +# Way 'debug_t': +WAY_debug_t_NAME=debug ticky-ticky profiling +WAY_debug_t_HC_OPTS= -ticky -optc-DDEBUG + # Way 'thr_debug': WAY_thr_debug_NAME=threaded WAY_thr_debug_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG @@ -1226,3 +1246,11 @@ WAY_o_HC_OPTS= # GhcLibCppOpts += -DWORD_SIZE_IN_BITS=31 # SplitObjs=NO +################################################################################ +# +# Library configure arguments +# +################################################################################ + +CONFIGURE_ARGS = @CONFIGURE_ARGS@ +