X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=gmp%2Fghc.mk;h=8ae645977a47642fd340ce796032107972271a64;hb=95d987b5eebddd167cd92ea6a20280e97d6d5ec1;hp=1a71e17878a6ce109f9cdd9191a08dc45f8e1bc4;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b;p=ghc-hetmet.git diff --git a/gmp/ghc.mk b/gmp/ghc.mk index 1a71e17..8ae6459 100644 --- a/gmp/ghc.mk +++ b/gmp/ghc.mk @@ -1,3 +1,15 @@ +# ----------------------------------------------------------------------------- +# +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + # Compile GMP only if we don't have it already # @@ -83,8 +95,10 @@ gmp/libgmp.a: $(CP) gmp/gmpbuild/.libs/libgmp.a gmp/ $(RANLIB) gmp/libgmp.a +ifneq "$(NO_CLEAN_GMP)" "YES" $(eval $(call clean-target,gmp,,\ - gmp/libgmp.a gmp/gmpbuild gmp/$(GMP_DIR))) + gmp/libgmp.a gmp/gmp.h gmp/gmpbuild gmp/$(GMP_DIR))) +endif # XXX TODO: #stamp.gmp.shared: