cbd63f5c502f22f2dedcb608e5fb216fe7c7e161
[ghc-hetmet.git] / utils / genapply / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
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
10 #
11 # -----------------------------------------------------------------------------
12
13 utils/genapply_dist_MODULES = GenApply
14 utils/genapply_dist_PROG    = $(GHC_GENAPPLY_PGM)
15
16 ifeq "$(ghc_ge_607)" "YES"
17 utils/genapply_HC_OPTS += -package pretty
18 endif
19
20 ifeq "$(GhcUnregisterised)" "YES"
21 utils/genapply_HC_OPTS += -DNO_REGS
22 endif
23
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
27
28 $(eval $(call build-prog,utils/genapply,dist,0))