diff --git a/servant/makefile/makefile.tars b/servant/makefile/makefile.tars index b99a82d..79b18b0 100644 --- a/servant/makefile/makefile.tars +++ b/servant/makefile/makefile.tars @@ -199,6 +199,14 @@ help: #---------------------------------------------------------------------------------- +.%.d: %.cc + @echo "update $@ ..."; \ + echo -n $< | sed s/\.cc/\.o:/ > $@; \ + $(CXX) $(CFLAGS) $(INCLUDE) -MM $< | sed '1s/.*.://' >> $@; + +%.o: %.cc + $(CXX) $(CFLAGS) $(INCLUDE) -o $@ -c $< + .%.d: %.cpp @echo "update $@ ..."; \ echo -n $< | sed s/\.cpp/\.o:/ > $@; \ diff --git a/tools/pb2tarscpp/CMakeLists.txt b/tools/pb2tarscpp/CMakeLists.txt index b3cfc5b..5a5e1b2 100644 --- a/tools/pb2tarscpp/CMakeLists.txt +++ b/tools/pb2tarscpp/CMakeLists.txt @@ -4,7 +4,7 @@ set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin") aux_source_directory(. DIR_SRCS) -link_libraries(protobuf;protoc) +link_libraries(protobuf;protoc;pthread) add_executable("pb2tarscpp" ${DIR_SRCS})