projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-08-05 07:25:56 by panne]
[ghc-hetmet.git]
/
ghc
/
utils
/
genprimopcode
/
Makefile
diff --git
a/ghc/utils/genprimopcode/Makefile
b/ghc/utils/genprimopcode/Makefile
index
8c3da0f
..
2b1ecd9
100644
(file)
--- 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
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...
endif
# genprimopcode is needed to boot in ghc/compiler...