]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/Makefile.am
- replaced a lot of strcat() calls with strlcat() which is more secure.
[ngircd-alex.git] / src / ngircd / Makefile.am
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 #
5 # Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 # der GNU General Public License (GPL), wie von der Free Software Foundation
7 # herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 # der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 #
12 # $Id: Makefile.am,v 1.31 2002/12/12 12:36:41 alex Exp $
13 #
14
15 AUTOMAKE_OPTIONS = ../portab/ansi2knr
16
17 INCLUDES = -I$(srcdir)/../portab
18
19 LINTARGS = -weak -warnunixlib +unixlib -booltype BOOLEAN
20
21 sbin_PROGRAMS = ngircd
22
23 ngircd_SOURCES = ngircd.c channel.c client.c conf.c conn.c hash.c irc.c \
24         irc-channel.c irc-info.c irc-login.c irc-mode.c irc-op.c irc-oper.c \
25         irc-server.c irc-write.c lists.c log.c match.c parse.c resolve.c tool.c
26
27 ngircd_LDFLAGS = -L../portab
28
29 ngircd_LDADD = -lngportab
30
31 noinst_HEADERS = ngircd.h channel.h client.h conf.h conn.h hash.h irc.h \
32         irc-channel.h irc-info.h irc-login.h irc-mode.h irc-op.h irc-oper.h \
33         irc-server.h irc-write.h lists.h log.h match.h parse.h resolve.h tool.h \
34         messages.h defines.h
35
36 clean-local:
37         rm -f check-version check-help lint.out cvs-version.*
38
39 maintainer-clean-local:
40         rm -f Makefile Makefile.in
41
42 check-version: Makefile
43         echo "#!/bin/sh" > check-version
44         echo "./ngircd --version | grep ngircd > /dev/null 2>&1" >> check-version
45         chmod 755 check-version
46
47 check-help: Makefile
48         echo "#!/bin/sh" > check-help
49         echo "./ngircd --help | grep help > /dev/null 2>&1" >> check-help
50         chmod 755 check-help
51
52 lint:
53         rm -f lint.out
54         for f in *.c; do \
55          echo "checking $$f ..."; \
56          splint $$f $(LINTARGS) -I./.. -I./../portab $(AM_CFLAGS) > lint.out 2>&1; \
57          grep "no warnings" lint.out > /dev/null 2>&1; \
58          if [ $$? -ne 0 ]; then \
59           echo; cat lint.out; echo; \
60          fi; \
61         done;
62
63 ngircd.c: cvs-date cvs-version.h
64
65 cvs-date:
66         grep VERSION ../config.h | grep "CVS" \
67          && echo "#define CVSDATE \"$$( grep "\$$Id" $(srcdir)/*.c \
68             | awk "{ print \$$9 }" | sort | tail -n 1 )\"" > cvs-version.new \
69          || echo "" > cvs-version.new
70         diff cvs-version.h cvs-version.new || cp cvs-version.new cvs-version.h
71
72 TESTS = check-version check-help
73
74 # -eof-