зеркало из https://github.com/microsoft/caffe.git
makefile hotfix
This commit is contained in:
Родитель
e5f72b7910
Коммит
1679815f67
22
Makefile
22
Makefile
|
@ -385,14 +385,14 @@ $(STATIC_NAME): $(PROTO_OBJS) $(OBJS) | $(LIB_BUILD_DIR)
|
|||
$(TEST_BUILD_DIR)/%.o: src/$(PROJECT)/test/%.cpp $(HXX_SRCS) $(TEST_HDRS) \
|
||||
| $(TEST_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(TEST_BUILD_DIR)/%.cuo: src/$(PROJECT)/test/%.cu $(HXX_SRCS) $(TEST_HDRS) \
|
||||
| $(TEST_BUILD_DIR)
|
||||
$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
|
@ -425,58 +425,58 @@ $(EXAMPLE_BINS): %.bin : %.o $(STATIC_NAME)
|
|||
$(LAYER_BUILD_DIR)/%.o: src/$(PROJECT)/layers/%.cpp $(HXX_SRCS) \
|
||||
| $(LAYER_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(PROTO_BUILD_DIR)/%.pb.o: $(PROTO_BUILD_DIR)/%.pb.cc $(PROTO_GEN_HEADER) \
|
||||
| $(PROTO_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(UTIL_BUILD_DIR)/%.o: src/$(PROJECT)/util/%.cpp $(HXX_SRCS) | $(UTIL_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(GTEST_OBJ): $(GTEST_SRC) | $(GTEST_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(LAYER_BUILD_DIR)/%.cuo: src/$(PROJECT)/layers/%.cu $(HXX_SRCS) \
|
||||
| $(LAYER_BUILD_DIR)
|
||||
$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(UTIL_BUILD_DIR)/%.cuo: src/$(PROJECT)/util/%.cu | $(UTIL_BUILD_DIR)
|
||||
$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(TOOL_BUILD_DIR)/%.o: tools/%.cpp $(PROTO_GEN_HEADER) | $(TOOL_BUILD_DIR)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(EXAMPLE_BUILD_DIR)/%.o: examples/%.cpp $(PROTO_GEN_HEADER) \
|
||||
| $(EXAMPLE_BUILD_DIRS)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
$(BUILD_DIR)/src/$(PROJECT)/%.o: src/$(PROJECT)/%.cpp $(HXX_SRCS)
|
||||
$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \
|
||||
|| cat $@.$(WARNS_EXT); exit 1
|
||||
|| (cat $@.$(WARNS_EXT); exit 1)
|
||||
@ cat $@.$(WARNS_EXT)
|
||||
@ echo
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче