summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/gmp
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-09 20:47:02 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-09 20:58:57 +0100
commitd238ea4057e7c5e5d262d5ca31bc35b2dabfdd02 (patch)
tree2a23b43fa9b7f7654a061d01c7c4f597648aa547 /libraries/integer-gmp/gmp
parent8a6e132f4b466dae0646cfff5172d07c87a2262b (diff)
downloadhaskell-d238ea4057e7c5e5d262d5ca31bc35b2dabfdd02.tar.gz
Handle dependencies for .cmm files properly
Diffstat (limited to 'libraries/integer-gmp/gmp')
-rw-r--r--libraries/integer-gmp/gmp/ghc.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/libraries/integer-gmp/gmp/ghc.mk b/libraries/integer-gmp/gmp/ghc.mk
index 54b6d089f7..b540910521 100644
--- a/libraries/integer-gmp/gmp/ghc.mk
+++ b/libraries/integer-gmp/gmp/ghc.mk
@@ -49,6 +49,7 @@ ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
include libraries/integer-gmp/gmp/config.mk
endif
+libraries/integer-gmp_dist-install_EXTRA_CC_OPTS += -Ilibraries/integer-gmp/mkGmpDerivedConstants/dist
libraries/integer-gmp_dist-install_EXTRA_HC_OPTS += -Ilibraries/integer-gmp/mkGmpDerivedConstants/dist
gmp_CC_OPTS += $(addprefix -I,$(GMP_INCLUDE_DIRS))
@@ -77,12 +78,7 @@ HaveFrameworkGMP = NO
endif
endif
-define GmpDerivedConstants-dependencies # args: $1 = way
-$$(libraries/integer-gmp_dist-install_$1_CMM_OBJS): $$$$(GmpDerivedConstants_HEADER)
-$$(libraries/integer-gmp_dist-install_$1_C_OBJS): $$$$(GmpDerivedConstants_HEADER)
-endef
-
-$(foreach w,$(GhcLibWays),$(eval $(call GmpDerivedConstants-dependencies,$w)))
+$(libraries/integer-gmp_dist-install_depfile_c_asm): $$(GmpDerivedConstants_HEADER)
ifneq "$(HaveLibGmp)" "YES"
ifneq "$(HaveFrameworkGMP)" "YES"