about summary refs log tree commit diff
path: root/src/portab/Makefile
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/portab/Makefile
parentf11b01ccc2c9aa8b20c607da10d7e60dab36efaf (diff)
downloadngircd-9a2b8cb4fde1adea8027387f277510cfa4406a20.tar.gz
ngircd-9a2b8cb4fde1adea8027387f277510cfa4406a20.zip
Use simpler build system
Diffstat (limited to 'src/portab/Makefile')
-rw-r--r--src/portab/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/portab/Makefile b/src/portab/Makefile
new file mode 100644
index 00000000..2814557e
--- /dev/null
+++ b/src/portab/Makefile
@@ -0,0 +1,20 @@
+CFLAGS += -DDOCDIR='"/usr/local/share/doc/ngircd"'
+CFLAGS += -DHAVE_CONFIG_H
+CFLAGS += -I..
+CFLAGS += -I../portab
+CFLAGS += -I../ipaddr
+CFLAGS += -I../tool
+
+OBJS += ansi2knr.o
+OBJS += portabtest.o
+OBJS += strdup.o
+OBJS += strlcpy.o
+OBJS += strndup.o
+OBJS += strtok_r.o
+OBJS += vsnprintf.o
+OBJS += waitpid.o
+
+all: libngportab.a
+
+libngportab.a: ${OBJS}
+	ar rcs libngportab.a ${OBJS}