1 Star 0 Fork 0

SJQ_祺 / stlink

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
nightwalker-87 提交于 2020-05-18 18:34 . Updated build settings
##
# This Makefile is used to drive building of CMake build targets
##
MAKEFLAGS += -s
# additional flags for cmake, e.g. install path -DCMAKE_INSTALL_PREFIX=$(HOME)/.local
CMAKEFLAGS +=
all: release
ci: debug release test
help:
@echo " debug: Run a debug build"
@echo " release: Run a release build"
@echo " install: Install release build"
@echo " uninstall: Uninstall release build"
@echo " package: Package release build"
@echo " lint: Lint check all source-code"
@echo " test: Build and run tests"
@echo " clean: Clean all build output"
@echo "rebuild_cache: Rebuild all CMake caches"
rebuild_cache: build/Debug build/Release
@$(MAKE) -C build/Debug rebuild_cache
@$(MAKE) -C build/Release rebuild_cache
debug: build/Debug
@echo "[DEBUG]"
@$(MAKE) -C build/Debug
release: build/Release
@echo "[RELEASE]"
@$(MAKE) -C build/Release
install: build/Release
@echo "[INSTALL] Release"
@$(MAKE) -C build/Release install
uninstall: build/Release
@echo "[UNINSTALL] Release"
@$(MAKE) -C build/Release uninstall
package: build/Release
@echo "[PACKAGE] Release"
@$(MAKE) -C build/Release package
test: debug
@echo "[TEST] Debug"
@$(MAKE) -C build/Debug test
build/Debug:
@mkdir -p $@
@cd $@ && cmake -DCMAKE_BUILD_TYPE=Debug $(CMAKEFLAGS) ../../
build/Release:
@mkdir -p $@
@cd $@ && cmake -DCMAKE_BUILD_TYPE=Release $(CMAKEFLAGS) ../../
clean:
@echo "[CLEAN]"
@rm -Rf build
.PHONY: clean
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sujiaqi2008/stlink.git
git@gitee.com:sujiaqi2008/stlink.git
sujiaqi2008
stlink
stlink
testing

搜索帮助

344bd9b3 5694891 D2dac590 5694891