X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=1268da342b29f0f881316c2bc352d8e591887dbb;hb=51cb6efae783acbbd59933a87fd256d26b2f396c;hp=c078d1ae67ec9b79e82cdec82b67b65ff03b9b31;hpb=13c670c3b50b0e2613458a73a1e05bb4a326f721;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index c078d1a..1268da3 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -100,6 +100,10 @@ exeext=@exeext@ # BootingFromHc - build GHC and the libraries from .hc files? BootingFromHc = @BootingFromHc@ +# BootingFromUnregisterisedHc - treat .hc files as containing unregisterised +# rather than registerised code, i.e., disable the mangler? +BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@ + # build the libs first if we're bootstrapping from .hc files ifeq "$(BootingFromHc)" "YES" AllProjects = glafp-utils hslibs ghc green-card happy hdirect hood nofib @@ -124,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 @@ -148,16 +158,26 @@ GhcCompilerWays= # Extra option flags to pass to the compiler that compiles the compiler # (Ones that are essential are wired into ghc/compiler/Makefile) -# Typical ones: -# -H25m allocate a bigger heap (might speed up compilation) +# Typical options to use here: # -# -O compile an optimised compiler -# -# -DDEBUG include consistency/assertion checks in the compiled compiler +# -DDEBUG include debugging code and assertions (will make the +# compiler slower and produce debugging output, but useful +# for development) # # -dcore-lint check the types after every pass of the compiler; -# a pretty strong internal check -GhcHcOpts=-O -Rghc-timing +# a pretty strong internal check of the compiler being +# used to compile GHC. Useful when bootstrapping. +GhcHcOpts=-Rghc-timing + +# Extra Haskell compiler options to use when compiling all Haskell +# *programs* (not libraries), including GHC itself. +# Typical options to use here: +# +# -H25m use a bigger heap (to speed up compilation) +# +# -O compile an optimised compiler +# +FptoolsHcOpts=-O # Build a compiler that will build *unregisterised* libraries and # binaries by default. Unregisterised code is supposed to compile and @@ -181,8 +201,8 @@ GhcUnregisterised=NO # (as well as a C backend) # # Target platforms supported: -# i386, alpha & sparc -ifneq "$(findstring $(HostArch_CPP), i386 alpha sparc)" "" +# i386 & sparc +ifneq "$(findstring $(HostArch_CPP), i386 sparc)" "" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO @@ -240,13 +260,8 @@ DLLized=@EnableWin32DLLs@ # GHC is still dependent on GNU tools in the backend (gcc to further process # .c/.hc/.s/.o files + 'perl' to mangle and split), but using this # option a GHC distribution can be put together which includes a minimal -# set of these open source tools). +# set of these open source tools. # -# One reason why this is a good thing is that it saves the user installing -# something like cygwin first. Another positive effect of a GHC install now -# being self-contained is that it will continue to work even if the user -# installs a different C compiler (this has caused version problems in the -# past). MinimalUnixDeps=@MinimalUnixDeps@ # Don't split object files for libs if we're building DLLs, or booting from @@ -277,7 +292,7 @@ StripLibraries=NO # For a debugging RTS: # GhcRtsHcOpts = -optc-DDEBUG -# GhcRtsCcOpts = -optc-g +# GhcRtsCcOpts = -g # For an optimised RTS: GhcRtsHcOpts=-O2 @@ -303,9 +318,6 @@ HsLibsFor = ghc # hslibs for GHC also uses the following variables (defined above): # GhcLibWays, GhcLibHcOpts, GhcLibToolsHcOpts, DLLized, StripLibraries -# Haskell compiler options for tools in hslibs -GhcLibToolsHcOpts=-O - # Build the Haskell Readline bindings? # GhcLibsWithReadline=@HaveReadlineHeaders@ @@ -325,6 +337,9 @@ LIBM=@LIBM@ # GhcLibsWithHOpenGL=@GhcLibsWithHOpenGL@ +X_CFLAGS=@X_CFLAGS@ +X_LIBS=@X_LIBS@ + ################################################################################ # # happy project @@ -437,6 +452,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ datadir = @datadir@ + #sysconfdir = @datadir@ #sharedstatedir = @sharedstatedir@ #localstatedir = @localstatedir@ @@ -445,10 +461,16 @@ includedir = @includedir@ oldincludedir = @oldincludedir@ mandir = @mandir@ -#UNUSED, see below: libexecdir = @libexecdir@ #UNUSED:infodir = @infodir@ #UNUSED:srcdir = @srcdir@ +# +# 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)) + # # Default values for most of the above are only set if # they weren't configured to anything in particular @@ -601,7 +623,10 @@ GHC_INPLACE = $(FPTOOLS_TOP)/ghc/compiler/ghc-inplace #----------------------------------------------------------------------------- # C compiler # -# +# NB. Don't override $(WhatGccIsCalled) using build.mk, re-configure using +# the flag --with-gcc= instead. The reason is that the configure script +# needs to know which gcc you're using in order to perform its tests. + HaveGcc = @HaveGcc@ UseGcc = YES WhatGccIsCalled = @WhatGccIsCalled@ @@ -614,10 +639,7 @@ endif endif # default C compiler flags -SRC_CC_OPTS = -O -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -SRC_CC_OPTS += -mno-cygwin -mwin32 -endif +SRC_CC_OPTS = @SRC_CC_OPTS@ #----------------------------------------------------------------------------- # GMP Library (version 2.0.x or above) @@ -649,6 +671,7 @@ FLEX_LIB = # Other standard (ha!) Unix utilities AR = @ArCmd@ +ArSupportsInput = @ArSupportsInput@ # Yuckage: for ghc/utils/parallel -- todo: nuke this dependency!! BASH = /usr/local/bin/bash # @@ -659,9 +682,13 @@ COMPRESS_SUFFIX = @CompressSuffix@ CONTEXT_DIFF = @ContextDiffCmd@ CP = cp -CPP = @CPP@ +CPP = @CPP@ @CPPFLAGS@ CTAGS = $(ETAGS) -RAWCPP = $(CPP) -undef -traditional +# +# RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to +# behave plausibly on Haskell sources. +# +RAWCPP_FLAGS = -undef -traditional FIND = @FindCmd@ INSTALL = @INSTALL@ # @@ -673,6 +700,7 @@ INSTALL := $(subst .././install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL)) LATEX = latex HEVEA = hevea HACHA = hacha +LD = ld LN_S = @LN_S@ MANMACROS = -man MSMACROS = -ms @@ -774,6 +802,12 @@ GREENCARD = $(FPTOOLS_TOP)/green-card/src/green-card BLD_DLL = dllwrap # +# .NET support software +# +ILX2IL = ilx2il +ILASM = ilasm + +# # Happy # HAPPY = @HappyCmd@ @@ -838,7 +872,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, @@ -848,6 +882,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 @@ -905,9 +943,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= @@ -925,3 +960,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 +