ferx/scripts/Makefile

35 lines
765 B
Makefile
Raw Normal View History

DEBUG_BUILD_DIR = build-debug
RELEASE_BUILD_DIR = build-release
2024-11-22 00:56:31 +00:00
EDITOR_DIR = editor
NAME = ferx
RM += -r
all: build-debug run-debug
2024-11-22 00:56:31 +00:00
build-release:
cmake -S .. -B ../$(RELEASE_BUILD_DIR) -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build ../$(RELEASE_BUILD_DIR) -j8
2024-11-22 00:56:31 +00:00
build-debug:
cmake -S .. -B ../$(DEBUG_BUILD_DIR) -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build ../$(DEBUG_BUILD_DIR) -j8
2024-11-22 00:56:31 +00:00
run-release:
cd ../$(RELEASE_BUILD_DIR)/${EDITOR_DIR} && ./${NAME}
2024-11-22 00:56:31 +00:00
run-debug:
cd ../$(DEBUG_BUILD_DIR)/${EDITOR_DIR} && ./${NAME}
clean-release:
cmake --build ../$(RELEASE_BUILD_DIR) --target clean
2024-11-22 00:56:31 +00:00
clean-debug:
cmake --build ../$(DEBUG_BUILD_DIR) --target clean
clean-release-all:
$(RM) ../$(RELEASE_BUILD_DIR)
clean-debug-all:
$(RM) ../$(DEBUG_BUILD_DIR)