diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-09-13 18:00:39 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-09-13 18:17:23 +0100 |
commit | 07c3777105e9e7292b472af9277cf8710492e038 (patch) | |
tree | 9ddf12b59fd786200b692480044fd0e0494ec27d /includes/ghc.mk | |
parent | 6154cfa9428bc60adb74b50c4e694a13f3ef0b39 (diff) | |
download | haskell-07c3777105e9e7292b472af9277cf8710492e038.tar.gz |
Add a couple more mkDerivedConstants modes
We now also generate nice wrappers for the platformConstants
methods. For now it's all commented out as the definitions
conflict with those in Constants.
Diffstat (limited to 'includes/ghc.mk')
-rw-r--r-- | includes/ghc.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/ghc.mk b/includes/ghc.mk index ac11ee3b13..c34fd47b8a 100644 --- a/includes/ghc.mk +++ b/includes/ghc.mk @@ -134,6 +134,8 @@ includes_DERIVEDCONSTANTS = includes/dist-derivedconstants/header/DerivedConstan includes_GHCCONSTANTS = includes/dist-derivedconstants/header/GHCConstants.h includes_GHCCONSTANTS_HASKELL_TYPE = includes/dist-derivedconstants/header/GHCConstantsHaskellType.hs includes_GHCCONSTANTS_HASKELL_VALUE = includes/dist-derivedconstants/header/platformConstants +includes_GHCCONSTANTS_HASKELL_WRAPPERS = includes/dist-derivedconstants/header/GHCConstantsHaskellWrappers.hs +includes_GHCCONSTANTS_HASKELL_EXPORTS = includes/dist-derivedconstants/header/GHCConstantsHaskellExports.hs INSTALL_LIBS += includes/dist-derivedconstants/header/platformConstants @@ -190,6 +192,20 @@ ifeq "$(AlienScript)" "" else $(AlienScript) run ./$< --gen-haskell-value >$@ endif + +$(includes_GHCCONSTANTS_HASKELL_WRAPPERS) : $(INPLACE_BIN)/mkDerivedConstants$(exeext) | $$(dir $$@)/. +ifeq "$(AlienScript)" "" + ./$< --gen-haskell-wrappers >$@ +else + $(AlienScript) run ./$< --gen-haskell-wrappers >$@ +endif + +$(includes_GHCCONSTANTS_HASKELL_EXPORTS) : $(INPLACE_BIN)/mkDerivedConstants$(exeext) | $$(dir $$@)/. +ifeq "$(AlienScript)" "" + ./$< --gen-haskell-exports >$@ +else + $(AlienScript) run ./$< --gen-haskell-exports >$@ +endif endif endif |