AUTOMAKE_OPTIONS = ../portab/ansi2knr
-INCLUDES = -I$(srcdir)/../portab -I$(srcdir)/../tool -I$(srcdir)/../ipaddr
+AM_CPPFLAGS = -I$(srcdir)/../portab -I$(srcdir)/../tool -I$(srcdir)/../ipaddr
LINTARGS = -weak -warnunixlib +unixlib -booltype BOOLEAN \
-varuse -retvalother -emptyret -unrecog
channel.c \
class.c \
client.c \
+ client-cap.c \
conf.c \
conn.c \
conn-func.c \
hash.c \
io.c \
irc.c \
+ irc-cap.c \
irc-channel.c \
irc-info.c \
irc-login.c \
channel.h \
class.h \
client.h \
+ client-cap.h \
conf.h \
conf-ssl.h \
conn.h \
hash.h \
io.h \
irc.h \
+ irc-cap.h \
irc-channel.h \
irc-info.h \
irc-login.h \
for f in *.c; do \
echo "checking $$f ..."; \
splint $$f $(LINTARGS) -I$(srcdir) -I$(srcdir)/.. \
- $(INCLUDES) $(AM_CFLAGS) >lint.out 2>&1; \
+ $(AM_CPPFLAGS) $(AM_CFLAGS) >lint.out 2>&1; \
grep "no warnings" lint.out > /dev/null 2>&1; \
if [ $$? -ne 0 ]; then \
waswarning=1; \