[project @ 2003-08-05 07:25:56 by panne]
[ghc-hetmet.git] / ghc / utils / genprimopcode / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 HS_PROG = genprimopcode
5
6 ghc_lt_504 = $(shell if (test $(GhcCanonVersion) -lt 504); then echo YES; else echo NO; fi)
7 ifeq "$(ghc_lt_504)" "YES"
8 SRC_HC_OPTS += -package text
9 endif
10
11 ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
12 ifeq "$(ghc_ge_601)" "YES"
13 SRC_HC_OPTS += -package parsec
14 endif
15
16 # genprimopcode is needed to boot in ghc/compiler...
17 ifneq "$(BootingFromHc)" "YES"
18 boot :: all
19 endif
20
21 include $(TOP)/mk/target.mk