X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2FMakefile;h=ac92a526de71fa9c8efa72105935afffd7dda0d4;hb=0f5e104c36b1dc3d8deeec5fef3d65e7b3a1b5ad;hp=946d76f8305e3db62b2c548639188de66da1da0e;hpb=d7d755865a3849be26a468a3fa430ff96c8e9e0c;p=ghc-hetmet.git diff --git a/libraries/Makefile b/libraries/Makefile index 946d76f..ac92a52 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -74,9 +74,15 @@ ifeq "$(GhcLibsWithObjectIO)" "YES" SUBDIRS += $(wildcard ObjectIO) endif SUBDIRS += $(wildcard parallel) -SUBDIRS += $(wildcard ndp) +SUBDIRS_BUILD += $(wildcard ndp) +SUBDIRS_BUILD += $(wildcard dph/dph-base) +SUBDIRS_BUILD += $(wildcard dph/dph-prim-seq) +SUBDIRS_BUILD += $(wildcard dph/dph-prim-par) +SUBDIRS_BUILD += $(wildcard dph/dph) endif +SUBDIRS += $(SUBDIRS_BUILD) + # ----------------------------------------------------------------------------- empty= @@ -84,6 +90,10 @@ space=$(empty) $(empty) # ----------------------------------------------------------------------------- +ifeq "$(ghc_ge_609)" "YES" +GhcLibHcOpts += -fno-warn-deprecated-flags +endif + ifeq "$(RelocatableBuild)" "YES" # On Windows we want to make moveable bindists, but we need to tell # ghc-pkg where the haddock docs are. Therefore we completely ignore @@ -162,8 +172,7 @@ boot: $(BOOTSTRAP_STAMPS) ifBuildable/ifBuildable \ # We ought to be depending on %/Setup.*hs, but make makes that difficult. -# -fffi is only needed for GHC 6.4 at the time of writing -CABAL_GHC_FLAGS = -Wall -cpp -fffi +CABAL_GHC_FLAGS = -Wall $(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/setup/Setup): \ %/setup/Setup: $(BOOTSTRAP_STAMPS) @@ -293,9 +302,9 @@ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup # needs to be done. However, we're careful not to overwrite GNUmakefile # if it hasn't changed, so that dependency-generation isn't forced # every time. -# I doubt that the makefile way will work with ndp, so filter it out and use -# a rule below to call build.library.ndp instead -$(foreach SUBDIR,$(filter-out ndp,$(SUBDIRS)),make.library.$(SUBDIR)):\ +# Packages in $(SUBDIRS_BUILD) need to use the build.* rules instead of +# make.*, so filter them out and use an alternate rule below instead. +$(foreach SUBDIR,$(filter-out $(SUBDIRS_BUILD),$(SUBDIRS)),make.library.$(SUBDIR)):\ make.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \ %/setup/Setup ifBuildable/ifBuildable installPackage/installPackage if $(IFBUILDABLE) $*; then \ @@ -310,8 +319,9 @@ make.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \ MAKEFILE_LOCAL = $(FPTOOLS_TOP_ABS)/libraries/Makefile.local -# Hack for ndp, as described above -make.library.ndp: build.library.ndp +# Alternate rule, as described above +$(foreach SUBDIR,$(SUBDIRS_BUILD),make.library.$(SUBDIR)):\ +make.library.%: build.library.% # Build the library using 'setup build' (not the default) $(foreach SUBDIR,$(SUBDIRS),build.library.$(SUBDIR)):\