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+
24 Distribution/Compat/Error.hs \
25 Distribution/Compat/ReadP.hs \
26 Distribution/Extension.hs \
27 Distribution/InstalledPackageInfo.hs \
28 Distribution/License.hs \
29 Distribution/Package.hs \
30 Distribution/ParseUtils.hs \
31 Distribution/Setup.hs \
32 Distribution/Version.hs
35 # Make the #includes in the stubs independent of the current location
36 SRC_HC_OPTS += -I$(FPTOOLS_TOP)/libraries
38 SRC_HC_OPTS += -fglasgow-exts
40 # libghccompat is needed to build ghc-pkg, which is built during 'make boot',
41 # so we must build this library during 'make boot' too.
42 # Do a recursive 'make all' after generating dependencies, because this
43 # will work with 'make -j'.
44 ifneq "$(BootingFromHc)" "YES"
49 include $(TOP)/mk/target.mk