22 lines
370 B
Makefile
22 lines
370 B
Makefile
BUILD_DIR = build
|
|
|
|
.PHONY: all debug release clean run/debug run/release
|
|
|
|
all: debug
|
|
|
|
debug:
|
|
cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Debug
|
|
cmake --build $(BUILD_DIR)
|
|
|
|
release:
|
|
cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build $(BUILD_DIR)
|
|
|
|
run/debug: debug
|
|
./$(BUILD_DIR)/proyecto
|
|
|
|
run/release: release
|
|
./$(BUILD_DIR)/proyecto
|
|
|
|
clean:
|
|
rm -rf build
|