summaryrefslogtreecommitdiff
path: root/utils/genapply/ghc.mk
blob: cbd63f5c502f22f2dedcb608e5fb216fe7c7e161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -----------------------------------------------------------------------------
#
# (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
#
# -----------------------------------------------------------------------------

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))