-ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-ghc_501_at_least = $(shell if (test $(CANON_HC_VERSION) -ge 5010); then echo YES; else echo NO; fi)
-
-# -----------------------------------------------
-# GHCi calls the C procedure 'rawSystem'; but alas GHC 4.08
-# does not have this. Everything is fine if you are compiling
-# GHC with GHC 5.02 or better, but lacking that we have the following
-# hack:
-# copy rawSystem.c from hslibs/lang/cbits
-# into main/ (where it'll be compiled and linked with the compiler)
-# (the Haskell-side code is ifdefed into main/SysTools.lhs)
-
-ifneq "$(ghc_502_at_least)" "YES"
-C_SRCS += main/rawSystem.c
-SRC_CC_OPTS += -I$(GHC_LIB_DIR)/std/cbits
-SRC_MKDEPENDC_OPTS += -I$(GHC_LIB_DIR)/std/cbits
-HS_OBJS += main/rawSystem.o
-main/rawSystem.c : $(FPTOOLS_TOP)/hslibs/lang/cbits/rawSystem.c
- $(CP) $< main
-endif
-endif
-# End of system hack
-# -----------------------------------------------
-
-ifneq "$(BootingFromHc)" "YES"
-HS_SRCS += rename/ParseIface.hs parser/Parser.hs main/ParsePkgConf.hs
-endif
-
-HCS = $(patsubst %.lhs, %.hc, $(patsubst %.hs, %.hc, $(HS_SRCS)))
-
-ifeq "$(BootingFromHc)" "YES"
-HCS += rename/ParseIface.hc parser/Parser.hc main/ParsePkgConf.hc