X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fgenprimopcode%2FMakefile;h=753fd945239ecf1bf59819d73de872891bf92426;hb=50027272414438955dbc41696541cbd25da55883;hp=ee1d6735b8392ba69678d8841a6610f4a8cbdf4e;hpb=28ba2356d41300c2f78c5620d09a8e9ca8f03701;p=ghc-hetmet.git diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index ee1d673..753fd94 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,22 +1,15 @@ +# ----------------------------------------------------------------------------- +# $Id: Makefile,v 1.5 2001/03/23 16:36:22 simonmar Exp $ + TOP=../.. include $(TOP)/mk/boilerplate.mk -INSTALL_PROGS += genprimopcode - -SRC_HC_OPTS += -syslib text -OBJS = Main.o - -CLEAN_FILES += genprimopcode +HS_PROG = genprimopcode +SRC_HC_OPTS += -syslib text # genprimopcode is needed to boot in ghc/compiler... +ifneq "$(BootingFromHc)" "YES" boot :: all - -all :: genprimopcode - -genprimopcode: Main.o - $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS) - -CLEAN_FILES += genprimopcode -CLEAN_FILES += $(OBJS) +endif include $(TOP)/mk/target.mk