move runstdtest into nofib
[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_LNDIR_DIR           = $(GHC_UTILS_DIR)/lndir
614 GHC_MKDIRHIER_DIR       = $(GHC_UTILS_DIR)/mkdirhier
615 GHC_DOCBOOK_DIR         = $(GHC_UTILS_DIR)/docbook
616 GHC_UNLIT_DIR           = $(GHC_UTILS_DIR)/unlit
617 GHC_HP2PS_DIR           = $(GHC_UTILS_DIR)/hp2ps
618 GHC_HSTAGS_DIR          = $(GHC_UTILS_DIR)/hasktags
619 GHC_GHCTAGS_DIR         = $(GHC_UTILS_DIR)/ghctags
620 GHC_HSC2HS_DIR          = $(GHC_UTILS_DIR)/hsc2hs
621 GHC_TOUCHY_DIR          = $(GHC_UTILS_DIR)/touchy
622 GHC_PKG_DIR             = $(GHC_UTILS_DIR)/ghc-pkg
623 GHC_GENPRIMOP_DIR       = $(GHC_UTILS_DIR)/genprimopcode
624 GHC_GENAPPLY_DIR        = $(GHC_UTILS_DIR)/genapply
625 GHC_CABAL_DIR           = $(GHC_UTILS_DIR)/ghc-cabal
626 GHC_MANGLER_DIR         = $(GHC_DRIVER_DIR)/mangler
627 GHC_SPLIT_DIR           = $(GHC_DRIVER_DIR)/split
628 GHC_SYSMAN_DIR          = $(GHC_RTS_DIR)/parallel
629
630 # -----------------------------------------------------------------------------
631 # Names of programs in the GHC tree
632 #
633 #      xxx_PGM          the name of an executable, without the path
634 #      xxx              the executable relative to the current dir
635
636 GHC_UNLIT_PGM           = unlit$(exeext)
637 GHC_HP2PS_PGM           = hp2ps$(exeext)
638 GHC_HSTAGS_PGM          = hasktags$(exeext)
639 GHC_GHCTAGS_PGM         = ghctags$(exeext)
640 GHC_HSC2HS_PGM          = hsc2hs$(exeext)
641 GHC_TOUCHY_PGM          = touchy$(exeext)
642 GHC_MANGLER_PGM         = ghc-asm
643 GHC_SPLIT_PGM           = ghc-split
644 GHC_SYSMAN_PGM          = SysMan
645 GHC_GENPRIMOP_PGM       = genprimopcode$(exeext)
646 GHC_GENAPPLY_PGM        = genapply$(exeext)
647 GHC_CABAL_PGM           = ghc-cabal$(exeext)
648 GHC_PKG_PGM             = ghc-pkg$(exeext)
649 GHC_MKDEPENDC_PGM       = mkdependC
650 GHC_LTX_PGM             = ltx$(exeext)
651 GHC_MKDIRHIER_PGM       = mkdirhier
652 GHC_LNDIR_PGM           = lndir
653 GHC_DUMMY_GHC_PGM       = dummy-ghc$(exeext)
654
655 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
656 GHC_CP                  = "xcopy /y"
657 GHC_PERL                = perl
658 else
659 GHC_CP                  = $(CP)
660 GHC_PERL                = $(PERL)
661 endif
662
663 HP2PS                   = $(GHC_HP2PS_DIR)/$(GHC_HP2PS_PGM)
664 HSTAGS                  = $(GHC_HSTAGS_DIR)/$(GHC_HSTAGS_PGM)
665 MANGLER                 = $(INPLACE_LIB)/$(GHC_MANGLER_PGM)
666 SPLIT                   = $(INPLACE_LIB)/$(GHC_SPLIT_PGM)
667 SYSMAN                  = $(GHC_SYSMAN_DIR)/$(GHC_SYSMAN_PGM)
668 LTX                     = $(GHC_LTX_DIR)/$(GHC_LTX_PGM)
669 LNDIR                   = $(GHC_LNDIR_DIR)/$(GHC_LNDIR_PGM)
670
671 INPLACE                 = inplace
672 INPLACE_BIN             = $(INPLACE)/bin
673 INPLACE_LIB             = $(INPLACE)/lib
674 INPLACE_MINGW           = $(INPLACE)/mingw
675
676 UNLIT                   = $(INPLACE_LIB)/$(GHC_UNLIT_PGM)
677 TOUCHY                  = $(INPLACE_LIB)/$(GHC_TOUCHY_PGM)
678 MKDIRHIER               = $(INPLACE_BIN)/$(GHC_MKDIRHIER_PGM)
679 MKDEPENDC               = $(INPLACE_BIN)/$(GHC_MKDEPENDC_PGM)
680 GHC_CABAL_INPLACE       = $(INPLACE_BIN)/$(GHC_CABAL_PGM)
681 GENAPPLY_INPLACE        = $(INPLACE_BIN)/$(GHC_GENAPPLY_PGM)
682 GHC_PKG_INPLACE         = $(INPLACE_BIN)/$(GHC_PKG_PGM)
683 GHCTAGS_INPLACE         = $(INPLACE_BIN)/$(GHC_GHCTAGS_PGM)
684 HSC2HS_INPLACE          = $(INPLACE_BIN)/$(GHC_HSC2HS_PGM)
685 GENPRIMOP_INPLACE       = $(INPLACE_BIN)/$(GHC_GENPRIMOP_PGM)
686 DUMMY_GHC_INPLACE       = $(INPLACE_BIN)/$(GHC_DUMMY_GHC_PGM)
687
688 GENERATED_FILE  = chmod a-w
689 EXECUTABLE_FILE = chmod +x
690
691 #-----------------------------------------------------------------------------
692 # Haskell compilers and mkdependHS
693
694 # $(GHC), $(HBC) and $(NHC) point to installed versions of the relevant
695 # compilers, if available.
696 #
697 # $(HC) is a generic Haskell 98 compiler, set to $(GHC) by default.
698 # $(MKDEPENDHS) is the Haskell dependency generator (ghc -M).
699 #
700 # NOTE: Don't override $(GHC) in build.mk, use configure --with-ghc instead
701 # (because the version numbers have to be calculated).
702
703 GHC := @WithGhc@
704 # If we have a make dependency on c:/ghc/ghc, and the file is actually
705 # called c:/ghc/ghc.exe, then make will think that ghc doesn't exist
706 # and that it doesn't know how to create it.
707 ifneq "$(wildcard $(GHC).exe)" ""
708 GHC := $(GHC).exe
709 endif
710
711 GhcDir          = $(dir $(GHC))
712
713 # Set to YES if $(GHC) has the editline package installed
714 GhcHasEditline  = @GhcHasEditline@
715
716 HBC             = @HBC@
717 NHC             = @NHC@
718
719 # Sometimes we want to invoke ghc from the build tree in different
720 # places (eg. it's handy to have a nofib & a ghc build in the same
721 # tree).  We can refer to "this ghc" as $(GHC_INPLACE):
722
723 GHC_INPLACE = $(GHC_STAGE1)
724
725 GHC_STAGE0_ABS = $(GHC)
726 GHC_STAGE1_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage1$(exeext)
727 GHC_STAGE2_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage2$(exeext)
728 GHC_STAGE3_ABS = $(TOP)/$(INPLACE_BIN)/ghc-stage3$(exeext)
729
730 GHC_STAGE0  = $(GHC)
731 GHC_STAGE1  = $(INPLACE_BIN)/ghc-stage1$(exeext)
732 GHC_STAGE2  = $(INPLACE_BIN)/ghc-stage2$(exeext)
733 GHC_STAGE3  = $(INPLACE_BIN)/ghc-stage3$(exeext)
734
735 # Install stage 2 by default, can be changed to 3
736 INSTALL_GHC_STAGE=2
737
738 BOOTSTRAPPING_CONF = libraries/bootstrapping.conf
739
740 INPLACE_PACKAGE_CONF = $(INPLACE_LIB)/package.conf
741
742 GhcVersion      = @GhcVersion@
743 GhcPatchLevel   = @GhcPatchLevel@
744 GhcMajVersion   = @GhcMajVersion@
745 GhcMinVersion   = @GhcMinVersion@
746
747 ghc_ge_607 = @ghc_ge_607@
748 ghc_ge_609 = @ghc_ge_609@
749
750 # Canonicalised ghc version number, used for easy (integer) version
751 # comparisons.  We must expand $(GhcMinVersion) to two digits by
752 # adding a leading zero if necessary:
753 ifneq "$(findstring $(GhcMinVersion), 0 1 2 3 4 5 6 7 8 9)" ""
754 GhcCanonVersion = $(GhcMajVersion)0$(GhcMinVersion)
755 else
756 GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion)
757 endif
758
759 #-----------------------------------------------------------------------------
760 # C compiler
761 #
762 # NB. Don't override $(WhatGccIsCalled) using build.mk,  re-configure using
763 # the flag --with-gcc=<blah> instead.  The reason is that the configure script
764 # needs to know which gcc you're using in order to perform its tests.
765
766 HaveGcc         = @HaveGcc@
767 UseGcc          = YES
768 WhatGccIsCalled = @WhatGccIsCalled@
769 GccVersion      = @GccVersion@
770 ifeq "$(strip $(HaveGcc))" "YES"
771 ifneq "$(strip $(UseGcc))"  "YES"
772   CC    = cc
773 else
774   CC    = $(WhatGccIsCalled)
775 endif
776 endif
777
778 # default C compiler flags
779 SRC_CC_OPTS = @SRC_CC_OPTS@
780
781 ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux"
782 SRC_CC_OPTS += -G0
783 endif
784
785 SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS)))
786 SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d))
787
788 #-----------------------------------------------------------------------------
789 # GMP Library (version 2.0.x or above)
790 #
791 HaveLibGmp      = @HaveLibGmp@
792 LibGmp          = @LibGmp@
793
794 GMP_INCLUDE_DIRS=@GMP_INCLUDE_DIRS@
795 GMP_LIB_DIRS=@GMP_LIB_DIRS@
796
797 #-----------------------------------------------------------------------------
798 # GMP framework (Mac OS X)
799 #
800 HaveFrameworkGMP = @HaveFrameworkGMP@
801
802 #-----------------------------------------------------------------------------
803 # Mingwex Library
804 #
805 HaveLibMingwEx  = @HaveLibMingwEx@
806
807 #-----------------------------------------------------------------------------
808 # Flex (currently unused, could be moved to glafp-utils)
809
810 # FLEX                  = @LEX@
811 # Don't bother with -lfl, we define our own yywrap()s anyway.
812 # FLEX_LIB              = 
813 #WAS:FLEX_LIB           = @LEXLIB@
814
815 #-----------------------------------------------------------------------------
816 # Other standard (ha!) Unix utilities
817
818 AR                      = @ArCmd@
819 ArSupportsInput         = @ArSupportsInput@
820 # Yuckage: for ghc/utils/parallel -- todo: nuke this dependency!!
821 BASH                    = /usr/local/bin/bash
822
823 CONTEXT_DIFF            = @ContextDiffCmd@
824 CP                      = cp
825 CPP                     = @CPP@ @CPPFLAGS@
826 CTAGS                   = $(ETAGS)
827 #
828 # RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to
829 # behave plausibly on Haskell sources.
830 #
831 RAWCPP_FLAGS            = -undef -traditional
832 FIND                    = @FindCmd@
833 SORT                    = @SortCmd@
834 INSTALL                 = @INSTALL@
835 #
836 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
837 # install-sh script (if chosen). This not terribly useful to us, so we convert
838 # it into an abs. path.
839
840 INSTALL                 := $(subst .././install-sh,$(TOP)/install-sh,$(INSTALL))
841 LATEX                   = latex
842 HEVEA                   = hevea
843 HACHA                   = hacha
844 LN_S                    = @LN_S@
845 MANMACROS               = -man
846 MSMACROS                = -ms
847 MV                      = mv
848 NROFF                   = nroff
849 PERL                    = @PerlCmd@
850 PYTHON                  = @PythonCmd@
851 PIC                     = pic
852 PREPROCESSCMD           = $(CC) -E
853 RANLIB                  = @RANLIB@
854 RM                      = rm -f
855 SED                     = @SedCmd@
856 SHELL                   = /bin/sh
857
858 LD                      = @LdCmd@
859
860 # Some ld's support the -x flag and some don't, so the configure
861 # script detects which we have and sets LdXFlag to "-x" or ""
862 # respectively.
863 LD_X                    = @LdXFlag@
864
865 # GNU ld supports input via a linker script, which is useful to avoid
866 # overflowing command-line length limits.
867 LdIsGNULd               = @LdIsGNULd@
868
869 #
870 # In emergency situations, REAL_SHELL is used to perform shell commands
871 # from within the ghc driver script, by scribbling the command line to
872 # a temp file and then having $(REAL_SHELL) execute it. 
873 #
874 # The reason for having to do this is that overly long command lines
875 # cause unnecessary trouble with some shells (e.g., /bin/sh on Solaris
876 # 2.5.1), which is why this backdoor is provided. The situation of overly
877 # long command lines is either encountered while doing `make boot' in compiler/, 
878 # or when linking the compiler binary (`hsc'). 
879 #
880 # We do not use SHELL to execute long commands, as `make' will more than likely
881 # override whatever setting you have in your environment while executing. 
882
883 # By default, REAL_SHELL is set equal to SHELL, which is not really a smart move
884 # as it is SHELL that will show up the bogosity in the first place, but setting
885 # it to anything else isn't really portable.
886 #
887 #  ====> If long command lines cause you trouble, invoke `ghc' (via `make' or otherwise)
888 # with REAL_SHELL set to something else than /bin/sh, for instance, your favourite
889 # command shell.
890 #
891 REAL_SHELL=$(SHELL)
892 SIZE                    = size
893 STRIP                   = strip
894 PATCH                   = @PatchCmd@
895 TAR                     = @TarCmd@
896 ZIP                     = zip
897
898 HSCOLOUR = @HSCOLOUR@
899
900 #
901 # This is special to literate/, ToDo: add literate-specific
902 # configure setup to literate/.
903 #
904 TBL                     = tbl
905 TEX                     = tex
906 TGRIND                  = tgrind
907 TGRIND_HELPER           = /usr/local/lib/tgrind/tfontedpr # XXX
908 TIB                     = tib
909
910 TIME                    = @TimeCmd@
911 TROFF                   = troff
912 UNAME                   = uname
913
914 # GTK+
915 GTK_CONFIG = @GTK_CONFIG@
916
917 # Set this if you want to use Inno Setup to build a Windows installer
918 # when you make a bindist
919 ISCC                    =
920
921 #-----------------------------------------------------------------------------
922 # DocBook XML stuff
923
924 XSLTPROC                = @XsltprocCmd@
925 XMLLINT                 = @XmllintCmd@
926 FOP                     = @FopCmd@
927 XMLTEX                  = @XmltexCmd@
928 PDFXMLTEX               = @PdfxmltexCmd@
929 DVIPS                   = @DvipsCmd@
930
931 DIR_DOCBOOK_XSL         = @DIR_DOCBOOK_XSL@
932
933 XSLTPROC_LABEL_OPTS     = --stringparam toc.section.depth 3 \
934                           --stringparam section.autolabel 1 \
935                           --stringparam section.label.includes.component.label 1
936
937 #-----------------------------------------------------------------------------
938 #               FPtools support software
939
940 BLD_DLL                 = dllwrap
941
942 #
943 # ghc-pkg
944 #
945 GHC_PKG                 = @GhcPkgCmd@
946
947 #
948 # GreenCard
949 #
950 GREENCARD               = @GreenCardCmd@
951 GREENCARD_VERSION       = @GreenCardVersion@            
952
953 #
954 # Happy
955 #
956 HAPPY                   = @HappyCmd@
957 HAPPY_VERSION           = @HappyVersion@                
958 #
959 # Options to pass to Happy when we're going to compile the output with GHC
960 #
961 SRC_HAPPY_OPTS          = -agc --strict
962
963 # Temp. to work around performance problems in the HEAD around 8/12/2003,
964 # A Happy compiled with this compiler needs more stack.
965 SRC_HAPPY_OPTS          += +RTS -K2m -RTS
966
967 #
968 # Alex
969 #
970 ALEX                    = @AlexCmd@
971 ALEX_VERSION            = @AlexVersion@         
972 #
973 # Options to pass to Happy when we're going to compile the output with GHC
974 #
975 SRC_ALEX_OPTS           = -g
976
977 # Should we build haddock docs?
978 HADDOCK_DOCS = YES
979 # And HsColour the sources?
980 ifeq "$(HSCOLOUR)" ""
981 HSCOLOUR_SRCS = NO
982 else
983 HSCOLOUR_SRCS = YES
984 endif
985
986 #
987 # Options for compiling in different `ways'. 
988
989 # To configure up your own way, have a look at some of the standard ways
990 # such as profiling, and create your own set of WAY_*_OPTS defs below.
991 # After having done that, add your way string to WAYS, and after having
992 # run the configure script, the different projects will add the new way
993 # to the list of ways they support.
994 #
995
996 #
997 # Definitions of the different ways:
998 #   
999 #   * their name:
1000 #          - tag, e.g., p
1001 #          - description, e.g., profiling
1002 #   * what they mean to the driver:
1003 #          - WAY_p_HC_OPTS gives the list of command-line options
1004 #            to the driver.
1005 #
1006
1007 #
1008 # The ways currently defined.
1009 #
1010 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
1011 USER_WAYS=a b c d e f g h j k l m n o A B
1012
1013 #
1014 # The following ways currently have treated specially, p t mg,
1015 # as the driver script treats these guys specially and needs to carefully be told
1016 # about the options for these. Hence, we hide the required command line options
1017 # for these in the driver, as this is the only place they are needed.
1018
1019 # If you want to add to these default options, fill in the variables below:
1020
1021 # Way 'v':
1022 WAY_v_NAME=vanilla
1023 WAY_v_HC_OPTS= 
1024
1025 # Way 'p':
1026 WAY_p_NAME=profiling
1027 WAY_p_HC_OPTS= -prof
1028
1029 # Way 't':
1030 WAY_t_NAME=ticky-ticky profiling
1031 WAY_t_HC_OPTS= -ticky
1032
1033 # Way 'l':
1034 WAY_l_NAME=event logging
1035 WAY_l_HC_OPTS= -eventlog
1036
1037 # Way `mp': 
1038 WAY_mp_NAME=parallel
1039 WAY_mp_HC_OPTS=-parallel
1040
1041 # Way `mg': 
1042 WAY_mg_NAME=GranSim
1043 WAY_mg_HC_OPTS=-gransim
1044
1045 #
1046 # These ways apply to the RTS only:
1047 #
1048
1049 # Way 'thr':
1050 WAY_thr_NAME=threaded
1051 WAY_thr_HC_OPTS=-optc-DTHREADED_RTS
1052
1053 # Way 'thr_p':
1054 WAY_thr_p_NAME=threaded profiled
1055 WAY_thr_p_HC_OPTS=-optc-DTHREADED_RTS -prof
1056
1057 # Way 'thr_l':
1058 WAY_thr_l_NAME=threaded event logging
1059 WAY_thr_l_HC_OPTS=-optc-DTHREADED_RTS -eventlog
1060
1061 # Way 'debug':
1062 WAY_debug_NAME=debug
1063 WAY_debug_HC_OPTS=-optc-DDEBUG
1064
1065 # Way 'debug_p':
1066 WAY_debug_p_NAME=debug profiled
1067 WAY_debug_p_HC_OPTS=-optc-DDEBUG -prof
1068
1069 # Way 'debug_t':
1070 WAY_debug_t_NAME=debug ticky-ticky profiling
1071 WAY_debug_t_HC_OPTS= -ticky -optc-DDEBUG
1072
1073 # Way 'thr_debug':
1074 WAY_thr_debug_NAME=threaded
1075 WAY_thr_debug_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG
1076
1077 # Way 'thr_debug_p':
1078 WAY_thr_debug_p_NAME=threaded debug profiling
1079 WAY_thr_debug_p_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG -prof
1080
1081 # Way 'thr_debug_l':
1082 WAY_thr_debug_l_NAME=threaded debug event logging
1083 WAY_thr_debug_l_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG -eventlog
1084
1085 # Way 'dyn': build dynamic shared libraries
1086 WAY_dyn_NAME=dyn
1087 WAY_dyn_HC_OPTS=-fPIC -dynamic
1088 WAY_dyn_LIB_TARGET=libHSrts-gcc661.so
1089
1090 # Way 'thr_dyn':
1091 WAY_thr_dyn_NAME=thr_dyn
1092 WAY_thr_dyn_HC_OPTS=-fPIC -dynamic -optc-DTHREADED_RTS
1093
1094 # Way 'thr_debug_dyn':
1095 WAY_thr_debug_dyn_NAME=thr_dyn
1096 WAY_thr_debug_dyn_HC_OPTS=-fPIC -dynamic -optc-DTHREADED_RTS -optc-DDEBUG
1097
1098 # Way 'debug_dyn':
1099 WAY_debug_dyn_NAME=thr_dyn
1100 WAY_debug_dyn_HC_OPTS=-fPIC -dynamic -optc-DDEBUG
1101
1102 #
1103 # Add user-way configurations here:
1104 #
1105 WAY_A_NAME=
1106 WAY_A_HC_OPTS=
1107
1108 WAY_B_NAME=
1109 WAY_B_HC_OPTS=
1110
1111 WAY_a_NAME=
1112 WAY_a_HC_OPTS=
1113
1114 WAY_b_NAME=
1115 WAY_b_HC_OPTS=
1116
1117 WAY_c_NAME=
1118 WAY_c_HC_OPTS=
1119
1120 WAY_d_NAME=
1121 WAY_d_HC_OPTS=
1122
1123 WAY_e_NAME=
1124 WAY_e_HC_OPTS=
1125
1126 WAY_f_NAME=
1127 WAY_f_HC_OPTS=
1128
1129 WAY_g_NAME=
1130 WAY_g_HC_OPTS=
1131
1132 WAY_h_NAME=
1133 WAY_h_HC_OPTS=
1134
1135 WAY_j_NAME=
1136 WAY_j_HC_OPTS=
1137
1138 WAY_k_NAME=
1139 WAY_k_HC_OPTS=
1140
1141 WAY_l_NAME=
1142 WAY_l_HC_OPTS=
1143
1144 WAY_m_NAME=
1145 WAY_m_HC_OPTS=
1146
1147 WAY_n_NAME=
1148 WAY_n_HC_OPTS=
1149
1150 WAY_o_NAME=
1151 WAY_o_HC_OPTS=
1152
1153 ################################################################################
1154 #
1155 #               31-bit-Int Core files
1156 #
1157 ################################################################################
1158
1159
1160 # It is possible to configure the compiler and prelude to support 31-bit
1161 # integers, suitable for a back-end and RTS using a tag bit on a 32-bit
1162 # architecture.  Currently the only useful output from this option is external Core
1163 # files.  The following additions to your build.mk will produce the
1164 # 31-bit core output.  Note that this is *not* just a library "way"; the
1165 # compiler must be built a special way too.
1166
1167 # GhcCppOpts +=-DWORD_SIZE_IN_BITS=31
1168 # GhcLibHcOpts +=-fext-core -fno-code -DWORD_SIZE_IN_BITS=31
1169 # GhcLibCppOpts += -DWORD_SIZE_IN_BITS=31
1170 # SplitObjs=NO
1171
1172 ################################################################################
1173 #
1174 #    Library configure arguments
1175 #
1176 ################################################################################
1177
1178 CONFIGURE_ARGS = @CONFIGURE_ARGS@
1179
1180 ################################################################################
1181 #
1182 #    Bindist testing directory
1183 #
1184 ################################################################################
1185
1186 ifeq "$(Windows)" "YES"
1187 BIN_DIST_INST_SUBDIR = "install dir"
1188 else
1189 # I very much doubt that paths with spaces will work on Unix
1190 BIN_DIST_INST_SUBDIR = installed
1191 endif
1192
1193 BIN_DIST_INST_DIR = $(TOP)/bindisttest/$(BIN_DIST_INST_SUBDIR)
1194