nostalgia/Makefile

40 lines
1.3 KiB
Makefile
Raw Normal View History

PROJECT_NAME=nostalgia
BUILDCORE_PATH=deps/buildcore
include ${BUILDCORE_PATH}/base.mk
2016-12-18 15:54:13 -06:00
2019-11-13 20:37:23 -06:00
ifeq ($(OS),darwin)
NOSTALGIA_STUDIO=./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/studio/nostalgia-studio.app/Contents/MacOS/nostalgia-studio
2019-12-30 22:51:35 -06:00
MGBA=/Applications/mGBA.app/Contents/MacOS/mGBA
2019-11-13 20:37:23 -06:00
else
NOSTALGIA_STUDIO=./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/studio/nostalgia-studio
2019-12-30 22:51:35 -06:00
MGBA=mgba-qt
2019-11-13 20:37:23 -06:00
endif
.PHONY: pkg-gba
2022-11-30 01:47:33 -06:00
pkg-gba: install
2020-06-20 05:27:03 -05:00
${ENV_RUN} ./scripts/pkg-gba sample_project
2016-12-23 18:06:27 -06:00
.PHONY: run
run: build
./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/player/nostalgia sample_project
.PHONY: run-studio
run-studio: build
${NOSTALGIA_STUDIO}
.PHONY: gba-run
gba-run: pkg-gba
2019-12-30 22:51:35 -06:00
${MGBA} nostalgia.gba
.PHONY: debug
debug: build
${DEBUGGER} ./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/player/nostalgia sample_project
.PHONY: debug-studio
debug-studio: build
${DEBUGGER} ${NOSTALGIA_STUDIO}
2016-12-23 18:06:27 -06:00
.PHONY: configure-gba
configure-gba:
${ENV_RUN} ${SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=release --build_root=${BUILD_PATH}
2016-12-24 13:06:44 -06:00
.PHONY: configure-gba-debug
configure-gba-debug:
${ENV_RUN} ${SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=debug --build_root=${BUILD_PATH}