X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=libraries%2FMakefile;h=68d84f938bbcdd5535dd902eaddce0aa78256a6b;hp=da1ecab916b59f6eb99a0f5eda5c5de4b2e4f597;hb=8fbf686cf52d763f185d85d99ae16bd66eba05b1;hpb=438e00e06ec0851a6ab0813ba7f7cab5b19e4161 diff --git a/libraries/Makefile b/libraries/Makefile index da1ecab..68d84f9 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 $@ @@ -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)