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