1993-06-12 14:49:13 +00:00
|
|
|
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
|
|
|
|
|
|
|
|
PROG= tcpslice
|
1995-03-09 12:15:17 +00:00
|
|
|
CFLAGS+=-Wall -I.
|
1993-07-02 04:22:44 +00:00
|
|
|
MAN1= tcpslice.1
|
1998-03-06 14:47:53 +00:00
|
|
|
SRCS= gwtm2secs.c search.c tcpslice.c util.c version.c version.h
|
1993-06-12 14:49:13 +00:00
|
|
|
CLEANFILES+= version.c version.h
|
1995-03-08 12:53:42 +00:00
|
|
|
DPADD+= ${LIBPCAP}
|
|
|
|
LDADD+= -lpcap
|
1993-06-12 14:49:13 +00:00
|
|
|
|
1996-08-21 17:11:41 +00:00
|
|
|
TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump
|
1996-08-21 04:14:36 +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 ; \
|
1996-08-21 17:11:41 +00:00
|
|
|
sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION > version.c
|
|
|
|
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>
|