summaryrefslogtreecommitdiff
path: root/mk/elftoolchain.m4.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/elftoolchain.m4.mk')
-rw-r--r--mk/elftoolchain.m4.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/mk/elftoolchain.m4.mk b/mk/elftoolchain.m4.mk
new file mode 100644
index 0000000000000..0523814259b13
--- /dev/null
+++ b/mk/elftoolchain.m4.mk
@@ -0,0 +1,14 @@
+#
+# $Id: elftoolchain.m4.mk 2795 2012-12-19 12:39:09Z jkoshy $
+#
+
+# Implicit rules for the M4 pre-processor.
+
+.if !defined(TOP)
+.error Make variable \"TOP\" has not been defined.
+.endif
+
+.SUFFIXES: .m4 .c
+.m4.c:
+ m4 -D SRCDIR=${.CURDIR} ${M4FLAGS} ${.IMPSRC} > ${.TARGET}
+