anthracite/src/Makefile

35 lines
637 B
Makefile
Raw Normal View History

2023-09-07 23:33:22 +00:00
.PHONY: format lint build build-release build-docker run debug
2023-09-06 20:44:29 +00:00
2023-10-20 16:51:01 +00:00
build-supplemental:
2023-10-20 16:46:30 +00:00
cd ./build && ./version.sh && python3 ./error_gen.py
2023-10-20 16:51:01 +00:00
build: build-supplemental
2023-10-20 04:27:35 +00:00
g++ main.cpp --std=c++20 -g -o ./anthracite
2023-09-06 20:44:29 +00:00
2023-10-20 16:51:01 +00:00
build-release: build-supplemental
2023-10-20 04:27:35 +00:00
g++ main.cpp --std=c++20 -O3 -march=native -o ./anthracite
2023-09-06 20:44:29 +00:00
build-docker:
docker build . -t anthracite
run: build
2023-09-07 23:33:22 +00:00
./anthracite 8080
2023-10-17 17:16:31 +00:00
run-test: build
./anthracite 8080 ./test_www
2023-09-07 23:33:22 +00:00
debug: build
gdb --args ./anthracite 8080
2023-09-06 20:44:29 +00:00
2023-10-20 16:46:30 +00:00
debug-test: build
gdb --args ./anthracite 8080 ./test_www
2023-09-06 20:44:29 +00:00
format:
clang-format *.cpp -i
2023-09-07 23:33:22 +00:00
lint:
clang-tidy *.cpp
lint-fix:
clang-tidy *.cpp -fix -fix-errors