[project @ 2005-11-25 13:56:16 by simonmar]
[ghc-hetmet.git] / ghc / utils / genprimopcode / Makefile
index 8c3da0f..dbd69f6 100644 (file)
@@ -1,15 +1,14 @@
-# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $
-
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-HS_PROG        = genprimopcode
-
-ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
+HS_PROG = genprimopcode
 
 ifeq "$(ghc_ge_504)" "NO"
-SRC_HC_OPTS +=  -package text
+SRC_HC_OPTS += -package text
+endif
+
+ifeq "$(ghc_ge_602)" "YES"
+SRC_HC_OPTS += -package parsec
 endif
 
 # genprimopcode is needed to boot in ghc/compiler...