From: Steinar H. Gunderson Date: Tue, 11 Mar 2014 00:38:05 +0000 (+0100) Subject: Fix dependencies for .lo files. X-Git-Tag: 1.0~22 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=3dbd9f5f84f7929a14d5ea455f134b14df900cb2 Fix dependencies for .lo files. Dependencies were unfortunately de-facto broken after introduction of libtool, causing much head scratching. Now fixed. --- 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: