4 ################################################################################
6 # config.mk.in-template
8 # This file defines all the variables that set the configuration of
12 ################################################################################
14 # The configuration is defined in two steps:
16 # 1. The builder (i.e. the person doing the build)
17 # copies this file, config.mk.in-template
20 # 2. S/he then edits it manually (gasp) to reflect any configuration
23 # 3. Then s/he runs "configure", which generates config.mk from
24 # config.mk.in, substituting for system/platform-dependent things
25 # enclosed in @at-signs@.
27 # This is one of only two files that configure generates (the other is config.h)
29 # Note that after subsequent edits of config.mk.in for a build, the configure script
30 # will have to be re-run manually to have the change reflected in config.mk.
33 # There is a section below for each project within the fptools suite
37 # a section corresponding to each of the main .mk files
38 # included by boilerplate.mk (see boilerplate.mk for a list).
41 ################################################################################
43 # Project-wide platform variables
45 ################################################################################
47 # A "platform" is the GNU cpu-type/manufacturer/operating-system target machine
48 # specifier. E.g. sparc-sun-solaris2
50 HOSTPLATFORM = @HostPlatform@
51 TARGETPLATFORM = @TargetPlatform@
52 BUILDPLATFORM = @HostPlatform@
55 # in one or two places, we need to get at the OS version (major and perhaps even minor),
56 # HostOS_Full is the OS name reported by AC_CANONICAL_SYSTEM.
58 HostPlatform_CPP = @HostPlatform_CPP@
59 HostArch_CPP = @HostArch_CPP@
60 HostOS_CPP = @HostOS_CPP@
61 HostOS_Full = @HostOS_Full@
62 HostVendor_CPP = @HostVendor_CPP@
65 # ToDo: check if these can be purged now. -- sof
68 @HostPlatform_CPP@_HOST = 1
69 @HostPlatform_CPP@_TARGET = 1
70 @HostPlatform_CPP@_BUILD = 1
72 @HostArch_CPP@_HOST_ARCH = 1
73 @HostArch_CPP@_TARGET_ARCH = 1
74 @HostArch_CPP@_BUILD_ARCH = 1
76 @HostOS_CPP@_HOST_OS = 1
77 @HostOS_CPP@_TARGET_OS = 1
78 @HostOS_CPP@_BUILD_OS = 1
80 @HostVendor_CPP@_HOST_VENDOR = 1
81 @HostVendor_CPP@_TARGET_VENDOR = 1
82 @HostVendor_CPP@_BUILD_VENDOR = 1
84 # Leading underscores on symbol names in object files
85 # Valid options: YES/NO
87 LeadingUnderscore=@LeadingUnderscore@
89 # Pin a suffix on executables? If so, what (Windows only).
92 ################################################################################
96 # Set of options applicable to all fptools projects
98 ################################################################################
100 # BootingFromHc - build GHC and the libraries from .hc files?
101 BootingFromHc = @BootingFromHc@
103 # BootingFromUnregisterisedHc - treat .hc files as containing unregisterised
104 # rather than registerised code, i.e., disable the mangler?
105 BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@
107 # build the libs first if we're bootstrapping from .hc files
108 ifeq "$(BootingFromHc)" "YES"
109 AllProjects = glafp-utils hslibs ghc green-card happy hdirect hood nofib
111 AllProjects = glafp-utils ghc hslibs green-card happy hdirect hood nofib
115 # (OPTIONAL) set ProjectsToBuild to a list of projects to be built. If this
116 # list is empty, then all projects present in the source tree will be built.
121 # set ProjectsDontInstall to a list of projects which are normally built but
124 ProjectsDontInstall = glafp-utils nofib
127 # Should the various project tests directories be built?
129 IncludeTestDirsInBuild=NO
131 ################################################################################
135 # Set of (configurable) options needed by the ghc tree
136 # plus their default options (if any).
138 ################################################################################
140 #---------------------------------------------------------------
142 # Variables that control how the compiler itself is built
144 #---------------------------------------------------------------
146 # The compiler used to build GHC is $(GHC). To change the actual compiler
147 # used, re-configure with --with-ghc=<path-to-ghc>.
149 # Extra ways in which to build the compiler (for example, you might want to
150 # build a profiled compiler so you can see where it spends its time)
153 # Extra option flags to pass to the compiler that compiles the compiler
154 # (Ones that are essential are wired into ghc/compiler/Makefile)
156 # -H25m allocate a bigger heap (might speed up compilation)
158 # -O compile an optimised compiler
160 # -DDEBUG include consistency/assertion checks in the compiled compiler
162 # -dcore-lint check the types after every pass of the compiler;
163 # a pretty strong internal check
164 GhcHcOpts=-O -Rghc-timing
166 # Build a compiler that will build *unregisterised* libraries and
167 # binaries by default. Unregisterised code is supposed to compile and
168 # run without any support for architecture-specific assembly mangling,
169 # register assignment or tail-calls, and is therefore a good way to get
170 # started when porting GHC to new architectures.
172 # If this is set to NO, you can still use the unregisterised way
173 # (way 'u') to get unregisterised code, but the default way will be
176 # NOTE: this is not the same as building the compiler itself
177 # unregisterised. That's done by either (a) bootstrapping with a
178 # compiler that was built with GhcUnregisterized=YES, or (b)
179 # bootstrapping with a compiler that has way 'u' libraries, and the
180 # flag '-unreg' is added to GhcHcOpts above.
184 # Build a compiler with a native code generator backend
185 # (as well as a C backend)
187 # Target platforms supported:
189 ifneq "$(findstring $(HostArch_CPP), i386 sparc)" ""
190 GhcWithNativeCodeGen=YES
192 GhcWithNativeCodeGen=NO
195 HaveLibDL = @HaveLibDL@
197 # Include GHCi in the compiler. Default to NO for the time being.
199 ifneq "$(findstring $(HostOS_CPP), mingw32 linux solaris2 freebsd netbsd openbsd)" ""
200 GhcWithInterpreter=YES
201 ifeq "$(HaveLibDL)" "YES"
205 GhcWithInterpreter=NO
209 # Building various ways?
210 # (right now, empty if not).
211 BuildingParallel=$(subst mp,YES,$(filter mp,$(WAYS)))
212 BuildingGranSim=$(subst mg,YES,$(filter mg,$(WAYS)))
214 #------------------------------------------------------------------------------
215 # Options for GHC's Prelude
217 # What extra ways to build the libraries in
218 # In addition to the normal sequential way, the default is to also build
219 # profiled prelude libraries.
220 # When booting from .hc files, turn this off.
221 ifeq "$(BootingFromHc)" "YES"
227 # Option flags to pass to GHC when it's compiling prelude modules
228 # *and* standard library modules (std) *and* modules in hslibs
229 # Typically these are things like -O or -dcore-lint
230 # The ones that are *essential* are wired into ghc/lib/Makefile
232 # -O is pretty desirable, otherwise no inlining of prelude
233 # things (incl "+") happens when compiling with this compiler
235 GhcLibHcOpts=-O -Rghc-timing
237 # Win32 only: Enable the RTS and libraries to be built as DLLs
238 DLLized=@EnableWin32DLLs@
240 # Win32 only: are we building a compiler that tries to reduce external
241 # dependencies? i.e., one that doesn't assume that the user has got
242 # the cygwin toolchain installed on his/her Win32 box.
244 # GHC is still dependent on GNU tools in the backend (gcc to further process
245 # .c/.hc/.s/.o files + 'perl' to mangle and split), but using this
246 # option a GHC distribution can be put together which includes a minimal
247 # set of these open source tools.
249 MinimalUnixDeps=@MinimalUnixDeps@
251 # Don't split object files for libs if we're building DLLs, or booting from
255 ifeq "$(DLLized)" "YES"
258 ifeq "$(BootingFromHc)" "YES"
261 ifeq "$(GhcUnregisterised)" "YES"
265 # Strip local symbols from libraries? This can make the libraries smaller,
266 # but makes debugging somewhat more difficult. Doesn't work with all ld's.
270 # ----------------------------------------------------------------------------
271 # Options for GHC's RTS
273 # This is a good way to set things like -optc-g and -optc-DDEBUG for the RTS.
274 # GhcRtsHcOpts is used when compiling .hc files and .c files.
275 # GhcRtsCcOpts is used when compiling .c files only.
277 # For a debugging RTS:
278 # GhcRtsHcOpts = -optc-DDEBUG
281 # For an optimised RTS:
283 GhcRtsCcOpts=-O2 -fomit-frame-pointer
285 # Include the front panel code? Needs GTK+.
286 GhcRtsWithFrontPanel = NO
288 ################################################################################
292 ################################################################################
294 # Build HsLibs for which compiler?
296 # If $(HsLibsFor) == hugs or ghc, we assume we're building for the
297 # compiler/interpreter in the same source tree.
299 # HsLibsFor = ghc | hugs | nhc | hbc
302 # hslibs for GHC also uses the following variables (defined above):
303 # GhcLibWays, GhcLibHcOpts, GhcLibToolsHcOpts, DLLized, StripLibraries
305 # Haskell compiler options for tools in fptools
308 # Build the Haskell Readline bindings?
310 GhcLibsWithReadline=@HaveReadlineHeaders@
312 # Libraries needed for linking with readline
313 LibsReadline=@LibsReadline@
315 # Include path to readline.h
316 # (no path == in standard include path)
323 # Build the Haskell OpenGL/GLUT binding?
325 GhcLibsWithHOpenGL=@GhcLibsWithHOpenGL@
330 ################################################################################
334 # Happy specific options
336 ################################################################################
338 # The compiler you'd like to use to compile Happy
339 WithHappyHc = @WithHc@
341 # HappyHcOpts gives the flags to pass to the Haskell compiler used
342 # to compile the Happy sources with.
346 ################################################################################
350 # Haggis specific options
352 ################################################################################
354 ################################################################################
358 # Green-card specific options
360 ################################################################################
362 ################################################################################
366 # nofib specific options
368 ################################################################################
370 WithNofibHc = $(GHC_INPLACE)
372 # NoFibSubDirs controls which set of tests should be run
373 # You can run one or more of
381 NoFibSubDirs = imaginary spectral real
383 # The different ways to build nofib. Default is just to mirror
384 # what is done for the ghc prelude libraries.
386 NoFibWays = $(GhcLibWays)
388 # Haskell compiler options for nofib
391 # ==============================================================================
393 # END OF PROJECT-SPECIFIC STUFF
395 # Now come the generic configuration options
397 # ==============================================================================
399 ################################################################################
401 # Paths (see paths.mk)
403 ################################################################################
405 # Directory used by GHC (and possibly other tools) for storing
406 # temporary files. If your TMPDIR isn't big enough, either override
407 # this in build.mk or set your environment variable "TMPDIR" to point
408 # to somewhere with more space. (TMPDIR=. is a good choice).
410 # DEFAULT_TMPDIR isn't called TMPDIR because GNU make tends to
411 # override an environment variable with the value of the make variable
412 # of the same name (if it exists) when executing sub-processes, so
413 # setting the TMPDIR env var would have no effect in the build tree.
415 DEFAULT_TMPDIR = /tmp
416 ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
417 DEFAULT_TMPDIR = C:/TEMP
419 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
420 DEFAULT_TMPDIR = C:/TEMP
423 # FPTOOLS_TOP: the top of the fptools hierarchy, absolute path.
425 ifeq "$(findstring $(TARGETPLATFORM), i386-unknown-cygwin32 i386-unknown-mingw32)" ""
426 FPTOOLS_TOP_ABS = @hardtop@
428 FPTOOLS_TOP_ABS = $(subst \,/,$(shell cygpath -w @hardtop@))
430 # Keep the Unix-style path to use with Unix tools (e.g. in ghc-inplace script)
431 FPTOOLS_TOP_ABS_UNIX = @hardtop@
434 # Installation directories, we don't use half of these,
435 # but since the configure script has them on offer while
436 # passing through, we might as well set them.
439 exec_prefix = @exec_prefix@
443 #sysconfdir = @datadir@
444 #sharedstatedir = @sharedstatedir@
445 #localstatedir = @localstatedir@
447 includedir = @includedir@
448 oldincludedir = @oldincludedir@
451 #UNUSED:infodir = @infodir@
452 #UNUSED:srcdir = @srcdir@
455 # override libdir and datadir to put project-specific stuff in
456 # a subdirectory with the version number included.
458 libdir := $(if $(ProjectNameShort),$(libdir)/$(ProjectNameShort)-$(ProjectVersion),$(libdir))
459 datadir := $(if $(ProjectNameShort),$(datadir)/$(ProjectNameShort)-$(ProjectVersion),$(datadir))
462 # Default values for most of the above are only set if
463 # they weren't configured to anything in particular
464 # via the configure script. (i.e., we make no assumption
465 # that the autoconf-generated script will assign defaults
466 # to all of the above).
468 ifeq "$(strip $(exec_prefix))" ""
469 exec_prefix = $(prefix)
471 ifeq "$(strip $(bindir))" ""
472 bindir = $(exec_prefix)/bin
476 # NOTE: by intention, libexecdir and libdir point to
478 # => Only way to override this is to set libexecdir= on the command line.
479 # (NOTE: configure script setting is ignored).
480 libexecdir = $(libdir)
482 ifeq "$(strip $(datadir))" ""
483 datadir = $(prefix)/share
485 ifeq "$(strip $(libdir))" ""
486 libdir = $(exec_prefix)/lib
488 ifeq "$(strip $(includedir))" ""
489 includedir = $(prefix)/include
491 ifeq "$(strip $(oldincludedir))" ""
492 oldincludedir = /usr/include
494 ifeq "$(strip $(mandir))" ""
495 mandir = $(prefix)/man
499 ################################################################################
501 # Utilities programs: flags
503 ################################################################################
505 # If you want to give any standard flags to pretty much any utility
506 # (see utils.mk for a complete list), by adding a line here
510 # where P is the utility. For example, to add -O to all Haskell
515 # These flags make flex 8-bit
518 SRC_INSTALL_BIN_OPTS += -s
520 # lint gets all CPP's flags too
521 SRC_LINT_OPTS += -axz -DLINT $(SRC_CPP_OPTS)
522 WAY$(_way)_LINT_OPTS += WAY$(_way)_CPP_OPTS
524 # Default fptools options for dllwrap.
525 SRC_BLD_DLL_OPTS += -mno-cygwin --target=i386-mingw32
527 # Flags for CPP when running GreenCard on .pgc files
528 GC_CPP_OPTS += -P -E -x c -traditional -D__GLASGOW_HASKELL__
531 ################################################################################
533 # Utilities programs: where to find them
535 ################################################################################
537 #-----------------------------------------------------------------------------
538 # FPtools Utility locations
540 # By default, the various utils needed to be build ghc and chums
541 # is set up to point to the utils/ directory. Define here the
542 # path prefix for the utilities. Notice that it's a prefix with
543 # a trailing slash, so that it can be concatenated directly on
544 # front of a program name; if it's not set then we just look
545 # along the shell's $(PATH)
547 # If instead you want to use installed or your own versions of these,
548 # override the various *_PREFIX in build.mk, i.e., having the following
553 # will force `make' to rummage around in your PATH to find `mkdependC' (not
554 # sure it would need it in the first place, but still).
556 GLAFP_UTILS = $(FPTOOLS_TOP)/glafp-utils
558 SCRIPT_PREFIX = $(GLAFP_UTILS)/scripts/
559 MKDEPENDC_PREFIX = $(GLAFP_UTILS)/mkdependC/
560 LTX_PREFIX = $(GLAFP_UTILS)/ltx/
561 RUNTEST_PREFIX = $(GLAFP_UTILS)/runstdtest/
562 VERBATIM_PREFIX = $(GLAFP_UTILS)/verbatim/
563 SGMLVERB_PREFIX = $(GLAFP_UTILS)/sgmlverb/
564 ETAGS_PREFIX = $(GLAFP_UTILS)/etags/
565 MSUB_PREFIX = $(GLAFP_UTILS)/msub/
566 LNDIR_PREFIX = $(GLAFP_UTILS)/lndir/
567 MKDIRHIER_PREFIX = $(GLAFP_UTILS)/mkdirhier/
568 DOCBOOK_PREFIX = $(GLAFP_UTILS)/docbook/
570 LITERATE_PREFIX = $(FPTOOLS_TOP)/literate/
572 HAPPY_PREFIX = $(FPTOOLS_TOP)/happy/src/
573 GREENCARD_PREFIX = $(FPTOOLS_TOP)/green-card/src/
575 UNLIT_PREFIX = $(FPTOOLS_TOP)/ghc/utils/unlit/
576 HP2PS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hp2ps/
577 HSTAGS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hstags/
578 HSC2HS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hsc2hs/
580 #-----------------------------------------------------------------------------
581 # Haskell compilers and mkdependHS
583 # $(GHC), $(HBC) and $(NHC) point to installed versions of the relevant
584 # compilers, if available.
586 # $(HC) is a generic Haskell 98 compiler, set to $(GHC) by default.
587 # $(MKDEPENDHS) is the Haskell dependency generator (ghc -M).
589 # NOTE: Don't override $(GHC) in build.mk, use configure --with-ghc instead
590 # (because the version numbers have to be calculated).
593 GhcVersion = @GhcVersion@
594 GhcMajVersion = @GhcMajVersion@
595 GhcMinVersion = @GhcMinVersion@
596 GhcPatchLevel = @GhcPatchLevel@
604 # Sometimes we want to invoke ghc from the build tree in different
605 # projects (eg. it's handy to have a nofib & a ghc build in the same
606 # tree). We can refer to "this ghc" as $(GHC_INPLACE):
608 GHC_INPLACE = $(FPTOOLS_TOP)/ghc/compiler/ghc-inplace
610 #-----------------------------------------------------------------------------
613 # NB. Don't override $(WhatGccIsCalled) using build.mk, re-configure using
614 # the flag --with-gcc=<blah> instead. The reason is that the configure script
615 # needs to know which gcc you're using in order to perform its tests.
619 WhatGccIsCalled = @WhatGccIsCalled@
620 ifeq "$(strip $(HaveGcc))" "YES"
621 ifneq "$(strip $(UseGcc))" "YES"
624 CC = $(WhatGccIsCalled)
628 # default C compiler flags
629 SRC_CC_OPTS = @SRC_CC_OPTS@
631 #-----------------------------------------------------------------------------
632 # GMP Library (version 2.0.x or above)
634 HaveLibGmp = @HaveLibGmp@
637 #-----------------------------------------------------------------------------
639 # (if present in libc use that one, otherwise use the one in the tree)
641 HaveRegex = @HaveRegex@
643 #-----------------------------------------------------------------------------
646 GTK_CONFIG = @GTK_CONFIG@
647 GTK_VERSION = @GTK_VERSION@
649 #-----------------------------------------------------------------------------
653 # Don't bother with -lfl, we define our own yywrap()s anyway.
655 #WAS:FLEX_LIB = @LEXLIB@
657 #-----------------------------------------------------------------------------
658 # Other standard (ha!) Unix utilities
661 ArSupportsInput = @ArSupportsInput@
662 # Yuckage: for ghc/utils/parallel -- todo: nuke this dependency!!
663 BASH = /usr/local/bin/bash
665 # Could be either gzip or compress
667 COMPRESS = @CompressCmd@
668 COMPRESS_SUFFIX = @CompressSuffix@
670 CONTEXT_DIFF = @ContextDiffCmd@
675 # RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to
676 # behave plausibly on Haskell sources.
678 RAWCPP_FLAGS = -undef -traditional
682 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
683 # install-sh script (if chosen). This not terribly useful to us, so we convert
684 # it into an abs. path.
686 INSTALL := $(subst .././install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
697 PREPROCESSCMD = $(CC) -E
704 # In emergency situations, REAL_SHELL is used to perform shell commands
705 # from within the ghc driver script, by scribbling the command line to
706 # a temp file and then having $(REAL_SHELL) execute it.
708 # The reason for having to do this is that overly long command lines
709 # cause unnecessary trouble with some shells (e.g., /bin/sh on Solaris
710 # 2.5.1), which is why this backdoor is provided. The situation of overly
711 # long command lines is either encountered while doing `make boot' in ghc/compiler,
712 # or when linking the compiler binary (`hsc').
714 # We do not use SHELL to execute long commands, as `make' will more than likely
715 # override whatever setting you have in your environment while executing.
717 # By default, REAL_SHELL is set equal to SHELL, which is not really a smart move
718 # as it is SHELL that will show up the bogosity in the first place, but setting
719 # it to anything else isn't really portable.
721 # ====> If long command lines cause you trouble, invoke `ghc' (via `make' or otherwise)
722 # with REAL_SHELL set to something else than /bin/sh, for instance, your favourite
732 # Under Windows, we have to deal with .exe suffixes
737 # This is special to literate/, ToDo: add literate-specific
738 # configure setup to literate/.
743 TGRIND_HELPER = /usr/local/lib/tgrind/tfontedpr # XXX
751 #-----------------------------------------------------------------------------
756 SGML2DVI = $(DOCBOOK_PREFIX)db2dvi
757 SGML2HTML = $(DOCBOOK_PREFIX)db2html
758 SGML2PS = $(DOCBOOK_PREFIX)db2ps
759 SGML2PDF = $(DOCBOOK_PREFIX)db2pdf
760 SGML2RTF = $(DOCBOOK_PREFIX)db2rtf
762 SGMLSTYLESHEET = $(FPTOOLS_TOP_ABS)/docs/fptools-both.dsl
764 SRC_SGML2DVI_OPTS = -d $(SGMLSTYLESHEET)
765 SRC_SGML2HTML_OPTS = -d $(SGMLSTYLESHEET)
766 SRC_SGML2PS_OPTS = -d $(SGMLSTYLESHEET)
767 SRC_SGML2RTF_OPTS = -d $(SGMLSTYLESHEET)
768 SRC_SGML2PDF_OPTS = -d $(SGMLSTYLESHEET)
770 DOCBOOK_CATALOG = @Catalog@
772 #-----------------------------------------------------------------------------
773 # FPtools support software
775 # Stuff from fptools/glafp-utils
776 MKDEPENDC = $(MKDEPENDC_PREFIX)mkdependC
777 LTX = $(LTX_PREFIX)ltx
778 MKDIRHIER = $(MKDIRHIER_PREFIX)mkdirhier
779 LNDIR = $(LNDIR_PREFIX)lndir
780 MSUB = $(MSUB_PREFIX)msub
781 ETAGS = $(ETAGS_PREFIX)etags
782 VERBATIM = $(VERBATIM_PREFIX)verbatim
783 SGMLVERB = $(SGMLVERB_PREFIX)sgmlverb
784 RUNTEST = $(RUNTEST_PREFIX)runstdtest
786 GREENCARD = $(FPTOOLS_TOP)/green-card/src/green-card
794 HAPPY_VERSION = @HappyVersion@
796 # Options to pass to Happy when we're going to compile the output with GHC
798 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)
801 # Stuff from fptools/literate
803 LIT2PGM = $(LITERATE_PREFIX)lit2pgm
804 LIT2HTML = $(LITERATE_PREFIX)lit2html
805 LIT2LATEX = $(LITERATE_PREFIX)lit2latex
806 MKDEPENDLIT = $(LITERATE_PREFIX)mkdependlit
807 LIT2CHANGELOG = $(LITERATE_PREFIX)lit2changelog
808 LIT2TEXT = $(LITERATE_PREFIX)lit2text
811 # Stuff from fptools/ghc/utils
813 UNLIT = $(UNLIT_PREFIX)unlit$(EXE_SUFFIX)
814 HP2PS = $(HP2PS_PREFIX)hp2ps$(EXE_SUFFIX)
815 HSTAGS = $(HSTAGS_PREFIX)hstags
816 HSC2HS = $(HSC2HS_PREFIX)hsc2hs-inplace
819 # Options for the compiling different `ways'. Various projects within
820 # the glorious fptools tree support building in various user-configured
821 # ways. For instance, you could set up one `way' such that the prelude
822 # libraries all were built with the option -ffoldr-build-on.
824 # To configure up your own way, have a look at some of the standard ways
825 # such as profiling, and create your own set of WAY_*_OPTS defs below.
826 # After having done that, add your way string to WAYS, and after having
827 # run the configure script, the different projects will add the new way
828 # to the list of ways they support.
832 # IMPORTANT! The WAYS variable configures the different `ways'
833 # you want to build a project (or maybe just parts of it, as is
834 # the case for ghc/). This variable is intended set inside the
835 # project mk setup, enforcing a global fptools WAYS is a bit too
836 # much (do you *really* want to build glafp-utils the profiled-concurrent
841 # Definitions of the different ways:
845 # - description, e.g., profiling
846 # * what they mean to the driver:
847 # - WAY_p_HC_OPTS gives the list of command-line options
852 # The ways currently defined.
854 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
855 USER_WAYS=a b c d e f g h i j k l m n o A B
858 # The following ways currently have treated specially, p u t mg,
859 # as the driver script treats these guys specially and needs to carefully be told
860 # about the options for these. Hence, we hide the required command line options
861 # for these in the ghc/driver, as this is the only place they are needed.
863 # If you want to add to these default options, fill in the variables below:
870 WAY_t_NAME=ticky-ticky profiling
871 WAY_t_HC_OPTS= -ticky
874 WAY_u_NAME=unregisterized (using portable C only)
878 WAY_s_NAME=threads (for SMP)
883 WAY_mp_HC_OPTS=-parallel
887 WAY_mg_HC_OPTS=-gransim
890 # Add user-way configurations here: