Reorganisation of the source tree
[ghc-hetmet.git] / utils / genprimopcode / Makefile
diff --git a/utils/genprimopcode/Makefile b/utils/genprimopcode/Makefile
new file mode 100644 (file)
index 0000000..dbd69f6
--- /dev/null
@@ -0,0 +1,19 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+
+HS_PROG = genprimopcode
+
+ifeq "$(ghc_ge_504)" "NO"
+SRC_HC_OPTS += -package text
+endif
+
+ifeq "$(ghc_ge_602)" "YES"
+SRC_HC_OPTS += -package parsec
+endif
+
+# genprimopcode is needed to boot in ghc/compiler...
+ifneq "$(BootingFromHc)" "YES"
+boot :: all
+endif
+
+include $(TOP)/mk/target.mk