summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..08d6e0f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+CXX?= g++
+
+CXXFLAGS?= -std=c++20 \
+ -Wall \
+ -Iinclude \
+ -Ithird_party/pfi/include \
+ -g
+LDFLAGS?=
+LDADD=-lz
+
+TARGET= kill_proxy
+
+CXX_SRCS= src/kill_proxy.cpp
+CXX_OBJS= $(CXX_SRCS:%.cpp=%.cpp.o)
+CXX_DEPS= $(CXX_SRCS:%.cpp=%.cpp.d)
+
+all: ${TARGET}
+
+${TARGET}: ${CXX_OBJS}
+ ${CXX} ${LDFLAGS} -o $@ $< ${LDADD}
+
+%.cpp.o: %.cpp
+ ${CXX} ${CXXFLAGS} -MMD -c -o $@ $<
+
+
+-include $(CXX_DEPS)
+
+.PHONY: clean
+clean:
+ -rm ${TARGET} ${CXX_OBJS} ${CXX_DEPS}