2020-06-02 13:08:23 +02:00
|
|
|
CXX=g++
|
|
|
|
CXXFLAGS=-O2 -g -Wall -Wextra -std=c++17
|
|
|
|
CXXLIBS=
|
|
|
|
|
2020-06-05 16:14:49 +02:00
|
|
|
OBJS= \
|
|
|
|
UdpVpn.o UdpVpnClient.o UdpVpnServer.o \
|
|
|
|
VpnPeer.o \
|
2020-06-05 17:30:35 +02:00
|
|
|
VpnPacket.o \
|
2020-06-05 16:14:49 +02:00
|
|
|
TunDevice.o \
|
|
|
|
ip_header.o util.o main.o
|
2020-06-02 13:08:23 +02:00
|
|
|
TARGET=congestvpn
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CXX) $(CXXFLAGS) $(CXXLIBS) -o $@ $^
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|
|
|
|
|
|
|
|
.PHONY: all clean
|