# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
-# The Regents of the University of California. All rights reserved.
+# The Regents of the University of California. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that: (1) source code distributions
SRC = $(CSRC) $(LOCALSRC)
-# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
-# hack the extra indirection
OBJ = $(CSRC:.c=.o)
HDR = \
addrtoname.h \
/usr/include/netinet/in.h
TAGFILES = $(SRC) $(HDR) $(TAGHDR) $(LIBNETDISSECT_SRC) \
- print-pflog.c print-smb.c smbutil.c
+ print-smb.c smbutil.c
CLEANFILES = $(PROG) $(OBJ) $(LIBNETDISSECT_OBJ)
config.sub \
configure.ac \
doc/README.aix.md \
+ doc/README.haiku.md \
doc/README.NetBSD.md \
doc/README.solaris.md \
doc/README.Win32.md \
install-sh \
instrument-functions.c \
- lbl/os-osf4.h \
- lbl/os-solaris2.h \
- lbl/os-sunos4.h \
- lbl/os-ultrix4.h \
makemib \
missing/datalinks.c \
missing/dlnames.c \
missing/getopt_long.h \
missing/getservent.c \
missing/pcap_dump_ftell.c \
- missing/strdup.c \
missing/strlcat.c \
missing/strlcpy.c \
missing/strsep.c \
mkdep \
packetdat.awk \
- print-pflog.c \
print-smb.c \
send-ack.awk \
smbutil.c \
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getservent.c
getopt_long.o: $(srcdir)/missing/getopt_long.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getopt_long.c
-strdup.o: $(srcdir)/missing/strdup.c
- $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strdup.c
strlcat.o: $(srcdir)/missing/strlcat.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c
strlcpy.o: $(srcdir)/missing/strlcpy.c
grep -v 'possible pointer alignment problem'
clean:
- rm -f $(CLEANFILES) $(PROG)-`cat ${srcdir}/VERSION`.tar.gz
+ rm -f $(CLEANFILES) $(PROG)-`cat ${srcdir}/VERSION`.tar.gz \
+ config.h.in~ configure~ configure.ac~
distclean: clean
rm -f Makefile config.cache config.log config.status \
- config.h config.h.in~ configure~ configure.ac~ \
- os-proto.h stamp-h stamp-h.in $(PROG).1 \
+ config.h os-proto.h stamp-h stamp-h.in $(PROG).1 \
libnetdissect.a tests/.failed tests/.passed \
tests/failure-outputs.txt
rm -rf autom4te.cache tests/DIFF tests/NEW
echo 'Error: Trailing tabs(s).'; \
exit 1; \
fi
+ @# space(s) before tab(s)?
+ @if git grep -I -n '[ ][ ]' $$(git ls-files|grep -v '^tests/'); then \
+ echo 'Error: space(s) before tab(s).'; \
+ exit 1; \
+ fi
testlist:
echo $(TEST_DIST)