freebsd-dev/usr.sbin/tcpdump/tcpslice/Makefile

23 lines
638 B
Makefile
Raw Normal View History

1993-06-12 14:49:13 +00:00
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
# $FreeBSD$
1993-06-12 14:49:13 +00:00
TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump
1993-06-12 14:49:13 +00:00
PROG= tcpslice
SRCS= gwtm2secs.c search.c tcpslice.c util.c version.c version.h
CLEANFILES= version.c version.h
CFLAGS+= -I.
DPADD+= ${LIBPCAP}
LDADD+= -lpcap
1993-06-12 14:49:13 +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 ; \
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>