summaryrefslogtreecommitdiff
path: root/utils/genapply/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/genapply/Makefile')
-rw-r--r--utils/genapply/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/genapply/Makefile b/utils/genapply/Makefile
new file mode 100644
index 0000000000..f9a10a22de
--- /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