19 lines
289 B
Makefile
19 lines
289 B
Makefile
CXX=g++
|
|
CXXFLAGS=-O2 -g -Wall -Wextra -std=c++17
|
|
CXXLIBS=
|
|
|
|
OBJS=UdpVpn.o TunDevice.o util.o main.o
|
|
TARGET=congestvpn
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CXX) $(CXXFLAGS) $(CXXLIBS) -o $@ $^
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|
|
|
|
.PHONY: all clean
|