]> git.sesse.net Git - movit/commitdiff
Fix dependencies for .lo files.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 11 Mar 2014 00:38:05 +0000 (01:38 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 11 Mar 2014 00:38:05 +0000 (01:38 +0100)
Dependencies were unfortunately de-facto broken after introduction of libtool,
causing much head scratching. Now fixed.

Makefile.in

index 3a1674b5e2ec6beae582eaebf2a1addbf2734952..f531c3bf9d57f19c6cf2a89619fe706a785953f0 100644 (file)
@@ -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: