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