1 # -----------------------------------------------------------------------------
3 # (c) 2009 The University of Glasgow
5 # This file is part of the GHC build system.
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
11 # -----------------------------------------------------------------------------
13 utils/genapply_dist_MODULES = GenApply
14 utils/genapply_dist_PROG = $(GHC_GENAPPLY_PGM)
16 ifeq "$(ghc_ge_607)" "YES"
17 utils/genapply_HC_OPTS += -package pretty
20 ifeq "$(GhcUnregisterised)" "YES"
21 utils/genapply_HC_OPTS += -DNO_REGS
24 utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/ghcconfig.h
25 utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/MachRegs.h
26 utils/genapply/GenApply.hs : $(GHC_INCLUDE_DIR)/Constants.h
28 $(eval $(call build-prog,utils/genapply,dist,0))