1993-06-12 14:49:13 +00:00
|
|
|
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
|
2001-03-26 14:42:20 +00:00
|
|
|
# $FreeBSD$
|
1993-06-12 14:49:13 +00:00
|
|
|
|
2001-04-20 17:30:12 +00:00
|
|
|
TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump
|
|
|
|
|
1993-06-12 14:49:13 +00:00
|
|
|
PROG= tcpslice
|
1998-03-06 14:47:53 +00:00
|
|
|
SRCS= gwtm2secs.c search.c tcpslice.c util.c version.c version.h
|
2001-04-20 17:30:12 +00:00
|
|
|
CLEANFILES= version.c version.h
|
|
|
|
CFLAGS+= -I.
|
|
|
|
|
1995-03-08 12:53:42 +00:00
|
|
|
DPADD+= ${LIBPCAP}
|
|
|
|
LDADD+= -lpcap
|
1993-06-12 14:49:13 +00:00
|
|
|
|
1998-03-06 14:47:53 +00:00
|
|
|
.ORDER: version.c version.h
|
1996-08-21 21:39:44 +00:00
|
|
|
version.c version.h: ${TCPDUMP_DISTDIR}/VERSION
|
1993-06-12 14:49:13 +00:00
|
|
|
rm -f version.c ; \
|
2001-04-20 17:30:12 +00:00
|
|
|
sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION > version.c
|
1996-08-21 17:11:41 +00:00
|
|
|
set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' ${TCPDUMP_DISTDIR}/VERSION` ; \
|
1993-06-12 14:49:13 +00:00
|
|
|
{ echo '#define VERSION_MAJOR' $$1 ; \
|
|
|
|
echo '#define VERSION_MINOR' $$2 ; } > version.h
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|