[project @ 1997-11-13 12:10:32 by simonm]
[ghc-hetmet.git] / mk / config.mk.in
1 #
2 # @configure_input@
3 #
4 #################################################################################
5 #
6 #                       config.mk.in-template
7 #
8 #       This file defines all the variables that set the configuration of
9 #       a particular build.
10 #
11 #
12 #################################################################################
13
14 # The configuration is defined in two steps:
15 #
16 #       1. The builder (i.e. the person doing the build)
17 #          copies this file, config.mk.in-template
18 #          to config.mk.in
19 #
20 #       2. S/he then edits it manually (gasp) to reflect any configuration
21 #          options s/he wants.
22 #
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@.
26 #
27 # This is one of only two files that configure generates (the other is config.h)
28 #
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. 
31 #
32
33 # There is a section below for each project within the fptools suite
34 #
35 #       PLUS
36 #
37 # a section corresponding to each of the main .mk files 
38 # included by boilerplate.mk (see boilerplate.mk for a list).
39
40
41 #################################################################################
42 #
43 #               Project-wide platform variables
44 #
45 #################################################################################
46
47 # A "platform" is the GNU cpu-type/manufacturer/operating-system target machine
48 # specifier.  E.g. sparc-sun-solaris2
49
50 HOSTPLATFORM                    = @HostPlatform@
51 TARGETPLATFORM                  = @TargetPlatform@
52 BUILDPLATFORM                   = @HostPlatform@
53
54 # Hack alert:
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.
57 #
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@
63
64 #
65 # ToDo: check if these can be purged now. -- sof
66 #
67
68 @HostPlatform_CPP@_HOST        = 1
69 @HostPlatform_CPP@_TARGET      = 1
70 @HostPlatform_CPP@_BUILD       = 1
71
72 @HostArch_CPP@_HOST_ARCH       = 1
73 @HostArch_CPP@_TARGET_ARCH      = 1
74 @HostArch_CPP@_BUILD_ARCH      = 1
75
76 @HostOS_CPP@_HOST_OS           = 1
77 @HostOS_CPP@_TARGET_OS         = 1
78 @HostOS_CPP@_BUILD_OS          = 1
79
80 @HostVendor_CPP@_HOST_VENDOR    = 1
81 @HostVendor_CPP@_TARGET_VENDOR  = 1
82 @HostVendor_CPP@_BUILD_VENDOR   = 1
83
84 # Leading underscores on symbol names in object files
85 # Valid options: YES/NO
86 #
87 LeadingUnderscore=@LeadingUnderscore@
88
89 # Pin a suffix on executables? If so, what. (cygwin32 only).
90 exeext=
91
92 #################################################################################
93 #
94 #               project-wide flags
95 #
96 #       Set of options applicable to all fptools projects
97 #
98 #################################################################################
99
100 #
101 # What parts to build: An fptools build tree does not have to be built
102 # all in one go. By setting the list of ProjectsToBuild in build.mk you can
103 # control which projects are built.
104 #
105 # Caution: the projects are built in the order given here, so if some
106 # projects use others you must list them in the correct order.
107 #
108 # Generally:    * glafp-utils should be first
109 #               * literate next
110 #               * happy next
111 #               * ghc&hslibs next
112 #               then it's up to you
113
114 ProjectsToBuild   = glafp-utils literate happy ghc hslibs
115 #
116 # Make a distinction between building and installing, ProjectsToInstall
117 # does not include the literate bits..
118 #
119 ProjectsToInstall = glafp-utils happy ghc hslibs
120
121 #
122 # Should the various project tests directories be built?
123 #
124 IncludeTestDirsInBuild=NO
125
126 #################################################################################
127 #
128 #               GHC project
129
130 #       Set of (configurable) options needed by the ghc tree
131 #       plus their default options (if any).
132 #
133 #################################################################################
134
135 #
136 # Name variables for ghc:
137
138 GhcProjectName         = The Glorious Glasgow Haskell Compilation System
139 GhcProjectNameShort    = ghc
140 GhcProjectVersion      = 2.09
141 GhcProjectPatchLevel   = 0
142
143 #
144 # Name variables for happy:
145 #
146 HappyProjectName       = Happy
147 HappyProjectNameShort  = happy
148 HappyProjectVersion    = 1.4
149 HappyProjectPatchLevel = 0
150
151 #
152 # Name variables for the fptools, for now equal to the above
153 # ghc stuff
154 #
155 ProjectName       =$(GhcProjectName)
156 ProjectNameShort  =$(GhcProjectNameShort)
157 ProjectVersion    =$(GhcProjectVersion)
158 ProjectPatchLevel =$(GhcProjectPatchLevel)
159
160
161 #---------------------------------------------------------------
162 #
163 # Variables that control how the compiler itself is built
164
165 # Specify the Haskell compiler to be used to compile the compiler itself
166 #
167 #   WithGhcHc      Path name of the compiler to use
168 #
169 #   Ghc2_0         Whether this compiler is GHC 2.0 or later
170 #                  (which affects gruesome details about
171 #                  how mutually recursive modules are handled)
172 #
173 #   WithGhcHcType  What "type" of compiler is being used
174 #                  Valid options:
175 #                            HC_CHALMERS_HBC
176 #                            HC_GLASGOW_GHC
177 #                            HC_ROJEMO_NHC
178 #                            HC_UNSPECIFIED
179
180 WithGhcHc = ghc-0.29
181 Ghc2_0=NO
182
183 # Unused, we think
184 # WithGhcHcType=HC_GLASGOW_GHC
185
186 # Extra ways in which to build the compiler (for example, you might want to
187 # build a profiled compiler so you can see where it spends its time)
188 GhcCompilerWays=
189
190 # Extra option flags to pass to the compiler that compiles the compiler
191 # (Ones that are essential are wired into ghc/compiler/Makefile)
192 # Typical ones:
193 #       -H25m           allocate a bigger heap (default is 6m)
194 #
195 #       -O              compile an optimised compiler
196 #                       NB! If you add -O you'll almost certainly need to increase
197 #                       the amount of heap space too (to 15m or more)
198 #
199 #       -DDEBUG         include consistency/assertion checks in the compiled compiler
200 #
201 #       -dcore-lint     check the types after every pass of the compiler;
202 #                       a pretty strong internal check
203 GhcHcOpts=
204
205 # GhcWithHscBuiltViaC - build GHC compiler proper (\`hsc') from .hc files?
206 GhcWithHscBuiltViaC=NO
207
208 # Build hsc with -O and turn optimising flag on when compiling
209 # the intermediate C file
210 GhcUseGccForOptAsm=YES
211
212 # Compile intermediate C file with debugging options set.
213 GhcUseGccForDebuggingAsm=YES
214
215 # Build a registerised version of hsc and runtime
216 # (you'd be desperate or silly not to).
217 GhcWithRegisterised=YES
218
219 # Build a compiler with a native code generator backend
220 # (as well as a C backend)
221 #
222 # Target platforms supported:
223 #   i386, alpha & sparc
224 GhcWithNativeCodeGen=$(shell if (test x$(findstring $(HostArch_CPP),i386 alpha sparc) = x); then echo NO; else echo YES; fi)
225
226 #
227 # Building various ways?
228 # (right now, empty if not).
229 BuildingParallel=$(subst mp,YES,$(filter mp,$(WAYS)))
230 BuildingConcurrent=$(subst mc,YES,$(filter mc,$(WAYS)))
231 BuildingProfiling=$(subst p,YES,$(filter p,$(WAYS)))
232 BuildingGranSim=$(subst mg,YES,$(filter mg,$(WAYS)))
233 BuildingProfilingConcurrent=$(subst mr,YES,$(filter mr,$(WAYS)))
234
235 #---------------------------------------------------------------
236 #
237 # Variables that control how the prelude libraries and runtime system are built
238
239 # What extra ways to build the libraries in
240 # In addition to the normal sequential way, the default is to also build
241 # profiled prelude libraries.
242 GhcLibWays=p
243
244 # Option flags to pass to GHC when it's compiling prelude modules
245 # Typically these are things like -O or -dcore-lint
246 # The ones that are *essential* are wired into ghc/lib/Makefile
247 #
248 #       -O is pretty desirable, otherwise no inlining of prelude
249 #               things (incl "+") happens when compiling with this compiler
250
251 #
252 # Splitting profiled code produces awfully large archives under ELF, so
253 # we turn it off here.
254 #
255 # ToDo: track down the source of this.
256 #
257 ifneq "$(strip $(way))" "p"
258 GhcLibHcOpts= -O -split-objs -odir $*
259 else
260 GhcLibHcOpts= -O
261 endif
262
263
264 #################################################################################
265 #
266 #               hslibs project
267 #
268 #       Set of (configurable) options needed by the Haskell libraries (hslibs)
269 #       plus their default options (if any).
270 #
271 #################################################################################
272
273 # Build the Haskell Readline bindings?
274 #
275 HsLibsWithReadline=NO
276 #
277 # Include path to readline.h
278 # (no path == in standard include path)
279 #
280 ReadlineIncludePath=
281
282 # Build the socket libraries?
283 #
284 HsLibsWithSockets=YES
285
286 #
287 # The different ways to build hslibs. Default is just to mirror
288 # what is done for the ghc prelude libraries.
289 #
290 HsLibWays=$(GhcLibWays)
291
292 # Option flags for hslibs are by default the same as for the options
293 # used for the prelude libs (see above).
294 HsLibHcOpts=$(GhcLibHcOpts)
295
296 #################################################################################
297 #
298 #               happy project
299 #
300 #       Happy specific options
301 #
302 #################################################################################
303
304 # The compiler you'd like to use to compile Happy
305 WithHappyHc = $(WithGhcHc)
306
307 # HappyHcOpts gives the flags to pass to the Haskell compiler used
308 #             to compile the Happy source coed
309 HappyHcOpts = 
310
311
312 #################################################################################
313 #
314 #               haggis project
315 #
316 #       Haggis specific options
317 #
318 #################################################################################
319
320
321
322 #################################################################################
323 #
324 #               green-card project
325 #
326 #       Green-card specific options
327 #
328 #################################################################################
329
330
331 #################################################################################
332 #
333 #               nofib project
334 #
335 #       nofib specific options
336 #
337 #################################################################################
338
339
340 # NoFibSubDirs controls which set of tests should be run
341 # You can run one or more of
342 #       imaginary 
343 #       spectral
344 #       real
345 #       parallel
346 #       PRIVATE
347 #       GHC_ONLY
348 #       PENDING
349 #       UNUSED
350 NoFibSubDirs = imaginary spectral real GHC_ONLY PRIVATE
351
352 # The different ways to build nofib. Default is just to mirror
353 # what is done for the ghc prelude libraries.
354 #
355 NoFibWays=$(GhcLibWays)
356
357 # Haskell compiler options for nofib
358 NoFibHcOpts=
359
360 # ==============================================================================
361 #
362 #                       END OF PROJECT-SPECIFIC STUFF
363 #
364 #               Now come the generic configuration options
365 #
366 # ==============================================================================
367
368 #################################################################################
369 #
370 #               Paths (see paths.mk)
371 #
372 #################################################################################
373
374 TMPDIR                  = /tmp
375
376 # FPTOOLS_TOP: the top of the fptools hierarchy, absolute path.
377
378 FPTOOLS_TOP_ABS         = @hardtop@
379
380 #
381 # Installation directories, we don't use half of these,
382 # but since the configure script has them on offer while
383 # passing through, we might as well set them.
384
385 prefix                  = @prefix@
386 exec_prefix             = @exec_prefix@
387 bindir                  = @bindir@
388 #UNUSED, see below: libexecdir              = @libexecdir@
389 datadir                 = @datadir@
390 #sysconfdir              = @datadir@
391 #sharedstatedir          = @sharedstatedir@
392 #localstatedir           = @localstatedir@
393 libdir                  = @libdir@
394 infodir                 = @infodir@
395 includedir              = @includedir@
396 oldincludedir           = @oldincludedir@
397 mandir                  = @mandir@
398 #UNUSED:srcdir          = @srcdir@
399
400
401 # Default values for most of the above are only set if
402 # they weren't configured to anything in particular
403 # via the configure script. (i.e., we make no assumption
404 # that the autoconf-generated script will assign defaults
405 # to all of the above).
406 #
407 ifeq "$(strip $(exec_prefix))" ""
408 exec_prefix             = $(prefix)
409 endif
410 ifeq "$(strip $(bindir))" ""
411 bindir                  = $(exec_prefix)/bin
412 endif
413
414 #
415 # NOTE: by intention, libexecdir and libdir point to 
416 # the same place.
417 #  => Only way to override this is to set libexecdir= on the command line.
418 #     (NOTE: configure script setting is ignored).
419 libexecdir              = $(libdir)
420
421 ifeq "$(strip $(datadir))" ""
422 datadir         = $(prefix)/share
423 endif
424 ifeq "$(strip $(libdir))" ""
425 libdir          = $(exec_prefix)/lib
426 endif
427 ifeq "$(strip $(infodir))" ""
428 infodir         = $(prefix)/info
429 endif
430 ifeq "$(strip $(includedir))" ""
431 includedir      = $(prefix)/include
432 endif
433 ifeq "$(strip $(oldincludedir))" ""
434 oldincludedir   = /usr/include
435 endif
436 ifeq "$(strip $(mandir))" ""
437 mandir          = $(prefix)/man
438 endif
439  
440
441 #################################################################################
442 #
443 #               Utilities programs: flags
444 #
445 #################################################################################
446
447 # If you want to give any standard flags to pretty much any utility
448 # (see utils.mk for a complete list), by adding a line here
449 #
450 #       SRC_P_OPTS += ...
451 #
452 # where P is the utility. For example, to add -O to all Haskell
453 # compilations, 
454 #
455 #       SRC_HC_OPTS += -O
456
457
458 #################################################################################
459 #
460 #               Utilities programs: where to find them
461 #
462 #################################################################################
463
464 #-----------------------------------------------------------------------------
465 # FPtools Utility locations
466
467 # By default, the various utils needed to be build ghc and chums
468 # is set up to point to the utils/ directory. Define here the
469 # path prefix for the utilities. Notice that it's a prefix with
470 # a trailing slash, so that it can be concatenated directly on
471 # front of a program name; if it's not set then we just look
472 # along the shell's $(PATH)
473 #
474 # If instead you want to use installed or your own versions of these,
475 # override the various *_PREFIX in build.mk, i.e., having the following
476 # in build.mk:
477 #
478 #   FASTMAKE_PREFIX=
479 #
480 # will force `make' to rummage around in your PATH to find `fastmake' (not
481 # sure it would need it in the first place, but still).
482 #
483 GLAFP_UTILS             = $(FPTOOLS_TOP)/glafp-utils
484
485 SCRIPT_PREFIX           = $(GLAFP_UTILS)/scripts/
486 FASTMAKE_PREFIX         = $(GLAFP_UTILS)/fastmake/
487 MKDEPENDC_PREFIX        = $(GLAFP_UTILS)/mkdependC/
488 LTX_PREFIX              = $(GLAFP_UTILS)/ltx/
489 RUNTEST_PREFIX          = $(GLAFP_UTILS)/runstdtest/
490 VERBATIM_PREFIX         = $(GLAFP_UTILS)/verbatim/
491 ETAGS_PREFIX            = $(GLAFP_UTILS)/etags/
492 MSUB_PREFIX             = $(GLAFP_UTILS)/msub/
493 LNDIR_PREFIX            = $(GLAFP_UTILS)/lndir/
494 MKDIRHIER_PREFIX        = $(GLAFP_UTILS)/mkdirhier/
495
496 # Still used?
497 LITERATE                = $(FPTOOLS_TOP)/literate
498
499 LITERATE_PREFIX         = $(FPTOOLS_TOP)/literate/
500 INFO_PREFIX             = $(FPTOOLS_TOP)/literate/info-utils/
501 TEXI2HTML_PREFIX        = $(LITERATE_PREFIX)texi2html/
502
503 HAPPY_PREFIX            = $(FPTOOLS_TOP)/happy/src/
504 GREENCARD_PREFIX        = $(FPTOOLS_TOP)/green-card/src/
505
506 UNLIT_PREFIX            = $(FPTOOLS_TOP)/ghc/utils/unlit/
507 UGEN_PREFIX             = $(FPTOOLS_TOP)/ghc/utils/ugen/
508 STAT2RESID_PREFIX       = $(FPTOOLS_TOP)/ghc/utils/stat2resid/
509 HP2PS_PREFIX            = $(FPTOOLS_TOP)/ghc/utils/hp2ps/
510 HSCPP_PREFIX            = $(FPTOOLS_TOP)/ghc/utils/hscpp/
511 HSTAGS_PREFIX           = $(FPTOOLS_TOP)/ghc/utils/hstags/
512
513
514 #-----------------------------------------------------------------------------
515 # Haskell compiler and mkdependHS
516
517 HC              = $(FPTOOLS_TOP)/ghc/driver/ghc
518 MKDEPENDHS      = $(HC)
519
520 #
521 # The compiler proper is built with the 1.2 compiler,
522 # so when building the dependencies, we need mkdependHS
523 # for the 1.2 compiler.
524 #
525 MKDEPENDHS_1_2  = mkdependHS-1.2
526
527 #-----------------------------------------------------------------------------
528 # C compiler
529 #
530 #
531 HaveGcc         = @HaveGcc@
532 UseGcc          = YES
533 WhatGccIsCalled = gcc
534 ifeq "$(strip $(HaveGcc))" "YES"
535 ifneq "$(strip $(UseGcc))"  "YES"
536   CC    = cc
537 else
538   CC    = $(WhatGccIsCalled)
539 endif
540 endif
541
542 #-----------------------------------------------------------------------------
543 # Flex
544
545 FLEX                    = @LEX@
546 FLEX_LIB                = @LEXLIB@
547
548 #-----------------------------------------------------------------------------
549 # Other standard (ha!) Unix utilities
550
551 AR                      = @ArCmd@
552 # Yuckage: for ghc/utils/parallel -- todo: nuke this dependency!!
553 BASH                    = /usr/local/bin/bash
554 #
555 # Could be either gzip or compress
556 #
557 COMPRESS                = @CompressCmd@
558 COMPRESS_SUFFIX         = @CompressSuffix@
559
560 CONTEXT_DIFF            = @ContextDiffCmd@
561 CP                      = cp
562 CPP                     = @RAWCPP@
563 CTAGS                   = $(ETAGS)
564 RAWCPP                  = @RAWCPP@
565 GNUCPP                  = @GNUCPP@
566 INSTALL                 = @INSTALL@
567 #
568 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
569 # install-sh script (if chosen). This not terribly useful to us, so we convert
570 # it into an abs. path.
571
572 INSTALL                 := $(subst .././install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
573 LATEX                   = latex
574 LN_S                    = @LN_S@
575 MANMACROS               = -man
576 MSMACROS                = -ms
577 MV                      = mv
578 NROFF                   = nroff
579 PERL                    = @PerlCmd@
580 PIC                     = pic
581 PREPROCESSCMD           = $(CC) -E
582 PRINTER                 = lpr
583 RANLIB                  = @RANLIB@
584 RM                      = rm -f
585 SED                     = @SedCmd@
586 SHELL                   = /bin/sh
587 #
588 # In emergency situations, REAL_SHELL is used to perform shell commands
589 # from within the ghc driver script, by scribbling the command line to
590 # a temp file and then having $(REAL_SHELL) execute it. 
591 #
592 # The reason for having to do this is that overly long command lines
593 # cause unnecessary trouble with some shells (e.g., /bin/sh on Solaris
594 # 2.5.1), which is why this backdoor is provided. The situation of overly
595 # long command lines is either encountered while doing `make boot' in ghc/compiler, 
596 # or when linking the compiler binary (`hsc'). 
597 #
598 # We do not use SHELL to execute long commands, as `make' will more than likely
599 # override whatever setting you have in your environment while executing. 
600
601 # By default, REAL_SHELL is set equal SHELL, which is not really a smart move
602 # as it SHELL that will show up the bogosity in the first place, but setting
603 # it to anything else isn't really portable.
604 #
605 #  ====> If long command lines cause you trouble, invoke `ghc' (via `make' or otherwise)
606 # with REAL_SHELL set to something else than /bin/sh, for instance, your favourite
607 # command shell.
608 #
609 REAL_SHELL=$(SHELL)
610 SIZE                    = size
611 STRIP                   = strip
612 TAR                     = @TarCmd@
613
614 #
615 # Under cygwin32, we have to deal with .exe suffixes
616 #
617 EXE_SUFFIX=@ExeSuffix@
618
619 #
620 # This is special to literate/, ToDo: add literate-specific
621 # configure setup to literate/.
622 #
623 TBL                     = tbl
624 TEX                     = tex
625 TGRIND                  = tgrind
626 TGRIND_HELPER           = /usr/local/lib/tgrind/tfontedpr # XXX
627 TIB                     = tib
628
629 TIME                    = @TimeCmd@
630 TROFF                   = troff
631 UNAME                   = uname
632 YACC                    = @YaccCmd@
633
634
635 #-----------------------------------------------------------------------------
636 #               FPtools support software
637
638 # Stuff from fptools/glafp-utils
639 MKDEPENDC               = $(MKDEPENDC_PREFIX)mkdependC
640 FASTMAKE                = $(FASTMAKE_PREFIX)fastmake
641 LTX                     = $(LTX_PREFIX)ltx
642 MKDIRHIER               = $(MKDIRHIER_PREFIX)mkdirhier
643 LNDIR                   = $(LNDIR_PREFIX)lndir
644 MSUB                    = $(MSUB_PREFIX)msub
645 ETAGS                   = $(ETAGS_PREFIX)etags
646 VERBATIM                = $(VERBATIM_PREFIX)verbatim
647 RUNTEST                 = $(RUNTEST_PREFIX)runstdtest
648 HAPPY                   = @HappyCmd@
649 HAPPY_VERSION           = @HappyVersion@                
650 LX                      = @LxCmd@
651 GREENCARD               = @GreencardCmd@
652
653 ifeq "$(HAPPY)" ""
654 HAPPY                   = $(HAPPY_PREFIX)happy
655 endif
656
657 #
658 # Stuff from fptools/literate
659 #
660 INFO                    = $(UTIL_PREFIX)info
661 MAKEINFO                = $(INFO_PREFIX)makeinfo
662 POSTMAKEINFO            = $(INFO_PREFIX)postmakeinfo
663 LIT2PGM                 = $(LITERATE_PREFIX)lit2pgm
664 LIT2TEXI                = $(LITERATE_PREFIX)lit2texi
665 LIT2HTML                = $(LITERATE_PREFIX)lit2html
666 LIT2LATEX               = $(LITERATE_PREFIX)lit2latex
667 MKDEPENDLIT             = $(LITERATE_PREFIX)mkdependlit
668 LIT2CHANGELOG           = $(LITERATE_PREFIX)lit2changelog
669 LIT2TEXT                = $(LITERATE_PREFIX)lit2text
670 TEXI2HTML               = $(TEXI2HTML_PREFIX)texi2html
671
672 #
673 # Stuff from fptools/ghc/utils
674 #
675 UNLIT                   = $(UNLIT_PREFIX)unlit
676 UGEN                    = $(UGEN_PREFIX)ugen
677 STAT2RESID              = $(STAT2RESID_PREFIX)stat2resid
678 HP2PS                   = $(HP2PS_PREFIX)hp2ps
679 HSCPP                   = $(HSCPP_PREFIX)hscpp
680 HSTAGS                  = $(HSTAGS_PREFIX)hstags
681
682 #
683 # Options for the compiling different `ways'. Various projects within
684 # the glorious fptools tree support building in various user-configured
685 # ways. For instance, you could set up one `way' such that the prelude
686 # libraries and hslibs all were built with the option -ffoldr-build-on.
687
688 # To configure up your own way, have a look at some of the standard ways
689 # such as profiling, and create your own set of WAY_*_OPTS defs below.
690 # After having done that, add your way string to WAYS, and after having
691 # run the configure script, the different projects will add the new way
692 # to the list of ways they support.
693 #
694
695 #
696 # IMPORTANT! The WAYS variable configures the different `ways'
697 # you want to build a project (or maybe just parts of it, as is
698 # the case for ghc/). This variable is intended set inside the
699 # project mk setup, enforcing a global fptools WAYS is a bit too
700 # much (do you *really* want to build glafp-utils the profiled-concurrent 
701 # way?)
702 #
703
704 #
705 # Definitions of the different ways:
706 #   
707 #   * their name:
708 #          - tag, e.g., p
709 #          - description, e.g., profiling
710 #   * what they mean to the driver:
711 #          - WAY_p_HC_OPTS gives the list of command-line options
712 #            to the driver.
713 #
714
715 #
716 # The ways currently defined.
717 #
718 ALL_WAYS=p t u mc mr mt mp mg 1s 2s du a b c d e f g h i j k l m n o A B
719
720 #
721 # The following ways currently have treated specially, p u t mc mt my mp mg 1s 2d du,
722 # as the driver script treats these guys specially and needs to carefully be told
723 # about the options for these. Hence, we hide the required command line options
724 # for these in the ghc/driver, as this is the only place they are needed.
725
726 # If you want to add to these default options, fill in the variables below:
727
728 WAY_p_NAME=profiling
729 WAY_p_HC_OPTS= -prof
730
731 # Way t:
732 WAY_t_NAME=ticky-ticky profiling
733 WAY_t_HC_OPTS= -ticky
734
735 # Way `u':
736 WAY_u_NAME=unregisterized (using portable C only)
737 WAY_u_HC_OPTS=
738
739 # Way `mc': concurrent
740 WAY_mc_NAME=concurrent
741 WAY_mc_HC_OPTS=-concurrent
742
743 # Way `mr': 
744 WAY_mr_NAME=profiled concurrent
745 WAY_mr_HC_OPTS=-prof -concurrent
746
747 # Way `mt': 
748 WAY_mt_NAME=ticky-ticky concurrent
749 WAY_mt_HC_OPTS=-ticky -concurrent
750
751 # Way `mp': 
752 WAY_mp_NAME=parallel
753 WAY_mp_HC_OPTS=-parallel
754
755 #
756 # Way `mg': 
757 #
758 WAY_mg_NAME=GranSim
759 WAY_mg_HC_OPTS=-gransim
760
761 #
762 # Ways for different garbage collectors
763 #
764 WAY_2s_NAME=2-space GC
765 WAY_2s_HC_OPTS=-2s
766
767 WAY_1s_NAME=1-space GC
768 WAY_1s_HC_OPTS=-1s
769
770 WAY_du_NAME=dual-mode GC
771 WAY_du_HC_OPTS=-du
772
773 #
774 # Add user-way configurations here:
775 #
776 WAY_A_NAME=
777 WAY_A_HC_OPTS=
778
779 WAY_B_NAME=
780 WAY_B_HC_OPTS=
781
782 WAY_a_NAME=
783 WAY_a_HC_OPTS=
784
785 WAY_b_NAME=
786 WAY_b_HC_OPTS=
787
788 WAY_c_NAME=
789 WAY_c_HC_OPTS=
790
791 WAY_d_NAME=
792 WAY_d_HC_OPTS=
793
794 WAY_e_NAME=
795 WAY_e_HC_OPTS=
796
797 WAY_f_NAME=
798 WAY_f_HC_OPTS=
799
800 WAY_g_NAME=
801 WAY_g_HC_OPTS=
802
803 WAY_h_NAME=
804 WAY_h_HC_OPTS=
805
806 WAY_i_NAME=
807 WAY_i_HC_OPTS=
808
809 WAY_j_NAME=
810 WAY_j_HC_OPTS=
811
812 WAY_k_NAME=
813 WAY_k_HC_OPTS=
814
815 WAY_l_NAME=
816 WAY_l_HC_OPTS=
817
818 WAY_m_NAME=
819 WAY_m_HC_OPTS=
820
821 WAY_n_NAME=
822 WAY_n_HC_OPTS=
823
824 WAY_o_NAME=
825 WAY_o_HC_OPTS=