[project @ 2005-03-10 14:03:28 by simonmar]
[ghc-hetmet.git] / ghc / utils / genapply / Makefile
index c15b745..1b54fe5 100644 (file)
@@ -3,11 +3,17 @@ include $(TOP)/mk/boilerplate.mk
 
 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