-# 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
-endif
-
-#
-# Add misc .c helper code (used by the frontend.)
-#
-C_SRCS += parser/hschooks.c
-
-HS_OBJS = \
- $(patsubst %.hc, %.o, $(HCS)) \
- $(patsubst %.c, %.o, $(C_SRCS))
-
-DESTDIR = $(INSTALL_LIBRARY_DIR_GHC)
-