mirror of
https://github.com/zerotier/pylon.git
synced 2026-05-22 16:28:21 -07:00
56133bb8d2
for now, it just checks formatting
27 lines
1.1 KiB
Makefile
27 lines
1.1 KiB
Makefile
CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)
|
|
INCLUDES?=-Iext/libzt/ext/ZeroTierOne/osdep -Iext/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include -Iext/libzt/ext/ZeroTierOne/ext-prometheus-cpp-lite-1.0/3rdparty/http-client-lite/include -Iext/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/simpleapi/include
|
|
|
|
|
|
release:
|
|
git submodule update --init
|
|
git -C ext/libzt submodule update --init
|
|
cd ext/libzt && ./build.sh host "release"
|
|
$(CXX) -O3 $(INCLUDES) -Wno-deprecated -std=c++11 pylon.cpp -o pylon ext/libzt/dist/*-host-release/lib/libzt.a -Iext/libzt/include
|
|
|
|
debug:
|
|
git submodule update --init
|
|
git -C ext/libzt submodule update --init
|
|
cd ext/libzt && ./build.sh host "debug"
|
|
$(CXX) -O3 $(INCLUDES) -DPYLON_DEBUG=1 -g -Wno-deprecated -std=c++11 pylon.cpp -o pylon-debug ext/libzt/dist/*-host-debug/lib/libzt.a -Iext/libzt/include
|
|
#-fsanitize=address -DASAN_OPTIONS=symbolize=1
|
|
|
|
clean:
|
|
rm -rf pylon pylon-*
|
|
rm -f *.o tcp-proxy *.dSYM
|
|
|
|
lint:
|
|
clang-format -i pylon.cpp -style file --dry-run --Werror || (echo "\nPlease run make fmt and resubmit\n" && exit 1)
|
|
|
|
fmt:
|
|
clang-format -i pylon.cpp -style file
|