-# GHCi calls the C procedure 'system', but alas GHC 4.08's
-# implementation of this (in the library System) didn't work
-# properly on Windows. Everything is fine if you are compiling
-# GHC with GHC 5.01 or better, but lacking that we have the following
-# hack:
-# copy system.c from lib/std (where it is correct)
-# into main/system.c (where it'll be compiled and
-# linked with the compiler)
-
-ifneq "$(ghc_501_at_least)" "YES"
-C_SRCS += main/system.c
-SRC_CC_OPTS += -I$(GHC_LIB_DIR)/std/cbits
-SRC_MKDEPENDC_OPTS += -I$(GHC_LIB_DIR)/std/cbits
-HS_OBJS += main/system.o
-
-main/system.c : ../lib/std/cbits/system.c
- $(CP) ../lib/std/cbits/system.c main
-endif
-endif
-# End of system hack
-# -----------------------------------------------
-
-HS_SRCS := $(foreach dir,$(DIRS),$(wildcard $(dir)/*.lhs) $(wildcard $(dir)/*.hs))
-HS_SRCS := $(filter-out rename/ParseIface.hs parser/Parser.hs main/ParsePkgConf.hs $(CONFIG_HS), $(HS_SRCS))
-HS_SRCS += $(CONFIG_HS)
-
-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)
-