22 lines
300 B
Makefile
22 lines
300 B
Makefile
# Compiler and flags
|
|
CXX = g++
|
|
CXXFLAGS = -std=c++17 -Wall -Wextra
|
|
|
|
# Source files and target executable
|
|
|
|
# Build target
|
|
all: clean build
|
|
|
|
build:
|
|
mkdir build
|
|
cd build && cmake .. && make
|
|
|
|
# Clean up build artifacts
|
|
clean:
|
|
rm -rf build
|
|
|
|
install: build
|
|
cd build && make install
|
|
|
|
|
|
.PHONY: all clean
|