X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=5406c7283f952510e213f8d3a3f4f1f4dc0715ce;hb=094f9feafaf83190891736ddd8d1d7213f4293c4;hp=ff1b564db27048567cd512c97edba55fda309543;hpb=1a470c9404950cc6737853309d35798a98ad0c30;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index ff1b564..5406c72 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -171,6 +171,12 @@ else Windows=NO endif +ifeq "$(Windows)" "YES" +dot_bat=.bat +else +dot_bat= +endif + # BootingFromHc - build GHC and the libraries from .hc files? BootingFromHc = @BootingFromHc@ @@ -350,9 +356,9 @@ GhcRTSWays += debug endif # Want the threaded versions unless we're unregisterised -ifeq "$(GhcUnregisterised)" "NO" -GhcRTSWays += thr thr_p thr_debug -endif +# Defer the check until later by using $(if..), because GhcUnregisterised might +# be set in build.mk, which hasn't been read yet. +GhcRTSWays += $(if $(findstring NO, $(GhcUnregisterised)),thr thr_p thr_debug,) # Option flags to pass to GHC when it's compiling modules in # fptools/libraries. Typically these are things like -O or @@ -752,7 +758,7 @@ 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_PKG_INPLACE_PGM = ghc-pkg-inplace$(dot_bat) GHC_GENPRIMOP_PGM = genprimopcode GHC_GENAPPLY_PGM = genapply GHC_MKDEPENDC_PGM = mkdependC @@ -786,6 +792,7 @@ LNDIR = $(GHC_LNDIR_DIR)/$(GHC_LNDIR_PGM) RUNTEST = $(GHC_RUNTEST_DIR)/$(GHC_RUNTEST_PGM) GENERATED_FILE = chmod a-w +EXECUTABLE_FILE = chmod +x #----------------------------------------------------------------------------- # Haskell compilers and mkdependHS @@ -1014,6 +1021,10 @@ UNAME = uname # GTK+ GTK_CONFIG = @GTK_CONFIG@ +# Set this if you want to use Inno Setup to build a Windows installer +# when you make a bindist +ISCC = + #----------------------------------------------------------------------------- # DocBook XML stuff