2002-01-02 03:43:50 +01:00
|
|
|
#
|
|
|
|
# ngIRCd -- The Next Generation IRC Daemon
|
|
|
|
# Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
|
|
|
|
#
|
|
|
|
# Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
|
|
|
|
# der GNU General Public License (GPL), wie von der Free Software Foundation
|
|
|
|
# herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
|
|
|
|
# der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
|
|
|
|
# Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
|
|
|
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
|
|
|
#
|
2002-11-30 18:39:56 +01:00
|
|
|
# $Id: Makefile.am,v 1.30 2002/11/30 17:39:56 alex Exp $
|
2002-01-02 03:43:50 +01:00
|
|
|
#
|
2001-12-11 22:53:04 +01:00
|
|
|
|
2002-05-22 11:09:43 +02:00
|
|
|
AUTOMAKE_OPTIONS = ../portab/ansi2knr
|
|
|
|
|
2002-06-03 01:17:12 +02:00
|
|
|
INCLUDES = -I$(srcdir)/../portab
|
2002-03-12 15:37:51 +01:00
|
|
|
|
2002-03-25 20:38:16 +01:00
|
|
|
LINTARGS = -weak -warnunixlib +unixlib -booltype BOOLEAN
|
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
sbin_PROGRAMS = ngircd
|
|
|
|
|
2002-03-14 16:31:22 +01:00
|
|
|
ngircd_SOURCES = ngircd.c channel.c client.c conf.c conn.c hash.c irc.c \
|
2002-11-30 18:39:56 +01:00
|
|
|
irc-channel.c irc-info.c irc-login.c irc-mode.c irc-op.c irc-oper.c \
|
|
|
|
irc-server.c irc-write.c lists.c log.c match.c parse.c resolve.c tool.c
|
2001-12-11 22:53:04 +01:00
|
|
|
|
2002-05-19 03:30:29 +02:00
|
|
|
ngircd_LDFLAGS = -L../portab
|
|
|
|
|
|
|
|
ngircd_LDADD = -lngportab
|
2002-05-19 03:15:55 +02:00
|
|
|
|
2002-03-14 16:31:22 +01:00
|
|
|
noinst_HEADERS = ngircd.h channel.h client.h conf.h conn.h hash.h irc.h \
|
2002-11-30 18:39:56 +01:00
|
|
|
irc-channel.h irc-info.h irc-login.h irc-mode.h irc-op.h irc-oper.h \
|
|
|
|
irc-server.h irc-write.h lists.h log.h match.h parse.h resolve.h tool.h \
|
2002-03-12 15:37:51 +01:00
|
|
|
messages.h defines.h
|
2001-12-11 22:53:04 +01:00
|
|
|
|
2002-02-21 18:25:16 +01:00
|
|
|
clean-local:
|
2002-10-07 23:16:12 +02:00
|
|
|
rm -f check-version check-help lint.out cvs-version.*
|
2002-02-21 18:25:16 +01:00
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
maintainer-clean-local:
|
|
|
|
rm -f Makefile Makefile.in
|
|
|
|
|
2002-02-21 18:25:16 +01:00
|
|
|
check-version: Makefile
|
|
|
|
echo "#!/bin/sh" > check-version
|
2002-09-07 20:06:29 +02:00
|
|
|
echo "./ngircd --version | grep ngircd > /dev/null 2>&1" >> check-version
|
2002-02-21 19:47:49 +01:00
|
|
|
chmod 755 check-version
|
2002-02-21 18:25:16 +01:00
|
|
|
|
|
|
|
check-help: Makefile
|
|
|
|
echo "#!/bin/sh" > check-help
|
|
|
|
echo "./ngircd --help | grep help > /dev/null 2>&1" >> check-help
|
2002-02-21 19:47:49 +01:00
|
|
|
chmod 755 check-help
|
2002-02-21 18:25:16 +01:00
|
|
|
|
2002-03-25 20:38:16 +01:00
|
|
|
lint:
|
|
|
|
rm -f lint.out
|
|
|
|
for f in *.c; do \
|
|
|
|
echo "checking $$f ..."; \
|
2002-07-22 15:23:28 +02:00
|
|
|
splint $$f $(LINTARGS) -I./.. -I./../portab $(AM_CFLAGS) > lint.out 2>&1; \
|
2002-03-25 20:38:16 +01:00
|
|
|
grep "no warnings" lint.out > /dev/null 2>&1; \
|
|
|
|
if [ $$? -ne 0 ]; then \
|
|
|
|
echo; cat lint.out; echo; \
|
|
|
|
fi; \
|
|
|
|
done;
|
|
|
|
|
2002-10-07 23:16:12 +02:00
|
|
|
ngircd.c: cvs-date cvs-version.h
|
|
|
|
|
|
|
|
cvs-date:
|
2002-10-08 20:30:03 +02:00
|
|
|
grep VERSION ../config.h | grep "CVS" \
|
|
|
|
&& echo "#define CVSDATE \"$$( grep "\$$Id" $(srcdir)/*.c $(srcdir)/*.h \
|
|
|
|
| awk "{ print \$$6 }" | sort | tail -n 1 )\"" > cvs-version.new \
|
|
|
|
|| echo "" > cvs-version.new
|
|
|
|
diff cvs-version.h cvs-version.new || cp cvs-version.new cvs-version.h
|
2002-10-07 23:16:12 +02:00
|
|
|
|
2002-02-21 18:25:16 +01:00
|
|
|
TESTS = check-version check-help
|
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
# -eof-
|