[PATCH] Unbreak the .m.c rule

Adam Jackson ajax at redhat.com
Tue Feb 22 14:57:26 PST 2011


Some builds of gnu make apparently know how to go straight from .m to .o.
That's great if your .m file is Objective C source, but for us, it's not.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 xts5/common.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xts5/common.mk b/xts5/common.mk
index 52d0fd6..d36c25e 100644
--- a/xts5/common.mk
+++ b/xts5/common.mk
@@ -10,6 +10,10 @@ MC = $(top_builddir)/xts5/src/bin/mc/mc
 AM_V_MC = $(am__v_MC_$(V))
 am__v_MC_ = $(am__v_MC_$(AM_DEFAULT_VERBOSITY))
 am__v_MC_0 = @echo "  MC    " $@;
+
+# empty rules to turn off objc magic.  grr.
+%.o : %.m
+
 .m.c:
 	$(AM_V_MC)TET_ROOT='$(abs_top_srcdir)' $(MC) -o $@ $<
 .m_m.c:
-- 
1.7.4.1



More information about the xorg-devel mailing list