summaryrefslogtreecommitdiff
path: root/utils/genapply/ghc.mk
blob: 94fb45639c1d97d1824add35660f6447982e8618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))