remove "fxsdk build" command dependency

This commit is contained in:
Babz 2021-10-04 19:20:53 +02:00
parent 8b557551bf
commit 52f85576d2
2 changed files with 18 additions and 11 deletions

View File

@ -1,6 +1,3 @@
# Configure with [fxsdk build-fx] or [fxsdk build-cg], which provide the
# toolchain file and module path of the fxSDK
cmake_minimum_required(VERSION 3.18)
# replace this with your project's name
project(unshell C ASM)

View File

@ -1,14 +1,24 @@
all:
fxsdk build-cg
FXSDK_PREFIX = ${HOME}/.local
all: configure build send
rebuild: clean build
tidy: format
configure:
cmake \
-B build-cg \
-DCMAKE_MODULE_PATH=${FXSDK_PREFIX}/lib/cmake/fxsdk \
-DCMAKE_TOOLCHAIN_FILE=${FXSDK_PREFIX}/lib/cmake/fxsdk/FXCG50.cmake \
-DFXSDK_CMAKE_MODULE_PATH=${FXSDK_PREFIX}/lib/cmake/fxsdk
build:
cmake --build build-cg
send:
fxlink -s -w60 -f 'mass_storage;series_cg' *.g3a
clean:
rm -rf *.g1a *.g3a build/ build-fx/ build-cg/
format:
find src/ -name *.[c,h] -exec clang-format --verbose -i {} \;
# aliases
build: all
rebuild: clean build
tidy: format
find src/ -name *.[c,h] -exec clang-format --verbose -i {} \;