mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 10:09:30 +00:00
19 lines
560 B
Makefile
19 lines
560 B
Makefile
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
|
|
|
|
PROG= tcpslice
|
|
CFLAGS+=-Wall -I.
|
|
MAN1= tcpslice.1
|
|
SRCS= version.c tcpslice.c gwtm2secs.c search.c util.c
|
|
CLEANFILES+= version.c version.h
|
|
DPADD+= ${LIBPCAP}
|
|
LDADD+= -lpcap
|
|
|
|
version.c version.h: $(.CURDIR)/../tcpdump/VERSION
|
|
rm -f version.c ; \
|
|
sed 's/.*/char version[] = "&";/' $(.CURDIR)/../tcpdump/VERSION > version.c
|
|
set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' $(.CURDIR)/../tcpdump/VERSION` ; \
|
|
{ echo '#define VERSION_MAJOR' $$1 ; \
|
|
echo '#define VERSION_MINOR' $$2 ; } > version.h
|
|
|
|
.include <bsd.prog.mk>
|