-# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.7 2001/08/08 13:21:04 qrczak Exp $
-
TOP=../..
include $(TOP)/mk/boilerplate.mk
-HS_PROG = genprimopcode
-SRC_HC_OPTS += -syslib text
+HS_PROG = genprimopcode
+
+ifeq "$(ghc_ge_504)" "NO"
+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...
ifneq "$(BootingFromHc)" "YES"