From fb6f0fd115fec4a7c3490d0a3091b81af5ba6378 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 19 Feb 2026 00:00:52 +0300 Subject: 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 --- src/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Makefile') 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 {} \; -- cgit 1.4.1