HardenedBSD/usr.sbin/tcpdump/tcpslice/Makefile

23 lines
638 B
Makefile
Raw Normal View History

1993-06-12 16:49:13 +02:00
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
# $FreeBSD$
1993-06-12 16:49:13 +02:00
TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump
1993-06-12 16:49:13 +02: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 16:49:13 +02: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 ; \
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>