Blame


1 020c6d8b 2002-01-02 alex #
2 020c6d8b 2002-01-02 alex # ngIRCd -- The Next Generation IRC Daemon
3 020c6d8b 2002-01-02 alex # Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 020c6d8b 2002-01-02 alex #
5 0f3e84f4 2003-01-13 alex # This program is free software; you can redistribute it and/or modify
6 0f3e84f4 2003-01-13 alex # it under the terms of the GNU General Public License as published by
7 0f3e84f4 2003-01-13 alex # the Free Software Foundation; either version 2 of the License, or
8 0f3e84f4 2003-01-13 alex # (at your option) any later version.
9 0f3e84f4 2003-01-13 alex # Please read the file COPYING, README and AUTHORS for more information.
10 020c6d8b 2002-01-02 alex #
11 0f3e84f4 2003-01-13 alex # $Id: Makefile.am,v 1.36 2003/01/13 12:20:16 alex Exp $
12 020c6d8b 2002-01-02 alex #
13 f4ade537 2001-12-11 alex
14 8430c557 2002-05-22 alex AUTOMAKE_OPTIONS = ../portab/ansi2knr
15 8430c557 2002-05-22 alex
16 0f3e84f4 2003-01-13 alex INCLUDES = -I$(srcdir)/../portab -I$(srcdir)/../tool
17 ca33cbda 2002-03-12 alex
18 b79ba679 2002-03-25 alex LINTARGS = -weak -warnunixlib +unixlib -booltype BOOLEAN
19 b79ba679 2002-03-25 alex
20 f4ade537 2001-12-11 alex sbin_PROGRAMS = ngircd
21 f4ade537 2001-12-11 alex
22 0b04bfa7 2002-12-30 alex ngircd_SOURCES = ngircd.c channel.c client.c conf.c conn.c conn-zip.c conn-func.c \
23 0b04bfa7 2002-12-30 alex hash.c irc.c irc-channel.c irc-info.c irc-login.c irc-mode.c irc-op.c \
24 0f3e84f4 2003-01-13 alex irc-oper.c irc-server.c irc-write.c lists.c log.c match.c parse.c resolve.c
25 f4ade537 2001-12-11 alex
26 0f3e84f4 2003-01-13 alex ngircd_LDFLAGS = -L../portab -L../tool
27 cf029a81 2002-05-19 alex
28 0f3e84f4 2003-01-13 alex ngircd_LDADD = -lngportab -lngtool
29 509a34f0 2002-05-19 alex
30 0b04bfa7 2002-12-30 alex noinst_HEADERS = ngircd.h channel.h client.h conf.h conn.h conn-zip.h conn-func.h \
31 0b04bfa7 2002-12-30 alex hash.h irc.h irc-channel.h irc-info.h irc-login.h irc-mode.h irc-op.h \
32 0b04bfa7 2002-12-30 alex irc-oper.h irc-server.h irc-write.h lists.h log.h match.h parse.h resolve.h \
33 0f3e84f4 2003-01-13 alex messages.h defines.h
34 f4ade537 2001-12-11 alex
35 0253bcc8 2002-02-21 alex clean-local:
36 25f32ce8 2002-10-07 alex rm -f check-version check-help lint.out cvs-version.*
37 0253bcc8 2002-02-21 alex
38 f4ade537 2001-12-11 alex maintainer-clean-local:
39 f4ade537 2001-12-11 alex rm -f Makefile Makefile.in
40 f4ade537 2001-12-11 alex
41 0253bcc8 2002-02-21 alex check-version: Makefile
42 0253bcc8 2002-02-21 alex echo "#!/bin/sh" > check-version
43 6f15c062 2002-09-07 alex echo "./ngircd --version | grep ngircd > /dev/null 2>&1" >> check-version
44 3c233aa9 2002-02-21 alex chmod 755 check-version
45 0253bcc8 2002-02-21 alex
46 0253bcc8 2002-02-21 alex check-help: Makefile
47 0253bcc8 2002-02-21 alex echo "#!/bin/sh" > check-help
48 0253bcc8 2002-02-21 alex echo "./ngircd --help | grep help > /dev/null 2>&1" >> check-help
49 3c233aa9 2002-02-21 alex chmod 755 check-help
50 0253bcc8 2002-02-21 alex
51 b79ba679 2002-03-25 alex lint:
52 b79ba679 2002-03-25 alex rm -f lint.out
53 b79ba679 2002-03-25 alex for f in *.c; do \
54 b79ba679 2002-03-25 alex echo "checking $$f ..."; \
55 2d4f7847 2002-07-22 alex splint $$f $(LINTARGS) -I./.. -I./../portab $(AM_CFLAGS) > lint.out 2>&1; \
56 b79ba679 2002-03-25 alex grep "no warnings" lint.out > /dev/null 2>&1; \
57 b79ba679 2002-03-25 alex if [ $$? -ne 0 ]; then \
58 b79ba679 2002-03-25 alex echo; cat lint.out; echo; \
59 b79ba679 2002-03-25 alex fi; \
60 b79ba679 2002-03-25 alex done;
61 b79ba679 2002-03-25 alex
62 25f32ce8 2002-10-07 alex ngircd.c: cvs-date cvs-version.h
63 25f32ce8 2002-10-07 alex
64 25f32ce8 2002-10-07 alex cvs-date:
65 180eb810 2002-10-08 alex grep VERSION ../config.h | grep "CVS" \
66 427be23b 2002-12-12 alex && echo "#define CVSDATE \"$$( grep "\$$Id" $(srcdir)/*.c \
67 1bf0426a 2003-01-04 alex | $(AWK) "{ print \$$9 }" | sort | tail -1 \
68 e12179aa 2003-01-02 alex | sed -e "s/\//-/g" )\"" > cvs-version.new \
69 180eb810 2002-10-08 alex || echo "" > cvs-version.new
70 180eb810 2002-10-08 alex diff cvs-version.h cvs-version.new || cp cvs-version.new cvs-version.h
71 25f32ce8 2002-10-07 alex
72 0253bcc8 2002-02-21 alex TESTS = check-version check-help
73 0253bcc8 2002-02-21 alex
74 f4ade537 2001-12-11 alex # -eof-