pico-bmc/Makefile

33 lines
745 B
Makefile
Raw Permalink Normal View History

2024-03-02 19:37:25 +00:00
.PHONY: all clean build release debug
MAKEFLAGS := --jobs=$(shell nproc)
2024-02-07 07:08:07 +00:00
all: clean build
2024-02-14 02:01:59 +00:00
clean:
2024-03-02 19:37:25 +00:00
@ $(MAKE) -C build/ clean
2024-02-14 02:01:59 +00:00
build:
2024-03-02 19:37:25 +00:00
@ $(MAKE) -C build/
release:
2024-04-29 22:32:12 +00:00
@ rm -rf build/*
2024-03-02 19:37:25 +00:00
@ cmake \
--no-warn-unused-cli \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \
-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-gcc \
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-g++ \
-S . \
-B build
debug:
2024-04-29 22:32:12 +00:00
@ rm -rf build/*
2024-03-02 19:37:25 +00:00
@ cmake \
--no-warn-unused-cli \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \
-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-gcc \
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-g++ \
-S . \
-B build