1 Star 0 Fork 0

老王/librdkafka

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
LIBSUBDIRS= src src-cpp
CHECK_FILES+= CONFIGURATION.md \
examples/rdkafka_example examples/rdkafka_performance \
examples/rdkafka_example_cpp
PACKAGE_NAME?= librdkafka
VERSION?= $(shell python packaging/get_version.py src/rdkafka.h)
# Jenkins CI integration
BUILD_NUMBER ?= 1
# Skip copyright check in the following paths
MKL_COPYRIGHT_SKIP?=^(tests|packaging)
.PHONY:
all: mklove-check libs CONFIGURATION.md check
include mklove/Makefile.base
libs:
@(for d in $(LIBSUBDIRS); do $(MAKE) -C $$d || exit $?; done)
CONFIGURATION.md: src/rdkafka.h examples
@printf "$(MKL_YELLOW)Updating$(MKL_CLR_RESET)\n"
@echo "# Configuration properties" > CONFIGURATION.md.tmp
@(examples/rdkafka_performance -X list | \
sed 's/||/\\|\\|/g' >> \
CONFIGURATION.md.tmp; \
cmp CONFIGURATION.md CONFIGURATION.md.tmp || \
mv CONFIGURATION.md.tmp CONFIGURATION.md; \
rm -f CONFIGURATION.md.tmp)
file-check: CONFIGURATION.md LICENSES.txt examples
check: file-check
@(for d in $(LIBSUBDIRS); do $(MAKE) -C $$d $@ || exit $?; done)
install uninstall:
@(for d in $(LIBSUBDIRS); do $(MAKE) -C $$d $@ || exit $?; done)
examples tests: .PHONY libs
$(MAKE) -C $@
docs:
doxygen Doxyfile
@echo "Documentation generated in staging-docs"
clean-docs:
rm -rf staging-docs
clean:
@$(MAKE) -C tests $@
@$(MAKE) -C examples $@
@(for d in $(LIBSUBDIRS); do $(MAKE) -C $$d $@ ; done)
distclean: clean deps-clean
./configure --clean
rm -f config.log config.log.old
archive:
git archive --prefix=$(PACKAGE_NAME)-$(VERSION)/ \
-o $(PACKAGE_NAME)-$(VERSION).tar.gz HEAD
git archive --prefix=$(PACKAGE_NAME)-$(VERSION)/ \
-o $(PACKAGE_NAME)-$(VERSION).zip HEAD
rpm: distclean
$(MAKE) -C packaging/rpm
LICENSES.txt: .PHONY
@(for i in LICENSE LICENSE.*[^~] ; do (echo "$$i" ; echo "--------------------------------------------------------------" ; cat $$i ; echo "" ; echo "") ; done) > $@.tmp
@cmp $@ $@.tmp || mv $@.tmp $@ ; rm -f $@.tmp
coverity: Makefile.config
@(which cov-build >/dev/null 2>&1 || echo "Make sure coverity../bin is in your PATH")
@(cd src && \
make clean && \
(rm -rf cov-int cov-librdkafka.tgz cov-build || true) && \
cov-build --dir cov-int make -j && \
tar cvzf ../cov-librdkafka.tgz cov-int && \
printf "$(MKL_GREEN)Now upload cov-librdkafka.tgz to Coverity for analysis$(MKL_CLR_RESET)\n")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hsq168/librdkafka.git
git@gitee.com:hsq168/librdkafka.git
hsq168
librdkafka
librdkafka
master

搜索帮助