26 lines
369 B
Makefile
26 lines
369 B
Makefile
|
|
BUILD_DIR=_build
|
|
|
|
all: build
|
|
|
|
$(BUILD_DIR):
|
|
mkdir -p $(BUILD_DIR)
|
|
cmake -S . -B _build -D CMAKE_BUILD_TYPE=Debug
|
|
|
|
build: | $(BUILD_DIR)
|
|
cmake --build _build
|
|
|
|
debug: | $(BUILD_DIR)
|
|
gdb _build/igmpgen
|
|
|
|
run: | $(BUILD_DIR)
|
|
_build/igmpgen
|
|
|
|
install: | $(BUILD_DIR)
|
|
cmake --install _build
|
|
|
|
package: | $(BUILD_DIR)
|
|
make -C _build package
|
|
|
|
clean:
|
|
rm -fr $(BUILD_DIR)
|