提交 5ee6def4 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Makefile: add more logs

上级 6262224c
......@@ -103,34 +103,35 @@ all: $(APP_NAME)
# LFLAGS, etc. LINK.cc is usually defined as: $(CXX) $(CXXFLAGS) $(CPPFLAGS)
# $(LDFLAGS) $(TARGET_ARCH).
$(APP_NAME): check_pkg_libs echo_all_objs $(ALL_OBJS)
@mkdir -p $(APP_BIN_DIR)
@echo "INFO: linking .o objects and libraries into $(APP_BIN_DIR)/$(APP_NAME) ..."
@ mkdir -p $(APP_BIN_DIR)
@ echo "INFO: linking .o objects and libraries into $(APP_BIN_DIR)/$(APP_NAME) ..."
$(LINK.cc) $(ALL_OBJS) $(DEP_LIBS) -o $(APP_BIN_DIR)/$(APP_NAME)
@ echo "INFO: executable generated at $(APP_BIN_DIR)/$(APP_NAME)"
# Check required libraries with pkg-support.
check_pkg_libs:
@echo "INFO: checking required PKG libraries ..."
@pkg-config --exists --print-errors "$(PKG_LIBS)"
@ echo "INFO: checking required PKG libraries ($(strip $(PKG_LIBS))) ..."
@ pkg-config --exists --print-errors "$(PKG_LIBS)"
echo_all_objs:
@echo "INFO: compiling source files into .o object files ..."
@ echo "INFO: compiling source files into .o object files ..."
# This target removes the built app and the generated object files. The @ symbol
# indicates that the line should be run silently, and the - symbol indicates that
# errors should be ignored (i.e., the file doesn't exist).
clean:
@echo "INFO: deleting $(APP_BIN_DIR) folder ..."
@$(RM) -rf $(APP_BIN_DIR)
@echo "INFO: deleting .o object files ..."
@$(RM) $(ALL_OBJS)
@ echo "INFO: deleting $(APP_BIN_DIR) folder ..."
@ $(RM) -rf $(APP_BIN_DIR)
@ echo "INFO: deleting .o object files ..."
@ $(RM) $(ALL_OBJS)
deps:
@echo "INFO: retrieving Git submodules ..."
@ echo "INFO: retrieving Git submodules ..."
git submodule init
git submodule update
@echo "INFO: building jsoncpp stuff ..."
@ echo "INFO: building jsoncpp stuff ..."
cd ./deps/jsoncpp && python amalgamate.py >/dev/null
doc:
@echo "INFO: generating documentation ..."
@ echo "INFO: generating documentation ..."
cldoc generate $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -- --output cldoc $(APP_SOURCES) $(APP_HEADERS)
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论