Home /Modules/http-servers/Makefile

Makefile

http-servers/2/Makefile · 10 line(s) · makefile

CXX ?= c++
CXXFLAGS ?= -std=c++17 -O2 -Wall -Wextra -Wpedantic -pthread
LIBS ?= -lnghttp2
TARGET=http-server-2
all: $(TARGET)
$(TARGET): main.cpp http2/http2_server.cpp http2/http2_server.h
	$(CXX) $(CXXFLAGS) main.cpp http2/http2_server.cpp ../../preferred-routers/preferred_router.cpp -o $@ $(LIBS)
clean:
	rm -f $(TARGET)