X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fgenprimopcode%2FMakefile;h=753fd945239ecf1bf59819d73de872891bf92426;hb=50027272414438955dbc41696541cbd25da55883;hp=50c363b2aa84151d1e162da47be2cd468728d0b4;hpb=ef7cf7b03cbb7174bcd8cc52c4a780999ad9c935;p=ghc-hetmet.git diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index 50c363b..753fd94 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,19 +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 - -all :: genprimopcode - -genprimopcode: Main.o - $(HC) -o $@ $(HC_OPTS) $(LD_OPTS) $(OBJS) +HS_PROG = genprimopcode +SRC_HC_OPTS += -syslib text -CLEAN_FILES += genprimopcode -CLEAN_FILES += $(OBJS) +# genprimopcode is needed to boot in ghc/compiler... +ifneq "$(BootingFromHc)" "YES" +boot :: all +endif include $(TOP)/mk/target.mk