anthracite/src/Makefile
Nicholas Orlowsky 3dddee43f7
version 0.2.0
2023-10-20 12:46:30 -04:00

32 lines
578 B
Makefile

.PHONY: format lint build build-release build-docker run debug
build:
cd ./build && ./version.sh && python3 ./error_gen.py
g++ main.cpp --std=c++20 -g -o ./anthracite
build-release:
g++ main.cpp --std=c++20 -O3 -march=native -o ./anthracite
build-docker:
docker build . -t anthracite
run: build
./anthracite 8080
run-test: build
./anthracite 8080 ./test_www
debug: build
gdb --args ./anthracite 8080
debug-test: build
gdb --args ./anthracite 8080 ./test_www
format:
clang-format *.cpp -i
lint:
clang-tidy *.cpp
lint-fix:
clang-tidy *.cpp -fix -fix-errors