X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fgenprimopcode%2FMakefile;h=8c3da0f2fa7b8e508eeaf8b46dca58c5180919f0;hb=be5d16a57c438741128b4d69d6ea8a8edc941560;hp=3d9dbcd5eaf0488656c4c60677f26a476a6ba92e;hpb=5251afef4b87cace5160159fd2c699c194174745;p=ghc-hetmet.git diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index 3d9dbcd..8c3da0f 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,13 +1,20 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.4 2000/12/30 20:42:03 panne 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 + +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" boot :: all +endif include $(TOP)/mk/target.mk