X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Futils%2Fgenprimopcode%2FMakefile;h=8c3da0f2fa7b8e508eeaf8b46dca58c5180919f0;hb=9e6162f9d0102d1f5738bf78258b24ea5a647ea4;hp=30f9362b4fdba8b71a8c341c8f624a6eeb48858b;hpb=0d84f3fa4600fbbc7cd18f27bd0ded0f3400863c;p=ghc-hetmet.git diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index 30f9362..8c3da0f 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,13 +1,16 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.6 2001/08/01 20:37:00 qrczak Exp $ +# $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $ TOP=../.. include $(TOP)/mk/boilerplate.mk HS_PROG = genprimopcode -SRC_HC_OPTS += -syslib text -# TODO: remove -H80M when the strictness analyser is working again. -Main_HC_OPTS = -H80M + +ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) + +ifeq "$(ghc_ge_504)" "NO" +SRC_HC_OPTS += -package text +endif # genprimopcode is needed to boot in ghc/compiler... ifneq "$(BootingFromHc)" "YES"