X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=638791b656fab4fb633ca1d2e99d312f1661e656;hb=124690e9ad1111c4e73ba63b9d991fd014c8f645;hp=3c8dc069789acf16101adb86852e9af3d77f432a;hpb=a6e4c7f78c220055768c63ed6098f3ebde36dba7;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 3c8dc06..638791b 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -128,6 +128,12 @@ ProjectsDontInstall = glafp-utils nofib # IncludeTestDirsInBuild=NO +# +# Which ways should SGML documents be built? +# options are: dvi ps pdf html rtf +# +SGMLDocWays= + ################################################################################ # # GHC project @@ -202,11 +208,14 @@ else GhcWithNativeCodeGen=NO endif +# Include support for generating Java +GhcWithJavaGen=NO + HaveLibDL = @HaveLibDL@ # Include GHCi in the compiler. Default to NO for the time being. -ifneq "$(findstring $(HostOS_CPP), mingw32 linux solaris2 freebsd netbsd openbsd osf3)" "" +ifneq "$(findstring $(HostOS_CPP), mingw32 linux solaris2 freebsd netbsd openbsd)" "" GhcWithInterpreter=YES ifeq "$(HaveLibDL)" "YES" SRC_HC_OPTS += -ldl @@ -427,13 +436,8 @@ ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" DEFAULT_TMPDIR = C:/TEMP endif -# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. - -ifeq "$(findstring $(TARGETPLATFORM), i386-unknown-cygwin32 i386-unknown-mingw32)" "" -FPTOOLS_TOP_ABS = @hardtop@ -else -FPTOOLS_TOP_ABS = $(subst \,/,$(shell cygpath -w @hardtop@)) -endif +# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. (platform-specific format). +FPTOOLS_TOP_ABS = @hardtop_plat@ # Keep the Unix-style path to use with Unix tools (e.g. in ghc-inplace script) FPTOOLS_TOP_ABS_UNIX = @hardtop@ @@ -445,12 +449,16 @@ FPTOOLS_TOP_ABS_UNIX = @hardtop@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ -datadir = @datadir@ +datadir0 = @datadir@ #sysconfdir = @datadir@ #sharedstatedir = @sharedstatedir@ #localstatedir = @localstatedir@ -libdir = @libdir@ +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +libdir0 = @libdir@ +else +libdir0 = @prefix@ +endif includedir = @includedir@ oldincludedir = @oldincludedir@ mandir = @mandir@ @@ -462,8 +470,13 @@ mandir = @mandir@ # override libdir and datadir to put project-specific stuff in # a subdirectory with the version number included. # -libdir := $(if $(ProjectNameShort),$(libdir)/$(ProjectNameShort)-$(ProjectVersion),$(libdir)) -datadir := $(if $(ProjectNameShort),$(datadir)/$(ProjectNameShort)-$(ProjectVersion),$(datadir)) +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +libdir = $(if $(ProjectNameShort),$(libdir0)/$(ProjectNameShort)-$(ProjectVersion),$(libdir0)) +datadir = $(if $(ProjectNameShort),$(datadir0)/$(ProjectNameShort)-$(ProjectVersion),$(datadir0)) +else +libdir = $(libdir0) +datadir = $(datadir0) +endif # # Default values for most of the above are only set if @@ -601,6 +614,8 @@ GhcVersion = @GhcVersion@ GhcMajVersion = @GhcMajVersion@ GhcMinVersion = @GhcMinVersion@ GhcPatchLevel = @GhcPatchLevel@ +# Canonicalised ghc version number, used for easy (integer) version comparisons. +GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion) HBC = @HBC@ NHC = @NHC@ @@ -676,7 +691,7 @@ COMPRESS_SUFFIX = @CompressSuffix@ CONTEXT_DIFF = @ContextDiffCmd@ CP = cp -CPP = @CPP@ +CPP = @CPP@ @CPPFLAGS@ CTAGS = $(ETAGS) # # RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to @@ -707,6 +722,13 @@ RANLIB = @RANLIB@ RM = rm -f SED = @SedCmd@ SHELL = /bin/sh + +# Some ld's support the -x flag and some don't, so the configure +# script detects which we have and sets LdXFlag to "-x" or "" +# respectively. +LD = @LdCmd@ +LD_X = @LdXFlag@ + # # In emergency situations, REAL_SHELL is used to perform shell commands # from within the ghc driver script, by scribbling the command line to @@ -795,6 +817,12 @@ GREENCARD = $(FPTOOLS_TOP)/green-card/src/green-card BLD_DLL = dllwrap # +# .NET support software +# +ILX2IL = ilx2il +ILASM = ilasm + +# # Happy # HAPPY = @HappyCmd@ @@ -802,7 +830,7 @@ HAPPY_VERSION = @HappyVersion@ # # Options to pass to Happy when we're going to compile the output with GHC # -GHC_HAPPY_OPTS = $(shell if ( test `echo $(HAPPY_VERSION) | sed -e "s/\(.*\)\..*/\1/g"` "-gt" "1" || test `echo $(HAPPY_VERSION) | sed -e "s/.*\.\(.*\)/\1/g"` "-ge" "9" ); then echo -agc; else echo -g; fi) +GHC_HAPPY_OPTS = @HappyOpts@ # # Stuff from fptools/literate @@ -859,7 +887,7 @@ HSC2HS = $(HSC2HS_PREFIX)hsc2hs-inplace # The ways currently defined. # ALL_WAYS=p t u s mp mg a b c d e f g h i j k l m n o A B -USER_WAYS=a b c d e f g h i j k l m n o A B +USER_WAYS=a b c d e f g h j k l m n o A B # # The following ways currently have treated specially, p u t mg, @@ -869,6 +897,10 @@ USER_WAYS=a b c d e f g h i j k l m n o A B # # If you want to add to these default options, fill in the variables below: +# Way 'i': +WAY_i_NAME=ILX +WAY_i_HC_OPTS= -filx -fruntime-types + # Way 'p': WAY_p_NAME=profiling WAY_p_HC_OPTS= -prof @@ -926,9 +958,6 @@ WAY_g_HC_OPTS= WAY_h_NAME= WAY_h_HC_OPTS= -WAY_i_NAME= -WAY_i_HC_OPTS= - WAY_j_NAME= WAY_j_HC_OPTS= @@ -946,3 +975,23 @@ WAY_n_HC_OPTS= WAY_o_NAME= WAY_o_HC_OPTS= + +################################################################################ +# +# 31-bit-Int Core files +# +################################################################################ + +# +# It is possible to configure the compiler and prelude to support 31-bit +# integers, suitable for a back-end and RTS using a tag bit on a 32-bit +# architecture. Currently the only useful output from this option is external Core +# files. The following additions to your build.mk will produce the +# 31-bit core output. Note that this is *not* just a library "way"; the +# compiler must be built a special way too. + +# GhcCppOpts +=-DWORD_SIZE_IN_BITS=31 +# GhcLibHcOpts +=-fext-core -fno-code -DWORD_SIZE_IN_BITS=31 +# GhcLibCppOpts += -DWORD_SIZE_IN_BITS=31 +# SplitObjs=NO +