about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-01-04 17:41:32 +0300
committerNakidai <nakidai@disroot.org>2026-01-04 17:44:09 +0300
commit78426afe18d9ce730a4d92033ca261f9b2f173a0 (patch)
tree0c511b571e9a37496f170fce08737a849a8ba5ef /Makefile
downloadlibreircd-78426afe18d9ce730a4d92033ca261f9b2f173a0.tar.gz
libreircd-78426afe18d9ce730a4d92033ca261f9b2f173a0.zip
Add code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5953be1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+NAME ?= ircd
+
+CFLAGS += -Wall -Wextra
+
+OBJS += handle.o
+OBJS += loop.o
+OBJS += main.o
+OBJS += message.o
+OBJS += peer.o
+OBJS += user.o
+OBJS += writef.o
+
+${NAME}: ${OBJS}
+	${CC} -o ${NAME} ${CFLAGS} ${LDFLAGS} ${OBJS}
+clean:
+	rm -f ${NAME} ${OBJS}