HS_PROG = $(GHC_GENAPPLY_PGM)
-SRC_HC_OPTS += -I$(GHC_INCLUDE_DIR)
-
# genapply is needed to boot in ghc/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
+
include $(TOP)/mk/target.mk