From 3dbd9f5f84f7929a14d5ea455f134b14df900cb2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 11 Mar 2014 01:38:05 +0100 Subject: [PATCH 1/1] Fix dependencies for .lo files. Dependencies were unfortunately de-facto broken after introduction of libtool, causing much head scratching. Now fixed. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 3a1674b..f531c3b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -101,10 +101,11 @@ libmovit.la: $(LIB_OBJS:.o=.lo) %.lo: %.cpp $(LIBTOOL) --mode=compile $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< + sed 's/\.o:/\.lo:/' < $(@:.lo=.d) > $(@:.lo=.ld) %.o: %.cpp $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< -DEPS=$(OBJS:.o=.d) +DEPS=$(OBJS:.o=.d) $(OBJS:.o=.ld) -include $(DEPS) clean: -- 2.39.2