GHC new build system megapatch
[ghc-hetmet.git] / mk / config.mk.in
1 #                                                                -*-makefile-*-
2 # @configure_input@
3 #
4 ################################################################################
5 #
6 # config.mk.in
7 #
8 # This file supplies defaults for many tweakable build configuration
9 # options.  Some of the defaults are filled in by the autoconf-generated
10 # configure script.
11 #
12 # DO NOT EDIT THIS FILE!
13 #
14 #       - config.mk is auto-generated from config.mk.in by configure.
15 #         This may be triggered automatically by the build system (say
16 #         if config.mk.in has changed more recently than config.mk),
17 #         so if you edit config.mk your changes will be spammed.
18 #
19 #       - Settings in this file may be overriden by giving replacement
20 #         definitions in build.mk.  See build.mk.sample for a good
21 #         starting point for a build.mk file.
22 #
23 #         If you don't have a build.mk file then you get defaults for everything.
24 #         The defaults should provide a reasonable vanilla build.
25 #
26 # This is one of only two files that configure generates (the other is config.h)
27 #
28
29 ifneq "$(findstring 3.7, $(MAKE_VERSION))" ""
30 ifeq "$(findstring 3.79.1, $(MAKE_VERSION))" ""
31 $(error GNU make version 3.79.1 or later is required.)
32 endif
33 endif
34
35 # TOP: the top of the fptools hierarchy, absolute path.
36 # On Windows this is a c:/foo/bar style path.
37 TOP             = @hardtop@
38
39 include $(TOP)/mk/project.mk
40
41 ################################################################################
42 #
43 #               Global configuration options
44 #
45 ################################################################################
46
47 # BootingFromHc - build GHC and the libraries from .hc files?
48 BootingFromHc = @BootingFromHc@
49
50 # BootingFromUnregisterisedHc - treat .hc files as containing unregisterised
51 # rather than registerised code, i.e., disable the mangler?
52 BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@
53
54 #
55 # Which ways should DocBook XML documents be built?
56 # options are: dvi ps pdf html chm HxS
57 #
58 XMLDocWays=
59
60 # Should we build latex docs?
61 LATEX_DOCS = NO
62
63 # Mac OS X deployment target (to cross-compile for older OS versions)
64 #
65 MACOSX_DEPLOYMENT_VERSION = @MACOSX_DEPLOYMENT_VERSION@
66 MACOSX_DEPLOYMENT_SDK = @MACOSX_DEPLOYMENT_SDK@
67
68 ifneq "$(MACOSX_DEPLOYMENT_VERSION)" ""
69 MACOSX_DEPLOYMENT_CC_OPTS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_VERSION) \
70                             -isysroot $(MACOSX_DEPLOYMENT_SDK) \
71                             --no-builtin-fprintf
72 MACOSX_DEPLOYMENT_LD_OPTS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_VERSION) \
73                             -Wl,-syslibroot,$(MACOSX_DEPLOYMENT_SDK)
74 # We don't extend SRC_CC_OPTS and friends here directly, as (a) they may get
75 # overwritten in build.mk and (b) we must not use the deployment options in
76 # stage 1 or we get a linker error if the bootstrap compiler is for a more 
77 # recent OS version.
78 #
79 # We need --no-builtin-fprintf, as the use of the builtin function optimisation
80 # for fprintf together with #include "PosixSource" in the RTS leads to the
81 # use of fwrite$UNIX2003 (with GCC 4.0.1 on Mac OS X 10.5.2).
82 endif
83
84 ################################################################################
85 #
86 # Variables that control how the compiler itself is built
87 #
88 ################################################################################
89
90 # The compiler used to build GHC is $(GHC).  To change the actual compiler
91 # used, re-configure with --with-ghc=<path-to-ghc>.
92
93 # Extra ways in which to build the compiler (for example, you might want to
94 # build a profiled compiler so you can see where it spends its time)
95 GhcCompilerWays=
96
97 # Extra option flags to pass to the compiler that compiles the compiler
98 # (Ones that are essential are wired into compiler/Makefile)
99 # Typical options to use here:
100 #
101 #       -DDEBUG         include debugging code and assertions (will make the
102 #                       compiler slower and produce debugging output, but useful
103 #                       for development)
104 #
105 #       -dcore-lint     check the types after every pass of the compiler;
106 #                       a pretty strong internal check of the compiler being
107 #                       used to compile GHC.  Useful when bootstrapping.
108 GhcHcOpts=-Rghc-timing
109
110 # Extra options added to specific stages of the compiler bootstrap.
111 # These are placed later on the command line, and may therefore
112 # override options from $(GhcHcOpts).
113 GhcStage1HcOpts=
114 GhcStage2HcOpts=-O2
115 GhcStage3HcOpts=-O2
116
117 GhcProfiled=NO
118 GhcDebugged=NO
119 GhcLibProfiled=$(if $(filter p,$(GhcLibWays)),YES,NO)
120
121 # Build shared and/or static libs?
122 BuildSharedLibs=@BuildSharedLibs@
123 # ToDo later:
124 # BuildStaticLibs=@BuildStaticLibs@
125
126 # Build a compiler that will build *unregisterised* libraries and
127 # binaries by default.  Unregisterised code is supposed to compile and
128 # run without any support for architecture-specific assembly mangling,
129 # register assignment or tail-calls, and is therefore a good way to get
130 # started when porting GHC to new architectures.
131 #
132 # If this is set to NO, you can still use the unregisterised way
133 # (way 'u') to get unregisterised code, but the default way will be
134 # registerised.
135 #
136 # NOTE: the stage1 compiler will be a registerised binary (assuming
137 # the compiler you build with is generating registerised binaries), but
138 # the stage2 compiler will be an unregisterised binary.
139 #
140 ifneq "$(findstring $(HostArch_CPP), alpha hppa)" ""
141 GhcUnregisterised=YES
142 else
143 GhcUnregisterised=NO
144 endif
145
146 # Build a compiler with a native code generator backend
147 # (as well as a C backend)
148 #
149 # Target platforms supported:
150 #   i386, powerpc
151 #   AIX is not supported 
152 ArchSupportsNCG=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc sparc)))
153 OsSupportsNCG=$(strip $(patsubst $(HostOS_CPP), YES, $(patsubst aix,,$(HostOS_CPP))))
154
155 # lazy test, because $(GhcUnregisterised) might be set in build.mk later.
156 GhcWithNativeCodeGen=$(strip\
157     $(if $(filter YESYESNO,\
158                   $(OsSupportsNCG)$(ArchSupportsNCG)$(GhcUnregisterised)),YES,NO))
159
160 HaveLibDL = @HaveLibDL@
161
162 # ArchSupportsSMP should be set iff there is support for that arch in
163 # includes/SMP.h
164 ArchSupportsSMP=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 sparc powerpc)))
165
166 # lazy test, because $(GhcUnregisterised) might be set in build.mk later.
167 GhcWithSMP=$(strip $(if $(filter YESNO, $(ArchSupportsSMP)$(GhcUnregisterised)),YES,NO))
168
169 # Whether to include GHCi in the compiler.  Depends on whether the RTS linker
170 # has support for this OS/ARCH combination.
171
172 OsSupportsGHCi=$(strip $(patsubst $(HostOS_CPP), YES, $(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd darwin)))
173 ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc sparc sparc64)))
174
175 ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES"
176 GhcWithInterpreter=YES
177 else 
178 GhcWithInterpreter=NO
179 endif
180
181 # GhcEnableTablesNextToCode tells us whether the target architecture
182 # supports placing info tables directly before the entry code
183 # (see TABLES_NEXT_TO_CODE in the RTS).  Whether we actually compile for
184 # TABLES_NEXT_TO_CODE depends on whether we're building unregisterised
185 # code or not, which may be decided by options to the compiler later.
186 ifneq "$(findstring $(TargetArch_CPP)X, ia64X powerpc64X)" ""
187 GhcEnableTablesNextToCode=NO
188 else
189 GhcEnableTablesNextToCode=YES
190 endif
191
192 # On Windows we normally want to make a relocatable bindist, to we
193 # ignore flags like libdir
194 ifeq "$(Windows)" "YES"
195 RelocatableBuild = YES
196 else
197 RelocatableBuild = NO
198 endif
199
200 # When building bindists we set this to yes so that the binaries are as
201 # portable as possible.
202 BeConservative = NO
203
204 #
205 # Building various ways?
206 # (right now, empty if not).
207 BuildingParallel=$(subst mp,YES,$(filter mp,$(WAYS)))
208 BuildingGranSim=$(subst mg,YES,$(filter mg,$(WAYS)))
209
210 # Interface file version (hi-boot files only)
211 #
212 # A GHC built with HscIfaceFileVersion=n will look for 
213 #       M.hi-boot-n, and only then for 
214 #       M.hi-boot.
215 # (It'll be happy with the latter if the former doesn't exist.)
216 #
217 #
218 # This variable is used ONLY for hi-boot files.  Its only purpose is
219 # to allow you to have a single directory with multiple .hi-boot files
220 # for the same module, each corresponding to a different version of
221 # GHC.
222 #
223 # HscIfaceFileVersion is propagated to hsc via
224 # compiler/main/Config.hs, which is automatically generated by
225 # compiler/Makefile.
226
227 HscIfaceFileVersion=6
228
229 #------------------------------------------------------------------------------
230 # Options for Libraries
231
232 # Which directory (in libraries/) contains the integer library?
233 INTEGER_LIBRARY=integer-gmp
234
235 # We build the libraries at least the "vanilla" way (way "v")
236 GhcLibWays = v
237
238 # In addition to the normal sequential way, the default is to also build
239 # profiled prelude libraries unless we are booting from .hc files
240 ifneq "$(BootingFromHc)" "YES"
241 GhcLibWays += p
242 endif
243
244 ifeq "$(BuildSharedLibs)" "YES"
245 GhcLibWays += dyn
246 endif
247
248 # In addition, the RTS is built in some further variations.  Ways that
249 # make sense here:
250
251 #   thr         : threaded
252 #   thr_p       : threaded profiled
253 #   debug       : debugging (compile with -g for the C compiler, and -DDEBUG)
254 #   debug_p     : debugging profiled
255 #   thr_debug   : debugging threaded
256 #   thr_debug_p : debugging threaded profiled
257 #   t           : ticky-ticky profiling
258 #   debug_t     : debugging ticky-ticky profiling
259 #   l           : event logging
260 #   thr_l       : threaded and event logging
261 #   thr_debug_l : threaded and debugging and event logging
262 #
263 GhcRTSWays=l
264
265 # Usually want the debug version
266 ifeq "$(BootingFromHc)" "NO"
267 GhcRTSWays += debug 
268 endif
269
270 ifeq "$(BuildSharedLibs)" "YES"
271 GhcRTSWays += dyn debug_dyn thr_dyn thr_debug_dyn
272 endif
273
274 # Want the threaded versions unless we're unregisterised
275 # Defer the check until later by using $(if..), because GhcUnregisterised might
276 # be set in build.mk, which hasn't been read yet.
277 GhcRTSWays += $(if $(findstring NO, $(GhcUnregisterised)),thr thr_debug thr_l,)
278 GhcRTSWays += $(if $(findstring p, $(GhcLibWays)),$(if $(findstring NO, $(GhcUnregisterised)),thr_p,),)
279
280 # We can only build GHCi threaded if we have a threaded RTS:
281 GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO)
282
283 # Option flags to pass to GHC when it's compiling modules in
284 # fptools/libraries.  Typically these are things like -O or
285 # -dcore-lint or -H32m.  The ones that are *essential* are wired into
286 # the build system.
287 #
288 #       -O(2) is pretty desirable, otherwise no inlining of prelude
289 #               things (incl "+") happens when compiling with this compiler
290 #
291 #       -XGenerics switches on generation of support code for 
292 #               derivable type classes.  This is now off by default,
293 #               but we switch it on for the libraries so that we generate
294 #               the code in case someone importing wants it
295
296 GhcLibHcOpts=-O2 -XGenerics
297
298 # Win32 only: Enable the RTS and libraries to be built as DLLs
299 DLLized=@EnableWin32DLLs@
300
301 # Strip local symbols from libraries?  This can make the libraries smaller,
302 # but makes debugging somewhat more difficult.  Doesn't work with all ld's.
303 #
304 StripLibraries=NO
305
306 # These are the URL patterns that Haddock uses to generate the "Source
307 # File" links on each page.
308 PackageSourceURL = http://darcs.haskell.org/packages/$(PACKAGE)/%{FILE}
309
310 # ----------------------------------------------------------------------------
311 # Object-file splitting
312 #
313 #       Set SplitObjs=YES or NO in your build.mk
314 #
315 #       Don't use -split-objs in in GhcLibHcOpts, because the build
316 #               system needs to do other special magic if you are
317 #               doing object-file splitting
318
319 ArchSupportsSplitObjs=$(strip $(if $(filter $(TargetArch_CPP),i386 x86_64 powerpc sparc),YES,NO))
320
321 # lazy test, so that $(GhcUnregisterised) can be set in build.mk
322 SupportsSplitObjs=$(strip $(if $(filter YES,$(ArchSupportsSplitObjs)),\
323                     $(if $(filter NO,$(BootingFromHc)),\
324                       $(if $(filter NO,$(GhcUnregisterised)),\
325                         YES,\
326                         NO),\
327                       NO),\
328                     NO))
329
330 # By default, enable SplitObjs for the libraries if this build supports it
331 SplitObjs=$(SupportsSplitObjs)
332
333 # Math library
334 LIBM=@LIBM@
335
336 # .NET interop support?
337 #
338 DotnetSupport=NO
339
340 # Build unix package?
341 #
342 GhcLibsWithUnix=@GhcLibsWithUnix@
343
344 # ----------------------------------------------------------------------------
345 # Options for GHC's RTS
346
347 # For an optimised RTS (you probably don't want to change these; we build
348 # a debugging RTS by default now.  Use -debug to get it).
349 GhcRtsHcOpts=-optc-O2
350 GhcRtsCcOpts=-fomit-frame-pointer
351
352 # Include the front panel code?  Needs GTK+.
353 GhcRtsWithFrontPanel = NO
354
355 # Include support for CPU performance counters via the PAPI library in the RTS?
356 # (PAPI: http://icl.cs.utk.edu/papi/)
357 GhcRtsWithPapi = NO
358 PapiLibDir=
359 PapiIncludeDir=
360
361 ################################################################################
362 #
363 #               nofib
364 #
365 #       nofib specific options
366 #
367 ################################################################################
368
369 WithNofibHc = $(GHC_INPLACE)
370
371 # NoFibSubDirs controls which set of tests should be run
372 # You can run one or more of
373 #       imaginary 
374 #       spectral
375 #       real
376 #       parallel
377 #       PRIVATE
378 #       PENDING
379 #       UNUSED
380 NoFibSubDirs = imaginary spectral real
381
382 # The different ways to build nofib. Default is just to mirror
383 # what is done for the ghc prelude libraries.
384 #
385 NoFibWays = $(GhcLibWays)
386
387 # Haskell compiler options for nofib
388 NoFibHcOpts = -O
389
390 # Number of times to run each program
391 NoFibRuns = 5
392
393 ################################################################################
394 #
395 #               Paths (see paths.mk)
396 #
397 ################################################################################
398
399 # Directory used by GHC (and possibly other tools) for storing
400 # temporary files.  If your TMPDIR isn't big enough, either override
401 # this in build.mk or set your environment variable "TMPDIR" to point
402 # to somewhere with more space.  (TMPDIR=. is a good choice).
403
404 # DEFAULT_TMPDIR isn't called TMPDIR because GNU make tends to
405 # override an environment variable with the value of the make variable
406 # of the same name (if it exists) when executing sub-processes, so
407 # setting the TMPDIR env var would have no effect in the build tree.
408
409 DEFAULT_TMPDIR          = /tmp
410 ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
411 DEFAULT_TMPDIR          = /C/TEMP
412 endif
413 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
414 DEFAULT_TMPDIR          = /C/TEMP
415 endif
416
417 BIN_DIST_TOPDIR_ABS=$(TOP)
418 BIN_DIST_DIR=$(BIN_DIST_TOPDIR_ABS)/$(BIN_DIST_NAME)
419
420 BIN_DIST_NAME=ghc-$(ProjectVersion)
421 BIN_DIST_TAR=$(TOP)/$(BIN_DIST_NAME)-$(TARGETPLATFORM).tar
422 BIN_DIST_TAR_BZ2=$(BIN_DIST_TAR).bz2
423 BIN_DIST_PREP_DIR=$(TOP)/bindist-prep
424 BIN_DIST_PREP=$(BIN_DIST_PREP_DIR)/$(BIN_DIST_NAME)
425 BIN_DIST_LIST=$(TOP)/bindist-list
426
427 # Definition of installation directories, we don't use half of these, but since
428 # the configure script has them on offer while passing through, we might as well
429 # set them. Note that we have to be careful, because the GNU coding standards
430 # have changed a bit over the course of time, and autoconf development reflects
431 # this.
432 #
433 # A little bit of history regarding autoconf and GNU coding standards, use this
434 # as a cheat-sheet for the stuff below:
435 #
436 # variable    | default < 2.60     | default >= 2.60
437 # ------------+--------------------+--------------------------------------
438 # exec_prefix | ${prefix}          | ${prefix}
439 # libdir      | ${exec_prefix}/lib | ${exec_prefix}/lib
440 # datarootdir | NONE!              | ${prefix}/share
441 # datadir     | ${prefix}/share    | ${datarootdir}
442 # infodir     | ${prefix}/info     | ${datarootdir}/info
443 # mandir      | ${prefix}/man      | ${datarootdir}/man
444 # docdir      | NONE!              | ${datarootdir}/doc/${PACKAGE_TARNAME}
445 # htmldir     | NONE!              | ${docdir}
446 # dvidir      | NONE!              | ${docdir}
447 # pdfdir      | NONE!              | ${docdir}
448 # psdir       | NONE!              | ${docdir}
449 #
450 # NOTE: The default e.g. ${docdir} above means that autoconf substitutes the
451 # string "${docdir}", not the value of docdir! This is crucial for the GNU
452 # coding standards.
453
454 # This gets used in the default docdir when autoconf >= 2.60 is used
455 PACKAGE_TARNAME := @PACKAGE_TARNAME@
456
457 prefix          := @prefix@
458
459 # New autoconf (>= 2.60?) make a configure with a --datarootdir=DIR flag.
460 # However, in order to support older autoconf's we don't use it.
461 # datarootdir is set lower down instead.
462 # But, as datadir is defined in terms of datarootdir, we also need to
463 # set it to the value (if any) that configure gives it here.
464 datarootdir     := @datarootdir@
465
466 exec_prefix     := @exec_prefix@
467 bindir          := @bindir@
468 datadir0        := @datadir@
469 libdir0         := @libdir@
470 includedir      := @includedir@
471 mandir          := @mandir@
472 dynlibdir       := @libdir@
473
474 ifeq "$(RelocatableBuild)" "YES"
475
476 # Hack: our directory layouts tend to be different on Windows, so
477 # hack around configure's bogus assumptions here.
478 datarootdir := $(prefix)
479 datadir     := $(prefix)/lib
480 libdir      := $(prefix)/lib
481
482 docdir    := $(prefix)/doc
483 htmldir   := $(docdir)
484 dvidir    := $(docdir)
485 pdfdir    := $(docdir)
486 psdir     := $(docdir)
487
488 else
489
490 # Unix: override libdir and datadir to put ghc-specific stuff in
491 # a subdirectory with the version number included.
492 #
493 # datadir is set to libdir here as GHC needs package.conf and unlit
494 # to be in the same place (and things like ghc-pkg need to agree on
495 # where package.conf is, so we just set it globally).
496 #
497 datarootdir := $(datadir0)
498 libdir      := $(libdir0)/ghc-$(ProjectVersion)
499 datadir     := $(libdir)
500
501 # New autoconf (>= 2.60?) make a configure with --docdir=DIR etc flags.
502 # However, in order to support older autoconf's we don't use them.
503
504 #docdir    := @docdir@
505 #htmldir   := @htmldir@
506 #dvidir    := @dvidir@
507 #pdfdir    := @pdfdir@
508 #psdir     := @psdir@
509
510 docdir    := $(datarootdir)/doc/ghc
511 htmldir   := $(docdir)
512 dvidir    := $(docdir)
513 pdfdir    := $(docdir)
514 psdir     := $(docdir)
515
516 endif # Windows
517
518 headerdir := $(libdir)/include
519
520 # Default place for putting interface files is $(libdir)
521 # (overriden for packages in package.mk)
522 ifacedir                = $(libdir)
523
524 # NOTE: by intention, libexecdir and libdir point to 
525 # the same place.
526 #  => Only way to override this is to set libexecdir= on the command line.
527 #     (NOTE: configure script setting is ignored).
528 libexecdir              = $(libdir)
529
530 #-----------------------------------------------------------------------------
531 # install configuration
532
533 #
534 # Set this to have files installed with a specific owner
535 #
536 INSTALL_OWNER =
537
538
539 # Set this to have files installed with a specific group
540 #
541 INSTALL_GROUP =
542
543 #
544 # Invocations of `install' for the four different classes
545 # of targets:
546 #
547 INSTALL_PROGRAM = $(INSTALL) -m 755
548 INSTALL_SCRIPT  = $(INSTALL) -m 755
549 INSTALL_SHLIB   = $(INSTALL) -m 755
550 INSTALL_DATA    = $(INSTALL) -m 644
551 INSTALL_HEADER  = $(INSTALL) -m 644
552 INSTALL_MAN     = $(INSTALL) -m 644
553 INSTALL_DIR     = $(MKDIRHIER)
554
555 #
556 # runhaskell and hsc2hs are special, in that other compilers besides
557 # GHC might provide them.  Systems with a package manager often come
558 # with tools to manage this kind of clash, e.g. RPM's
559 # update-alternatives.  When building a distribution for such a system,
560 # we recommend setting both of the following to 'YES'.
561 #
562 # NO_INSTALL_RUNHASKELL = YES
563 # NO_INSTALL_HSC2HS     = YES
564 #
565 # NB. we use negative tests here because for binary-distributions we cannot
566 # test build-time variables at install-time, so they must default to on.
567
568 # -----------------------------------------------------------------------------
569 # Utilities programs: flags 
570
571 # If you want to give any standard flags to pretty much any utility
572 # (see utils.mk for a complete list), by adding a line here
573 #
574 #       SRC_P_OPTS += ...
575 #
576 # where P is the utility. For example, to add -O to all Haskell
577 # compilations, 
578 #
579 #       SRC_HC_OPTS += -O
580
581 SRC_HC_OPTS += -H32m -O
582
583 # These flags make flex 8-bit
584 SRC_FLEX_OPTS   += -8
585
586 # Default fptools options for dllwrap.
587 SRC_BLD_DLL_OPTS += --target=i386-mingw32
588
589 # Flags for CPP when running GreenCard on .pgc files
590 GC_CPP_OPTS += -P -E -x c -traditional -D__GLASGOW_HASKELL__
591
592
593 ################################################################################
594 #
595 #       Layout of the source tree
596 #
597 ################################################################################
598
599 # Here we provide defines for the various directories in the source tree,
600 # so we can move things around more easily.  A define $(GHC_FOO_DIR)
601 # indicates a directory relative to the top of the source tree.
602
603 GHC_UTILS_DIR           = utils
604 GHC_INCLUDE_DIR         = includes
605 GHC_COMPILER_DIR        = compiler
606 GHC_PROG_DIR            = ghc
607 GHC_RTS_DIR             = rts
608 GHC_DRIVER_DIR          = driver
609 GHC_COMPAT_DIR          = compat
610
611 GHC_MKDEPENDC_DIR       = $(GHC_UTILS_DIR)/mkdependC
612 GHC_LTX_DIR             = $(GHC_UTILS_DIR)/ltx
613 GHC_RUNTEST_DIR         = $(GHC_UTILS_DIR)/runstdtest
614 GHC_LNDIR_DIR           = $(GHC_UTILS_DIR)/lndir
615 GHC_MKDIRHIER_DIR       = $(GHC_UTILS_DIR)/mkdirhier
616 GHC_DOCBOOK_DIR         = $(GHC_UTILS_DIR)/docbook
617 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
618 GHC_HP2PS_DIR           = $(GHC_UTILS_DIR)/hp2ps
619 GHC_HSTAGS_DIR          = $(GHC_UTILS_DIR)/hasktags
620 GHC_GHCTAGS_DIR         = $(GHC_UTILS_DIR)/ghctags
621 GHC_HSC2HS_DIR          = $(GHC_UTILS_DIR)/hsc2hs
622 GHC_TOUCHY_DIR          = $(GHC_UTILS_DIR)/touchy
623 GHC_PKG_DIR             = $(GHC_UTILS_DIR)/ghc-pkg
624 GHC_GENPRIMOP_DIR       = $(GHC_UTILS_DIR)/genprimopcode
625 GHC_GENAPPLY_DIR        = $(GHC_UTILS_DIR)/genapply
626 GHC_CABAL_DIR           = $(GHC_UTILS_DIR)/ghc-cabal
627 GHC_MANGLER_DIR         = $(GHC_DRIVER_DIR)/mangler
628 GHC_SPLIT_DIR           = $(GHC_DRIVER_DIR)/split
629 GHC_SYSMAN_DIR          = $(GHC_RTS_DIR)/parallel
630
631 # -----------------------------------------------------------------------------
632 # Names of programs in the GHC tree
633 #
634 #      xxx_PGM          the name of an executable, without the path
635 #      xxx              the executable relative to the current dir
636
637 GHC_UNLIT_PGM           = unlit$(exeext)
638 GHC_HP2PS_PGM           = hp2ps$(exeext)
639 GHC_HSTAGS_PGM          = hasktags$(exeext)
640 GHC_GHCTAGS_PGM         = ghctags$(exeext)
641 GHC_HSC2HS_PGM          = hsc2hs$(exeext)
642 GHC_TOUCHY_PGM          = touchy$(exeext)
643 GHC_MANGLER_PGM         = ghc-asm
644 GHC_SPLIT_PGM           = ghc-split
645 GHC_SYSMAN_PGM          = SysMan
646 GHC_GENPRIMOP_PGM       = genprimopcode$(exeext)
647 GHC_GENAPPLY_PGM        = genapply$(exeext)
648 GHC_CABAL_PGM           = ghc-cabal$(exeext)
649 GHC_PKG_PGM             = ghc-pkg$(exeext)
650 GHC_MKDEPENDC_PGM       = mkdependC
651 GHC_LTX_PGM             = ltx$(exeext)
652 GHC_MKDIRHIER_PGM       = mkdirhier
653 GHC_LNDIR_PGM           = lndir
654 GHC_RUNTEST_PGM         = runstdtest
655 GHC_DUMMY_GHC_PGM       = dummy-ghc$(exeext)
656
657 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
658 GHC_CP                  = "xcopy /y"
659 GHC_PERL                = perl
660 else
661 GHC_CP                  = $(CP)
662 GHC_PERL                = $(PERL)
663 endif
664
665 HP2PS                   = $(GHC_HP2PS_DIR)/$(GHC_HP2PS_PGM)
666 HSTAGS                  = $(GHC_HSTAGS_DIR)/$(GHC_HSTAGS_PGM)
667 MANGLER                 = $(INPLACE_LIB)/$(GHC_MANGLER_PGM)
668 SPLIT                   = $(INPLACE_LIB)/$(GHC_SPLIT_PGM)
669 SYSMAN                  = $(GHC_SYSMAN_DIR)/$(GHC_SYSMAN_PGM)
670 LTX                     = $(GHC_LTX_DIR)/$(GHC_LTX_PGM)
671 LNDIR                   = $(GHC_LNDIR_DIR)/$(GHC_LNDIR_PGM)
672 RUNTEST                 = $(GHC_RUNTEST_DIR)/$(GHC_RUNTEST_PGM)
673
674 INPLACE                 = inplace
675 INPLACE_BIN             = $(INPLACE)/bin
676 INPLACE_LIB             = $(INPLACE)/lib
677 INPLACE_MINGW           = $(INPLACE)/mingw
678
679 UNLIT                   = $(INPLACE_LIB)/$(GHC_UNLIT_PGM)
680 TOUCHY                  = $(INPLACE_LIB)/$(GHC_TOUCHY_PGM)
681 MKDIRHIER               = $(INPLACE_BIN)/$(GHC_MKDIRHIER_PGM)
682 MKDEPENDC               = $(INPLACE_BIN)/$(GHC_MKDEPENDC_PGM)
683 GHC_CABAL_INPLACE       = $(INPLACE_BIN)/$(GHC_CABAL_PGM)
684 GENAPPLY_INPLACE        = $(INPLACE_BIN)/$(GHC_GENAPPLY_PGM)
685 GHC_PKG_INPLACE         = $(INPLACE_BIN)/$(GHC_PKG_PGM)
686 GHCTAGS_INPLACE         = $(INPLACE_BIN)/$(GHC_GHCTAGS_PGM)
687 HSC2HS_INPLACE          = $(INPLACE_BIN)/$(GHC_HSC2HS_PGM)
688 GENPRIMOP_INPLACE       = $(INPLACE_BIN)/$(GHC_GENPRIMOP_PGM)
689 DUMMY_GHC_INPLACE       = $(INPLACE_BIN)/$(GHC_DUMMY_GHC_PGM)
690
691 GENERATED_FILE  = chmod a-w
692 EXECUTABLE_FILE = chmod +x
693
694 #-----------------------------------------------------------------------------
695 # Haskell compilers and mkdependHS
696
697 # $(GHC), $(HBC) and $(NHC) point to installed versions of the relevant
698 # compilers, if available.
699 #
700 # $(HC) is a generic Haskell 98 compiler, set to $(GHC) by default.
701 # $(MKDEPENDHS) is the Haskell dependency generator (ghc -M).
702 #
703 # NOTE: Don't override $(GHC) in build.mk, use configure --with-ghc instead
704 # (because the version numbers have to be calculated).
705
706 GHC := @WithGhc@
707 # If we have a make dependency on c:/ghc/ghc, and the file is actually
708 # called c:/ghc/ghc.exe, then make will think that ghc doesn't exist
709 # and that it doesn't know how to create it.
710 ifneq "$(wildcard $(GHC).exe)" ""
711 GHC := $(GHC).exe
712 endif
713
714 GhcDir          = $(dir $(GHC))
715
716 # Set to YES if $(GHC) has the editline package installed
717 GhcHasEditline  = @GhcHasEditline@
718
719 HBC             = @HBC@
720 NHC             = @NHC@
721
722 # Sometimes we want to invoke ghc from the build tree in different
723 # places (eg. it's handy to have a nofib & a ghc build in the same
724 # tree).  We can refer to "this ghc" as $(GHC_INPLACE):
725
726 GHC_INPLACE = $(GHC_STAGE1)
727
728 GHC_STAGE0_ABS = $(GHC)
729 GHC_STAGE1_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage1$(exeext)
730 GHC_STAGE2_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage2$(exeext)
731 GHC_STAGE3_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage3$(exeext)
732
733 GHC_STAGE0  = $(GHC)
734 GHC_STAGE1  = $(INPLACE_BIN)/ghc-stage1$(exeext)
735 GHC_STAGE2  = $(INPLACE_BIN)/ghc-stage2$(exeext)
736 GHC_STAGE3  = $(INPLACE_BIN)/ghc-stage3$(exeext)
737
738 # Install stage 2 by default, can be changed to 3
739 INSTALL_GHC_STAGE=2
740
741 BOOTSTRAPPING_CONF = libraries/bootstrapping.conf
742
743 INPLACE_PACKAGE_CONF = $(INPLACE_LIB)/package.conf
744
745 GhcVersion      = @GhcVersion@
746 GhcPatchLevel   = @GhcPatchLevel@
747 GhcMajVersion   = @GhcMajVersion@
748 GhcMinVersion   = @GhcMinVersion@
749
750 ghc_ge_607 = @ghc_ge_607@
751 ghc_ge_609 = @ghc_ge_609@
752
753 # Canonicalised ghc version number, used for easy (integer) version
754 # comparisons.  We must expand $(GhcMinVersion) to two digits by
755 # adding a leading zero if necessary:
756 ifneq "$(findstring $(GhcMinVersion), 0 1 2 3 4 5 6 7 8 9)" ""
757 GhcCanonVersion = $(GhcMajVersion)0$(GhcMinVersion)
758 else
759 GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion)
760 endif
761
762 #-----------------------------------------------------------------------------
763 # C compiler
764 #
765 # NB. Don't override $(WhatGccIsCalled) using build.mk,  re-configure using
766 # the flag --with-gcc=<blah> instead.  The reason is that the configure script
767 # needs to know which gcc you're using in order to perform its tests.
768
769 HaveGcc         = @HaveGcc@
770 UseGcc          = YES
771 WhatGccIsCalled = @WhatGccIsCalled@
772 GccVersion      = @GccVersion@
773 ifeq "$(strip $(HaveGcc))" "YES"
774 ifneq "$(strip $(UseGcc))"  "YES"
775   CC    = cc
776 else
777   CC    = $(WhatGccIsCalled)
778 endif
779 endif
780
781 # default C compiler flags
782 SRC_CC_OPTS = @SRC_CC_OPTS@
783
784 ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux"
785 SRC_CC_OPTS += -G0
786 endif
787
788 SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS)))
789 SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d))
790
791 #-----------------------------------------------------------------------------
792 # GMP Library (version 2.0.x or above)
793 #
794 HaveLibGmp      = @HaveLibGmp@
795 LibGmp          = @LibGmp@
796
797 GMP_INCLUDE_DIRS=@GMP_INCLUDE_DIRS@
798 GMP_LIB_DIRS=@GMP_LIB_DIRS@
799
800 #-----------------------------------------------------------------------------
801 # GMP framework (Mac OS X)
802 #
803 HaveFrameworkGMP = @HaveFrameworkGMP@
804
805 #-----------------------------------------------------------------------------
806 # Mingwex Library
807 #
808 HaveLibMingwEx  = @HaveLibMingwEx@
809
810 #-----------------------------------------------------------------------------
811 # Flex (currently unused, could be moved to glafp-utils)
812
813 # FLEX                  = @LEX@
814 # Don't bother with -lfl, we define our own yywrap()s anyway.
815 # FLEX_LIB              = 
816 #WAS:FLEX_LIB           = @LEXLIB@
817
818 #-----------------------------------------------------------------------------
819 # Other standard (ha!) Unix utilities
820
821 AR                      = @ArCmd@
822 ArSupportsInput         = @ArSupportsInput@
823 # Yuckage: for ghc/utils/parallel -- todo: nuke this dependency!!
824 BASH                    = /usr/local/bin/bash
825
826 CONTEXT_DIFF            = @ContextDiffCmd@
827 CP                      = cp
828 CPP                     = @CPP@ @CPPFLAGS@
829 CTAGS                   = $(ETAGS)
830 #
831 # RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to
832 # behave plausibly on Haskell sources.
833 #
834 RAWCPP_FLAGS            = -undef -traditional
835 FIND                    = @FindCmd@
836 SORT                    = @SortCmd@
837 INSTALL                 = @INSTALL@
838 #
839 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
840 # install-sh script (if chosen). This not terribly useful to us, so we convert
841 # it into an abs. path.
842
843 INSTALL                 := $(subst .././install-sh,$(TOP)/install-sh,$(INSTALL))
844 LATEX                   = latex
845 HEVEA                   = hevea
846 HACHA                   = hacha
847 LN_S                    = @LN_S@
848 MANMACROS               = -man
849 MSMACROS                = -ms
850 MV                      = mv
851 NROFF                   = nroff
852 PERL                    = @PerlCmd@
853 PYTHON                  = @PythonCmd@
854 PIC                     = pic
855 PREPROCESSCMD           = $(CC) -E
856 RANLIB                  = @RANLIB@
857 RM                      = rm -f
858 SED                     = @SedCmd@
859 SHELL                   = /bin/sh
860
861 LD                      = @LdCmd@
862
863 # Some ld's support the -x flag and some don't, so the configure
864 # script detects which we have and sets LdXFlag to "-x" or ""
865 # respectively.
866 LD_X                    = @LdXFlag@
867
868 # GNU ld supports input via a linker script, which is useful to avoid
869 # overflowing command-line length limits.
870 LdIsGNULd               = @LdIsGNULd@
871
872 #
873 # In emergency situations, REAL_SHELL is used to perform shell commands
874 # from within the ghc driver script, by scribbling the command line to
875 # a temp file and then having $(REAL_SHELL) execute it. 
876 #
877 # The reason for having to do this is that overly long command lines
878 # cause unnecessary trouble with some shells (e.g., /bin/sh on Solaris
879 # 2.5.1), which is why this backdoor is provided. The situation of overly
880 # long command lines is either encountered while doing `make boot' in compiler/, 
881 # or when linking the compiler binary (`hsc'). 
882 #
883 # We do not use SHELL to execute long commands, as `make' will more than likely
884 # override whatever setting you have in your environment while executing. 
885
886 # By default, REAL_SHELL is set equal to SHELL, which is not really a smart move
887 # as it is SHELL that will show up the bogosity in the first place, but setting
888 # it to anything else isn't really portable.
889 #
890 #  ====> If long command lines cause you trouble, invoke `ghc' (via `make' or otherwise)
891 # with REAL_SHELL set to something else than /bin/sh, for instance, your favourite
892 # command shell.
893 #
894 REAL_SHELL=$(SHELL)
895 SIZE                    = size
896 STRIP                   = strip
897 PATCH                   = @PatchCmd@
898 TAR                     = @TarCmd@
899 ZIP                     = zip
900
901 HSCOLOUR = @HSCOLOUR@
902
903 #
904 # This is special to literate/, ToDo: add literate-specific
905 # configure setup to literate/.
906 #
907 TBL                     = tbl
908 TEX                     = tex
909 TGRIND                  = tgrind
910 TGRIND_HELPER           = /usr/local/lib/tgrind/tfontedpr # XXX
911 TIB                     = tib
912
913 TIME                    = @TimeCmd@
914 TROFF                   = troff
915 UNAME                   = uname
916
917 # GTK+
918 GTK_CONFIG = @GTK_CONFIG@
919
920 # Set this if you want to use Inno Setup to build a Windows installer
921 # when you make a bindist
922 ISCC                    =
923
924 #-----------------------------------------------------------------------------
925 # DocBook XML stuff
926
927 XSLTPROC                = @XsltprocCmd@
928 XMLLINT                 = @XmllintCmd@
929 FOP                     = @FopCmd@
930 XMLTEX                  = @XmltexCmd@
931 PDFXMLTEX               = @PdfxmltexCmd@
932 DVIPS                   = @DvipsCmd@
933
934 DIR_DOCBOOK_XSL         = @DIR_DOCBOOK_XSL@
935
936 XSLTPROC_LABEL_OPTS     = --stringparam toc.section.depth 3 \
937                           --stringparam section.autolabel 1 \
938                           --stringparam section.label.includes.component.label 1
939
940 #-----------------------------------------------------------------------------
941 #               FPtools support software
942
943 BLD_DLL                 = dllwrap
944
945 #
946 # ghc-pkg
947 #
948 GHC_PKG                 = @GhcPkgCmd@
949
950 #
951 # GreenCard
952 #
953 GREENCARD               = @GreenCardCmd@
954 GREENCARD_VERSION       = @GreenCardVersion@            
955
956 #
957 # Happy
958 #
959 HAPPY                   = @HappyCmd@
960 HAPPY_VERSION           = @HappyVersion@                
961 #
962 # Options to pass to Happy when we're going to compile the output with GHC
963 #
964 SRC_HAPPY_OPTS          = -agc --strict
965
966 # Temp. to work around performance problems in the HEAD around 8/12/2003,
967 # A Happy compiled with this compiler needs more stack.
968 SRC_HAPPY_OPTS          += +RTS -K2m -RTS
969
970 #
971 # Alex
972 #
973 ALEX                    = @AlexCmd@
974 ALEX_VERSION            = @AlexVersion@         
975 #
976 # Options to pass to Happy when we're going to compile the output with GHC
977 #
978 SRC_ALEX_OPTS           = -g
979
980 # Should we build haddock docs?
981 HADDOCK_DOCS = YES
982 # And HsColour the sources?
983 ifeq "$(HSCOLOUR)" ""
984 HSCOLOUR_SRCS = NO
985 else
986 HSCOLOUR_SRCS = YES
987 endif
988
989 #
990 # Options for compiling in different `ways'. 
991
992 # To configure up your own way, have a look at some of the standard ways
993 # such as profiling, and create your own set of WAY_*_OPTS defs below.
994 # After having done that, add your way string to WAYS, and after having
995 # run the configure script, the different projects will add the new way
996 # to the list of ways they support.
997 #
998
999 #
1000 # Definitions of the different ways:
1001 #   
1002 #   * their name:
1003 #          - tag, e.g., p
1004 #          - description, e.g., profiling
1005 #   * what they mean to the driver:
1006 #          - WAY_p_HC_OPTS gives the list of command-line options
1007 #            to the driver.
1008 #
1009
1010 #
1011 # The ways currently defined.
1012 #
1013 ALL_WAYS=v p t l s mp mg debug dyn thr thr_l debug_dyn thr_dyn thr_debug_dyn thr_p thr_debug thr_debug_l
1014 USER_WAYS=a b c d e f g h j k l m n o A B
1015
1016 #
1017 # The following ways currently have treated specially, p t mg,
1018 # as the driver script treats these guys specially and needs to carefully be told
1019 # about the options for these. Hence, we hide the required command line options
1020 # for these in the driver, as this is the only place they are needed.
1021
1022 # If you want to add to these default options, fill in the variables below:
1023
1024 # Way 'v':
1025 WAY_v_NAME=vanilla
1026 WAY_v_HC_OPTS= 
1027
1028 # Way 'p':
1029 WAY_p_NAME=profiling
1030 WAY_p_HC_OPTS= -prof
1031
1032 # Way 't':
1033 WAY_t_NAME=ticky-ticky profiling
1034 WAY_t_HC_OPTS= -ticky
1035
1036 # Way 'l':
1037 WAY_l_NAME=event logging
1038 WAY_l_HC_OPTS= -eventlog
1039
1040 # Way `mp': 
1041 WAY_mp_NAME=parallel
1042 WAY_mp_HC_OPTS=-parallel
1043
1044 # Way `mg': 
1045 WAY_mg_NAME=GranSim
1046 WAY_mg_HC_OPTS=-gransim
1047
1048 #
1049 # These ways apply to the RTS only:
1050 #
1051
1052 # Way 'thr':
1053 WAY_thr_NAME=threaded
1054 WAY_thr_HC_OPTS=-optc-DTHREADED_RTS
1055
1056 # Way 'thr_p':
1057 WAY_thr_p_NAME=threaded profiled
1058 WAY_thr_p_HC_OPTS=-optc-DTHREADED_RTS -prof
1059
1060 # Way 'thr_l':
1061 WAY_thr_l_NAME=threaded event logging
1062 WAY_thr_l_HC_OPTS=-optc-DTHREADED_RTS -eventlog
1063
1064 # Way 'debug':
1065 WAY_debug_NAME=debug
1066 WAY_debug_HC_OPTS=-optc-DDEBUG
1067
1068 # Way 'debug_p':
1069 WAY_debug_p_NAME=debug profiled
1070 WAY_debug_p_HC_OPTS=-optc-DDEBUG -prof
1071
1072 # Way 'debug_t':
1073 WAY_debug_t_NAME=debug ticky-ticky profiling
1074 WAY_debug_t_HC_OPTS= -ticky -optc-DDEBUG
1075
1076 # Way 'thr_debug':
1077 WAY_thr_debug_NAME=threaded
1078 WAY_thr_debug_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG
1079
1080 # Way 'thr_debug_p':
1081 WAY_thr_debug_p_NAME=threaded debug profiling
1082 WAY_thr_debug_p_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG -prof
1083
1084 # Way 'thr_debug_l':
1085 WAY_thr_debug_l_NAME=threaded debug event logging
1086 WAY_thr_debug_l_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG -eventlog
1087
1088 # Way 'dyn': build dynamic shared libraries
1089 WAY_dyn_NAME=dyn
1090 WAY_dyn_HC_OPTS=-fPIC -dynamic
1091 WAY_dyn_LIB_TARGET=libHSrts-gcc661.so
1092
1093 # Way 'thr_dyn':
1094 WAY_thr_dyn_NAME=thr_dyn
1095 WAY_thr_dyn_HC_OPTS=-fPIC -dynamic -optc-DTHREADED_RTS
1096
1097 # Way 'thr_debug_dyn':
1098 WAY_thr_debug_dyn_NAME=thr_dyn
1099 WAY_thr_debug_dyn_HC_OPTS=-fPIC -dynamic -optc-DTHREADED_RTS -optc-DDEBUG
1100
1101 # Way 'debug_dyn':
1102 WAY_debug_dyn_NAME=thr_dyn
1103 WAY_debug_dyn_HC_OPTS=-fPIC -dynamic -optc-DDEBUG
1104
1105 #
1106 # Add user-way configurations here:
1107 #
1108 WAY_A_NAME=
1109 WAY_A_HC_OPTS=
1110
1111 WAY_B_NAME=
1112 WAY_B_HC_OPTS=
1113
1114 WAY_a_NAME=
1115 WAY_a_HC_OPTS=
1116
1117 WAY_b_NAME=
1118 WAY_b_HC_OPTS=
1119
1120 WAY_c_NAME=
1121 WAY_c_HC_OPTS=
1122
1123 WAY_d_NAME=
1124 WAY_d_HC_OPTS=
1125
1126 WAY_e_NAME=
1127 WAY_e_HC_OPTS=
1128
1129 WAY_f_NAME=
1130 WAY_f_HC_OPTS=
1131
1132 WAY_g_NAME=
1133 WAY_g_HC_OPTS=
1134
1135 WAY_h_NAME=
1136 WAY_h_HC_OPTS=
1137
1138 WAY_j_NAME=
1139 WAY_j_HC_OPTS=
1140
1141 WAY_k_NAME=
1142 WAY_k_HC_OPTS=
1143
1144 WAY_l_NAME=
1145 WAY_l_HC_OPTS=
1146
1147 WAY_m_NAME=
1148 WAY_m_HC_OPTS=
1149
1150 WAY_n_NAME=
1151 WAY_n_HC_OPTS=
1152
1153 WAY_o_NAME=
1154 WAY_o_HC_OPTS=
1155
1156 ################################################################################
1157 #
1158 #               31-bit-Int Core files
1159 #
1160 ################################################################################
1161
1162
1163 # It is possible to configure the compiler and prelude to support 31-bit
1164 # integers, suitable for a back-end and RTS using a tag bit on a 32-bit
1165 # architecture.  Currently the only useful output from this option is external Core
1166 # files.  The following additions to your build.mk will produce the
1167 # 31-bit core output.  Note that this is *not* just a library "way"; the
1168 # compiler must be built a special way too.
1169
1170 # GhcCppOpts +=-DWORD_SIZE_IN_BITS=31
1171 # GhcLibHcOpts +=-fext-core -fno-code -DWORD_SIZE_IN_BITS=31
1172 # GhcLibCppOpts += -DWORD_SIZE_IN_BITS=31
1173 # SplitObjs=NO
1174
1175 ################################################################################
1176 #
1177 #    Library configure arguments
1178 #
1179 ################################################################################
1180
1181 CONFIGURE_ARGS = @CONFIGURE_ARGS@
1182
1183 ################################################################################
1184 #
1185 #    Bindist testing directory
1186 #
1187 ################################################################################
1188
1189 ifeq "$(Windows)" "YES"
1190 BIN_DIST_INST_SUBDIR = "install dir"
1191 else
1192 # I very much doubt that paths with spaces will work on Unix
1193 BIN_DIST_INST_SUBDIR = installed
1194 endif
1195
1196 BIN_DIST_INST_DIR = $(TOP)/bindisttest/$(BIN_DIST_INST_SUBDIR)
1197