X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=utils%2Fgenapply%2FMakefile;fp=utils%2Fgenapply%2FMakefile;h=f9a10a22de117167427ac6e742b56548ccd14235;hp=0000000000000000000000000000000000000000;hb=0065d5ab628975892cea1ec7303f968c3338cbe1;hpb=28a464a75e14cece5db40f2765a29348273ff2d2 diff --git a/utils/genapply/Makefile b/utils/genapply/Makefile new file mode 100644 index 0000000..f9a10a2 --- /dev/null +++ b/utils/genapply/Makefile @@ -0,0 +1,25 @@ +TOP=../.. +include $(TOP)/mk/boilerplate.mk + +HS_PROG = $(GHC_GENAPPLY_PGM) + +# genapply is needed to boot in rts/... +ifneq "$(BootingFromHc)" "YES" +boot :: all +endif + +ifeq "$(ghc_ge_504)" "NO" +SRC_HC_OPTS += -package lang -package util -package text +endif + +ifeq "$(GhcUnregisterised)" "YES" +SRC_HC_OPTS += -DNO_REGS +endif + +# Try to get dependencies right... +SRC_HC_OPTS += -no-recomp +GenApply.o : $(GHC_INCLUDE_DIR)/ghcconfig.h +GenApply.o : $(GHC_INCLUDE_DIR)/MachRegs.h +GenApply.o : $(GHC_INCLUDE_DIR)/Constants.h + +include $(TOP)/mk/target.mk