ferx/Makefile

25 lines
417 B
Makefile
Raw Normal View History

2024-04-11 13:37:03 +00:00
BUILD_DIR = build
2024-07-29 15:59:40 +00:00
EDITOR_DIR = editor
NAME = ferx
2024-04-11 13:37:03 +00:00
RM += -r
all: debug run
release:
cmake -S . -B $(BUILD_DIR) -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build $(BUILD_DIR) -j8
debug:
cmake -S . -B $(BUILD_DIR) -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build $(BUILD_DIR) -j8
2024-04-11 13:37:03 +00:00
run:
2024-07-29 15:59:40 +00:00
cd $(BUILD_DIR)/${EDITOR_DIR} && ./${NAME}
2024-04-11 13:37:03 +00:00
clean:
cmake --build $(BUILD_DIR) --target clean
clean-all:
$(RM) $(BUILD_DIR)