X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fgenprimopcode%2FMakefile;fp=ghc%2Futils%2Fgenprimopcode%2FMakefile;h=2b1ecd9ad64d835604622c329e4b87309fce19c1;hb=90af5e7b48c2f0ec74891c1399d46781d078484a;hp=8c3da0f2fa7b8e508eeaf8b46dca58c5180919f0;hpb=3786579bb1285a655ad0cbdf28ec443a2dfb7acc;p=ghc-hetmet.git diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index 8c3da0f..2b1ecd9 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,15 +1,16 @@ -# ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $ - TOP=../.. include $(TOP)/mk/boilerplate.mk -HS_PROG = genprimopcode +HS_PROG = genprimopcode -ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) +ghc_lt_504 = $(shell if (test $(GhcCanonVersion) -lt 504); then echo YES; else echo NO; fi) +ifeq "$(ghc_lt_504)" "YES" +SRC_HC_OPTS += -package text +endif -ifeq "$(ghc_ge_504)" "NO" -SRC_HC_OPTS += -package text +ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi) +ifeq "$(ghc_ge_601)" "YES" +SRC_HC_OPTS += -package parsec endif # genprimopcode is needed to boot in ghc/compiler...