Add a header to all build system files:
[ghc.git] / rules / way-prelims.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 define way-prelims # $1 = way
14 ifeq "$1" "v"
15 $1__way =
16 $1_way_ =
17 else
18 $1__way = _$1
19 $1_way_ = $1_
20 endif
21 $1_osuf = $$($1_way_)o
22 $1_hisuf = $$($1_way_)hi
23 $1_hcsuf = $$($1_way_)hc
24 endef