X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2FMakefile;h=f6e0f29961eff6d09501446e3f08975658ea92f4;hb=97351f5d70e2d5797a092059cb205089d55dacc6;hp=da1ecab916b59f6eb99a0f5eda5c5de4b2e4f597;hpb=438e00e06ec0851a6ab0813ba7f7cab5b19e4161;p=ghc-hetmet.git diff --git a/libraries/Makefile b/libraries/Makefile index da1ecab..f6e0f29 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -73,6 +73,11 @@ CONFIGURE_OPTS += --enable-library-profiling CONFIGURE_STAMP_EXTRAS := $(CONFIGURE_STAMP_EXTRAS)-profiling endif +ifeq "$(SplitObjs)" "YES" +CONFIGURE_OPTS += --enable-split-objs +CONFIGURE_STAMP_EXTRAS := $(CONFIGURE_STAMP_EXTRAS)-splitting +endif + BOOTSTRAPPING_CABAL = bootstrapping.cabal .PHONY: subdirs @@ -145,6 +150,7 @@ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup --with-ld=$(LD) \ --datasubdir=ghc \ --haddock-args="--use-contents=../index.html --use-index=../doc-index.html" \ + $(addprefix --configure-option=,$(CONFIGURE_ARGS)) \ --configure-option=--with-cc=$(CC) touch $@ @@ -165,7 +171,7 @@ doc: $(foreach SUBDIR,$(SUBDIRS),doc.library.$(SUBDIR)) $(foreach SUBDIR,$(SUBDIRS),doc.library.$(SUBDIR)):\ doc.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \ %/setup/Setup - cd $* && setup/Setup haddock + cd $* && ../ifBuildable/ifBuildable setup/Setup haddock .PHONY: install install-docs install.library.% @@ -203,7 +209,9 @@ $(foreach SUBDIR,$(SUBDIRS),install.library.$(SUBDIR)): \ install.library.%: stamp/configure.library.install.% %/setup/Setup cd $* && ../ifBuildable/ifBuildable setup/Setup install -.PHONY: clean clean.library.% +.PHONY: distclean clean clean.library.% + +distclean: clean clean: $(foreach SUBDIR,$(SUBDIRS),clean.library.$(SUBDIR)) $(RM) -f stamp/$(BOOTSTRAPPING_CABAL)