mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
begin adding some metrics to tcp-proxy
This commit is contained in:
parent
0fb9d43998
commit
342657e629
4 changed files with 67 additions and 6 deletions
|
@ -1,9 +1,14 @@
|
|||
CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)
|
||||
|
||||
INCLUDES?=-I../ext/prometheus-cpp-lite-1.0/core/include -I../ext/prometheus-cpp-lite-1.0/simpleapi/include
|
||||
INCLUDES?=-isystem ../ext/prometheus-cpp-lite-1.0/core/include -isystem ../ext/prometheus-cpp-lite-1.0/simpleapi/include
|
||||
|
||||
all:
|
||||
$(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++11 -pthread -frtti -o tcp-proxy tcp-proxy.cpp ../node/Metrics.cpp
|
||||
OBJS=Metrics.o \
|
||||
../node/Metrics.o
|
||||
|
||||
CXXFLAGS=-O3 -fno-rtti $(INCLUDES) -std=c++17 -pthread -frtti
|
||||
|
||||
all: $(OBJS) tcp-proxy.o
|
||||
$(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++17 -pthread -frtti -o tcp-proxy tcp-proxy.o $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f *.o tcp-proxy *.dSYM
|
||||
rm -f $(OBJS) tcp-proxy.o tcp-proxy *.dSYM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue