Date: Thu, 09 Mar 1995 12:55:05 +0100 From: Andras Olah <olah@cs.utwente.nl> To: current@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/tcpdump/tcpslice tcpslice.h util.c Makefile gwtm2secs.c search.c tcpslice.1 tcpslice.c Message-ID: <9785.794750105@utis156.cs.utwente.nl> In-Reply-To: Your message of Wed, 08 Mar 1995 04:53:43 PST
next in thread | raw e-mail | index | archive | help
The new tcpdump version I committed yesterday fails to compile, I'm
really sorry for this. I need some advice on what is the cause of
the problem.
tcpslice fails to compile because of the lack of version.h.
version.h should be automatically generated from ../tcpdump/VERSION.
This problem only exists when there's an obj tree (thus obj ->
/usr/obj/usr.sbin/tcpdump/tcpslice). If the obj link is missing
then make depend generates the necessary dependency for version.h
and everything works OK.
So, what did I screw up?
Andras
FYI, here is the Makefile for tcpslice
# @(#)Makefile 0.1 (RWGrimes) 3/24/93
PROG= tcpslice
CFLAGS+=-Wall
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 > versio
n.c
set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' $(.CURDIR)/../tcpdump/VERSI
ON` ; \
{ echo '#define VERSION_MAJOR' $$1 ; \
echo '#define VERSION_MINOR' $$2 ; } > version.h
.include <bsd.prog.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9785.794750105>
