stlink/Makefile

59 wiersze
1.3 KiB
Makefile
Czysty Zwykły widok Historia

##
# This Makefile is used to drive building of Debug and Release targets of CMake
##
MAKEFLAGS += -s
all: release
ci: debug release binary test
help:
@echo " debug: Run a debug build"
@echo " release: Run a release build"
@echo " binary: Build Windows-Binary"
@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
@$(MAKE) -C build/Binary rebuild_cache
debug: build/Debug
@echo "[DEBUG]"
@$(MAKE) -C build/Debug
release: build/Release
@echo "[RELEASE]"
@$(MAKE) -C build/Release
binary: build/Binary
@echo "[BINARY]"
@$(MAKE) -C build/Binary
package: build/Release
@echo "[PACKAGE] Release"
@$(MAKE) -C build/Release package
test: debug
@$(MAKE) -C build/Debug test
build/Debug:
@mkdir -p $@
@cd $@ && cmake -DCMAKE_BUILD_TYPE=Debug $(CMAKEFLAGS) ../../
build/Release:
@mkdir -p $@
@cd $@ && cmake -Wno-dev -DCMAKE_BUILD_TYPE=Release $(CMAKEFLAGS) ../../
build/Binary:
@mkdir -p $@
@cd $@ && cmake -Wno-dev -DCMAKE_BUILD_TYPE=Binary $(CMAKEFLAGS) ../../
clean:
@echo "[CLEAN]"
@rm -Rf build
.PHONY: clean