about summary refs log tree commit diff
path: root/src/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-19 00:00:52 +0300
committerNakidai <nakidai@disroot.org>2026-02-19 00:07:40 +0300
commitfb6f0fd115fec4a7c3490d0a3091b81af5ba6378 (patch)
tree532a16cc552d636810f05935caba99c87efdf075 /src/Makefile
parentcf618cc741269fa1917840345bb3fae133007b6d (diff)
downloadngircd-fb6f0fd115fec4a7c3490d0a3091b81af5ba6378.tar.gz
ngircd-fb6f0fd115fec4a7c3490d0a3091b81af5ba6378.zip
Declare *{FLAGS,LIBS} once
Well, since this is actually one big Makefile concatenated of smaller
ones, all the *CFLAGS are global and therefore should be set once
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 28633a05..07adc0cb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,6 +3,13 @@ include src/ngircd/Makefile
 include src/portab/Makefile
 include src/tool/Makefile
 
+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 {} \;