X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=26a6300165e9cb4f1b4bbc86653a5503eb6be0ba;hb=78e47c07f1587f736ef2484101451555183a039a;hp=72446d9c85051130db3c97bb37ac1b8c09266878;hpb=79d677bfebe31714ec41a4dacf4423bb1b0b2a47;p=ghc-base.git diff --git a/Makefile b/Makefile index 72446d9..26a6300 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ -# ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.43 2003/05/30 09:19:39 simonpj Exp $ - TOP=.. include $(TOP)/mk/boilerplate.mk @@ -11,14 +8,15 @@ SUBDIRS = cbits include ALL_DIRS = \ Control \ Control/Concurrent \ + Control/Parallel \ Control/Monad \ Control/Monad/ST \ Data \ + Data/Generics \ Data/Array \ Data/Array/IO \ Data/STRef \ Debug \ - Debug/QuickCheck \ Foreign \ Foreign/C \ Foreign/Marshal \ @@ -32,7 +30,6 @@ ALL_DIRS = \ Text/Html \ Text/PrettyPrint \ Text/ParserCombinators \ - Text/ParserCombinators/Parsec \ Text/Regex \ Text/Show \ Text/Read @@ -42,8 +39,9 @@ PACKAGE = base SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude -\#include HsBase.h SRC_HSC2HS_OPTS += -Iinclude -I$(FPTOOLS_TOP)/ghc/includes -# Make sure we can get hold of regex.h +# If there is no system-supplied POSIX regex library, use our own ifneq "$(HavePosixRegex)" "YES" +# Make sure we can get hold of regex.h SRC_HC_OPTS += -Icbits/regex SRC_HSC2HS_OPTS += -Icbits/regex endif @@ -57,15 +55,32 @@ SRC_HC_OPTS += -funbox-strict-fields # ----------------------------------------------------------------------------- # 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 EXTRA_SRCS += GHC/PrimopWrappers.hs CLEAN_FILES += GHC/PrimopWrappers.hs +# ----------------------------------------------------------------------------- + +STUBOBJS += \ + Control/Concurrent_stub.$(way_)o + +CLEAN_FILES += $(STUBOBJS) \ + Control/Concurrent_stub.[ch] + #----------------------------------------------------------------------------- # Building the library for GHCi # @@ -101,8 +116,8 @@ EXCLUDED_HADDOCK_SRCS = \ GHC/PrimopWrappers.hs \ GHC/PArr.hs -SRC_HADDOCK_OPTS += -t "Haskell Core Libraries (base package)" \ - --no-implicit-prelude -p prologue.txt +SRC_HADDOCK_OPTS += -t "Haskell Hierarchical Libraries ($(PACKAGE) package)" \ + --no-implicit-prelude # -----------------------------------------------------------------------------