From cf618cc741269fa1917840345bb3fae133007b6d Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 18 Feb 2026 23:03:45 +0300 Subject: Improve the build system Now one global makefile is generated using includes, so dependencies are handled properly --- src/tool/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/tool') diff --git a/src/tool/Makefile b/src/tool/Makefile index df41ebae..964e9d52 100644 --- a/src/tool/Makefile +++ b/src/tool/Makefile @@ -1,13 +1,8 @@ CFLAGS += -DDOCDIR='"/usr/local/share/doc/ngircd"' CFLAGS += -DHAVE_CONFIG_H -CFLAGS += -I.. -CFLAGS += -I../portab -CFLAGS += -I../ipaddr -CFLAGS += -I../tool +CFLAGS += -Isrc -Isrc/portab -Isrc/ipaddr -Isrc/tool -OBJS += tool.o +OBJS.tool += src/tool/tool.o -all: libngtool.a - -libngtool.a: ${OBJS} - ar rcs libngtool.a ${OBJS} +src/tool/libngtool.a: ${OBJS.tool} + ar rcs src/tool/libngtool.a ${OBJS.tool} -- cgit 1.4.1