nshell/makefile

25 lines
558 B
Makefile
Raw Normal View History

FXSDK_PREFIX = ${HOME}/.local
2021-10-04 19:36:59 +02:00
FXSDK_INSTALL_PATH = ${FXSDK_PREFIX}/lib/cmake/fxsdk
all: configure build send
rebuild: clean build
tidy: format
configure:
cmake \
2021-10-04 19:52:59 +02:00
-B build \
2021-10-04 19:36:59 +02:00
-DCMAKE_MODULE_PATH=${FXSDK_INSTALL_PATH} \
-DCMAKE_TOOLCHAIN_FILE=${FXSDK_INSTALL_PATH}/FXCG50.cmake \
-DFXSDK_CMAKE_MODULE_PATH=${FXSDK_INSTALL_PATH}
2021-10-04 19:36:59 +02:00
build: configure
2021-10-04 19:52:59 +02:00
cmake --build build
send:
2021-08-31 15:52:53 +02:00
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 {} \;