summaryrefslogtreecommitdiff
path: root/utils/genapply/ghc.mk
blob: 5721c9069a8e38ef163a41369b49d93701626de4 (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
29
30
# -----------------------------------------------------------------------------
#
# (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
#      https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture
#      https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying
#
# -----------------------------------------------------------------------------

utils/genapply_USES_CABAL           = YES
utils/genapply_PACKAGE              = genapply
utils/genapply_dist_PROGNAME        = genapply
utils/genapply_dist_INSTALL         = NO
utils/genapply_dist_INSTALL_INPLACE = YES

utils/dist/package-data.mk : $(includes_1_H_PLATFORM)
utils/dist/package-data.mk : $(includes_1_H_CONFIG)

ifeq "$(GhcUnregisterised)" "YES"
utils/genapply_CONFIGURE_OPTS = --flag unregisterised
endif

$(eval $(call build-prog,utils/genapply,dist,0))

# Purposely do the wrong stage for HOST := TARGET hack.
# See Note [Genapply target as host for RTS macros].
utils/genapply_dist_CC_OPTS += $(addprefix -Irts/include,$(includes_dist-install_DIST_INCLUDE_DIRS))