X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=cd27958eb8e562e6736bca1d402837299ba03a87;hb=a48a8fcad88adfbc024377ca6aa633166d180635;hp=8820316cac6d4b9a81e0319c84339f44f5be7e70;hpb=627277bde24e59bbb07a701ba4196bc61f8fa981;p=ghc-base.git diff --git a/Makefile b/Makefile index 8820316..cd27958 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,3 @@ -# ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.40 2002/12/20 09:31:11 simonmar Exp $ - TOP=.. include $(TOP)/mk/boilerplate.mk @@ -11,13 +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 \ @@ -31,7 +30,6 @@ ALL_DIRS = \ Text/Html \ Text/PrettyPrint \ Text/ParserCombinators \ - Text/ParserCombinators/Parsec \ Text/Regex \ Text/Show \ Text/Read @@ -41,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 @@ -56,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 # @@ -97,11 +113,11 @@ endif # OBJECT_FILEFORMAT = PEi # 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)" \ - --no-implicit-prelude -p prologue.txt +SRC_HADDOCK_OPTS += -t "Haskell Hierarchical Libraries ($(PACKAGE) package)" \ + --no-implicit-prelude # ----------------------------------------------------------------------------- @@ -111,7 +127,7 @@ ifeq "$(OBJECT_FILEFORMAT)" "PEi" HSbase.o : $(GHCI_LIBOBJS) $(LD) -r $(LD_X) -o HSbase1.o $(filter GHC/%, $(GHCI_LIBOBJS)) $(LD) -r $(LD_X) -o HSbase2.o $(filter Text/%, $(GHCI_LIBOBJS)) - $(LD) -r $(LD_X) -o HSbase3.o $(filter-out GHC/% Text/%, $(GHCI_LIBOBJS)) + $(LD) -r $(LD_X) -o HSbase3.o $(filter-out GHC/% Text/%, $(GHCI_LIBOBJS) $(STUBOBJS)) @touch HSbase.o endif # OBJECT_FILEFORMAT = PEi