about summary refs log tree commit diff
path: root/src/tool
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-01-15 14:45:26 +0300
committerNakidai <nakidai@disroot.org>2026-01-15 14:45:26 +0300
commit9a2b8cb4fde1adea8027387f277510cfa4406a20 (patch)
tree7fe74808b8a86270fb332d8e77a0d0dbf4f8f9bd /src/tool
parentf11b01ccc2c9aa8b20c607da10d7e60dab36efaf (diff)
downloadngircd-9a2b8cb4fde1adea8027387f277510cfa4406a20.tar.gz
ngircd-9a2b8cb4fde1adea8027387f277510cfa4406a20.zip
Use simpler build system
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/Makefile13
-rw-r--r--src/tool/Makefile.ng27
2 files changed, 13 insertions, 27 deletions
diff --git a/src/tool/Makefile b/src/tool/Makefile
new file mode 100644
index 00000000..df41ebae
--- /dev/null
+++ b/src/tool/Makefile
@@ -0,0 +1,13 @@
+CFLAGS += -DDOCDIR='"/usr/local/share/doc/ngircd"'
+CFLAGS += -DHAVE_CONFIG_H
+CFLAGS += -I..
+CFLAGS += -I../portab
+CFLAGS += -I../ipaddr
+CFLAGS += -I../tool
+
+OBJS += tool.o
+
+all: libngtool.a
+
+libngtool.a: ${OBJS}
+	ar rcs libngtool.a ${OBJS}
diff --git a/src/tool/Makefile.ng b/src/tool/Makefile.ng
deleted file mode 100644
index d88bdc94..00000000
--- a/src/tool/Makefile.ng
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-# Please read the file COPYING, README and AUTHORS for more information.
-#
-
-__ng_Makefile_am_template__
-
-EXTRA_DIST = Makefile.ng
-
-AM_CPPFLAGS = -I$(srcdir)/../portab
-
-noinst_LIBRARIES = libngtool.a
-
-libngtool_a_SOURCES = tool.c
-
-noinst_HEADERS = tool.h
-
-maintainer-clean-local:
-	rm -f Makefile Makefile.in Makefile.am
-
-# -eof-