-# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.40 2002/12/20 09:31:11 simonmar Exp $
-
TOP=..
include $(TOP)/mk/boilerplate.mk
Control/Monad \
Control/Monad/ST \
Data \
+ Data/Generics \
Data/Array \
+ Data/Array/IO \
Data/STRef \
Debug \
- Debug/QuickCheck \
Foreign \
Foreign/C \
Foreign/Marshal \
Text/Html \
Text/PrettyPrint \
Text/ParserCombinators \
- Text/ParserCombinators/Parsec \
Text/Regex \
Text/Show \
Text/Read
# -----------------------------------------------------------------------------
# PrimOpWrappers
+# These two lines are required for pre-processing ghc/compiler/prelude/primops.txt
+SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR)
+SRC_CPP_OPTS += ${GhcCppOpts}
+
+ifeq "$(BootingFromHc)" "YES"
+GHC/PrimopWrappers.hs:
+ touch GHC/PrimopWrappers.hs
+else
GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
@$(RM) $@
$(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
+endif
boot :: GHC/PrimopWrappers.hs
# Doc building with Haddock
EXCLUDED_HADDOCK_SRCS = \
- Data/Generics.hs \
+ GHC/PrimopWrappers.hs \
GHC/PArr.hs
SRC_HADDOCK_OPTS += -t "Haskell Core Libraries (base package)" \