2 include $(TOP)/mk/boilerplate.mk
11 LIBRARY = libghccompat.a
13 # Just to silence warnings
14 MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
18 ghc_603_plus = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
20 ifeq "$(ghc_603_plus)" "YES"
21 # These modules are all provided in GHC 6.3+
25 Distribution/Compat/Error.hs \
26 Distribution/Compat/ReadP.hs \
27 Distribution/Extension.hs \
28 Distribution/InstalledPackageInfo.hs \
29 Distribution/License.hs \
30 Distribution/Package.hs \
31 Distribution/ParseUtils.hs \
32 Distribution/Setup.hs \
33 Distribution/Version.hs
36 # Make the #includes in the stubs independent of the current location
37 SRC_HC_OPTS += -I$(FPTOOLS_TOP)/libraries
39 SRC_HC_OPTS += -fglasgow-exts
41 # libghccompat is needed to build ghc-pkg, which is built during 'make boot',
42 # so we must build this library during 'make boot' too.
43 # Do a recursive 'make all' after generating dependencies, because this
44 # will work with 'make -j'.
45 ifneq "$(BootingFromHc)" "YES"
50 include $(TOP)/mk/target.mk