blob: 3c036978acae00f5b4f427d67593192ef2db4c69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
CXX = g++
CXXFLAGS = -Wall -Wextra -O2 -g -std=c++17 -fwrapv -pthread
LDFLAGS = -pthread
TARGET = url_handler
SOURCES = $(wildcard *.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
.PHONY: all clean
all: $(TARGET)
clean:
rm -f $(TARGET) *.o
$(TARGET): $(OBJECTS)
$(CXX) $^ -o $@ $(LDFLAGS)
%.o: %.cpp $(wildcard *.h)
$(CXX) $(CXXFLAGS) -c -o $@ $<
|