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