[project @ 2003-08-05 07:25:56 by panne]
authorpanne <unknown>
Tue, 5 Aug 2003 07:25:56 +0000 (07:25 +0000)
committerpanne <unknown>
Tue, 5 Aug 2003 07:25:56 +0000 (07:25 +0000)
* Unbreak bootstrapping with GHC >= 6.1
* Nuked CVS keywords, you'll hate them when merging...

ghc/utils/genprimopcode/Makefile

index 8c3da0f..2b1ecd9 100644 (file)
@@ -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...