about summary refs log tree commit diff
path: root/src/build.mk
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-19 00:13:27 +0300
committerNakidai <nakidai@disroot.org>2026-02-19 00:13:27 +0300
commite4fcf7471a1319fee99d68de729aaacfeb044d01 (patch)
treeb665b0dd4c1d092f17d584f6fda8c9fe45934169 /src/build.mk
parentfb6f0fd115fec4a7c3490d0a3091b81af5ba6378 (diff)
downloadngircd-e4fcf7471a1319fee99d68de729aaacfeb044d01.tar.gz
ngircd-e4fcf7471a1319fee99d68de729aaacfeb044d01.zip
Rename sub-Makefiles into build.mk
So now it is impossible to accidentally start from the wrong place,
and this structure also implicitly tells you how to build
Diffstat (limited to 'src/build.mk')
-rw-r--r--src/build.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/build.mk b/src/build.mk
new file mode 100644
index 00000000..ab9f0a39
--- /dev/null
+++ b/src/build.mk
@@ -0,0 +1,15 @@
+include src/ipaddr/build.mk
+include src/ngircd/build.mk
+include src/portab/build.mk
+include src/tool/build.mk
+
+LDFLAGS += -Lsrc/portab -Lsrc/tool -Lsrc/ipaddr
+LDLIBS += -lngportab -lngtool -lngipaddr -lz
+
+CFLAGS += -DDOCDIR='"/usr/local/share/doc/ngircd"'
+CFLAGS += -DHAVE_CONFIG_H
+CFLAGS += -Isrc -Isrc/portab -Isrc/ipaddr -Isrc/tool
+
+clean:
+	rm -f src/ngircd/ngircd
+	find . \( -name '*\.o' -o -name '*\.a' \) -exec rm {} \;