[project @ 1998-04-16 12:35:35 by sof]
[ghc-hetmet.git] / ghc / mk / target.mk
1 #
2 # target.mk project stub
3 #
4
5 # We need to set TOP to be the TOP that the next level up expects!
6 # The TOP variable is reset after the inclusion of the fptools
7 # boilerplate, so we stash TOP away first:
8 GHC_TOP := $(TOP)
9 TOP:=$(TOP)/..
10
11 # When booting from .hc files, remove the suffix rule for 
12 # .l?hs -> .o, so that the .hc -> .o is used instead.
13 # Also disable the generation of the .hc files, even if
14 # the .l?hs files are newer than the .hc ones.
15 ifeq "$(GhcWithHscBuiltViaC)" "YES"
16 %.$(way_)o  : %.lhs
17 %.$(way_)o  : %.hs
18 %.$(way_)hc : %.lhs
19 %.$(way_)hc : %.hs
20 endif
21
22 include $(TOP)/mk/target.mk
23
24 # Reset TOP
25 TOP:=$(GHC_TOP)