diff options
Diffstat (limited to 'utils/genapply/ghc.mk')
-rw-r--r-- | utils/genapply/ghc.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/genapply/ghc.mk b/utils/genapply/ghc.mk new file mode 100644 index 0000000000..94fb45639c --- /dev/null +++ b/utils/genapply/ghc.mk @@ -0,0 +1,16 @@ +utils/genapply_dist_MODULES = GenApply +utils/genapply_dist_PROG = $(GHC_GENAPPLY_PGM) + +ifeq "$(ghc_ge_607)" "YES" +utils/genapply_HC_OPTS += -package pretty +endif + +ifeq "$(GhcUnregisterised)" "YES" +utils/genapply_HC_OPTS += -DNO_REGS +endif + +utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/ghcconfig.h +utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/MachRegs.h +utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/Constants.h + +$(eval $(call build-prog,utils/genapply,dist,0)) |