* Try to have autodeps work under windows
This commit is contained in:
jean.chalard
2009-01-06 11:41:38 +00:00
parent 2071d09ae6
commit d212ef3d7a

View File

@@ -81,9 +81,6 @@ $(OBJS): objs/%.o: src/%.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $<
$(DEPS): deps/%.d: src/%.cpp
@set -e; $(RM) $@; \
$(CXX) -MM $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,objs/\1.o $@ : ,g' < $@.$$$$ > $@; \
$(RM) $@.$$$$
$(CXX) -MM $(CXXFLAGS) -MQ $(patsubst deps/%.d, objs/%.o, $(@)) -MQ $@ $< > $@
include $(DEPS)