blob: 55b240273c1e2d5032ccf332b286c6b3be0727d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
PROG= tcpslice
CFLAGS+=-DCSLIP -I. -I$(.CURDIR)/../tcpdump
MAN1= tcpslice.1
SRCS= version.c tcpslice.c gwtm2secs.c search.c \
savefile.c bpf_filter.c md.c util.c
.PATH: ${.CURDIR}/../tcpdump /sys/net
CLEANFILES+= version.c version.h
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>
|