update makefile
This commit is contained in:
parent
14535b7f86
commit
4b2b56dd79
28
Makefile
28
Makefile
@ -1,9 +1,31 @@
|
|||||||
.PHONY: all clean build makefsdata
|
.PHONY: all clean build release debug
|
||||||
|
|
||||||
|
MAKEFLAGS := --jobs=$(shell nproc)
|
||||||
|
|
||||||
all: clean build
|
all: clean build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C build/ clean
|
@ $(MAKE) -C build/ clean
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(MAKE) -C build/
|
@ $(MAKE) -C build/
|
||||||
|
|
||||||
|
release:
|
||||||
|
@ 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:
|
||||||
|
@ 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
|
Loading…
Reference in New Issue
Block a user