From: panne Date: Tue, 5 Aug 2003 07:25:56 +0000 (+0000) Subject: [project @ 2003-08-05 07:25:56 by panne] X-Git-Tag: Approx_11550_changesets_converted~598 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=90af5e7b48c2f0ec74891c1399d46781d078484a;p=ghc-hetmet.git [project @ 2003-08-05 07:25:56 by panne] * Unbreak bootstrapping with GHC >= 6.1 * Nuked CVS keywords, you'll hate them when merging... --- 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...