diff options
Diffstat (limited to 'src/portab')
| -rw-r--r-- | src/portab/Makefile | 20 | ||||
| -rw-r--r-- | src/portab/Makefile.ng | 41 |
2 files changed, 20 insertions, 41 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} diff --git a/src/portab/Makefile.ng b/src/portab/Makefile.ng deleted file mode 100644 index 9be5f567..00000000 --- a/src/portab/Makefile.ng +++ /dev/null @@ -1,41 +0,0 @@ -# -# ngIRCd -- The Next Generation IRC Daemon -# Copyright (c)2001-2024 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 - -noinst_LIBRARIES = libngportab.a - -libngportab_a_SOURCES = \ - strdup.c \ - strlcpy.c \ - strndup.c \ - strtok_r.c \ - vsnprintf.c \ - waitpid.c - -check_PROGRAMS = portabtest - -portabtest_SOURCES = portabtest.c - -portabtest_LDFLAGS = -L. - -portabtest_LDADD = -lngportab - -noinst_HEADERS = portab.h - -maintainer-clean-local: - rm -f Makefile Makefile.in Makefile.am - -TESTS = portabtest - -# -eof- |