Fix scoped type variables for expression type signatures
[ghc-hetmet.git] / compat / compat.mk
1 # Settings for using the libghccompat.a library elsewhere in the build
2 # tree: this file is just included into Makefiles, see 
3 # utils/ghc-pkg/Makefile for example.
4 #
5 # This is a poor-mans package, but simpler because we don't
6 # have to deal with variations in the package support of different
7 # versions of GHC.
8
9 # Use libghccompat.a:
10 SRC_HC_OPTS += -i$(GHC_COMPAT_DIR)
11 SRC_LD_OPTS += -L$(GHC_COMPAT_DIR) -lghccompat
12
13 # Do *not* use the installed Cabal:
14 ifeq "$(ghc_ge_603)" "YES"
15 SRC_HC_OPTS += -ignore-package Cabal
16 endif
17
18 # And similarly for when booting from .hc files:
19 HC_BOOT_LD_OPTS += -L$(GHC_COMPAT_DIR)
20 HC_BOOT_LIBS += -lghccompat
21
22 ifeq "$(Windows)" "YES"
23 # not very nice, but required for -lghccompat on Windows
24 SRC_LD_OPTS += -lshell32
25 HC_BOOT_LIBS += -lshell32
26 endif
27
28 # This is horrible.  We ought to be able to omit the entire directory
29 # from mkDependHS.
30 SRC_MKDEPENDHS_OPTS += \
31         -optdep--exclude-module=Compat.RawSystem \
32         -optdep--exclude-module=Compat.Directory \
33         -optdep--exclude-module=Compat.Unicode \
34         -optdep--exclude-module=Distribution.Compat.FilePath \
35         -optdep--exclude-module=Distribution.Compat.ReadP \
36         -optdep--exclude-module=Distribution.Extension \
37         -optdep--exclude-module=Distribution.GetOpt \
38         -optdep--exclude-module=Distribution.InstalledPackageInfo \
39         -optdep--exclude-module=Distribution.License \
40         -optdep--exclude-module=Distribution.Package \
41         -optdep--exclude-module=Distribution.ParseUtils \
42         -optdep--exclude-module=Distribution.Compiler \
43         -optdep--exclude-module=Distribution.Version \
44         -optdep--exclude-module=System.Directory.Internals