summaryrefslogtreecommitdiff
path: root/url_handler/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'url_handler/Makefile')
-rw-r--r--url_handler/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/url_handler/Makefile b/url_handler/Makefile
new file mode 100644
index 0000000..3c03697
--- /dev/null
+++ b/url_handler/Makefile
@@ -0,0 +1,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 $@ $<