tcpdump mailing list archives

[PATCH] minor VPATH build fixes in top-level Makefile


From: Christian Bell <csbell () myri com>
Date: Thu, 7 Jan 2010 15:33:05 -0500

---
 Makefile.in |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 53801c1..96d5d47 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,7 +126,7 @@ TAGFILES = \
        $(SRC) $(HDR)
 
 CLEANFILES = $(OBJ) libpcap.* filtertest findalldevstest selpolltest \
-       opentest $(PROG)-`cat VERSION`.tar.gz $(GENSRC) $(GENHDR) \
+       opentest $(PROG)-`cat $(srcdir)/VERSION`.tar.gz $(GENSRC) $(GENHDR) \
        lex.yy.c pcap-config
 
 MAN1 = pcap-config.1
@@ -468,16 +468,16 @@ pcap-config: $(srcdir)/pcap-config.in
 # Test programs - not built by default, and not installed.
 #
 filtertest: filtertest.c libpcap.a
-       $(CC) $(CFLAGS) -I. -L. -o filtertest filtertest.c libpcap.a $(LIBS)
+       $(CC) $(CFLAGS) -I. -L. -o filtertest $(srcdir)/filtertest.c libpcap.a $(LIBS)
 
 findalldevstest: findalldevstest.c libpcap.a
-       $(CC) $(CFLAGS) -I. -L. -o findalldevstest findalldevstest.c libpcap.a $(LIBS)
+       $(CC) $(CFLAGS) -I. -L. -o findalldevstest $(srcdir)/findalldevstest.c libpcap.a $(LIBS)
 
 selpolltest: selpolltest.c libpcap.a
-       $(CC) $(CFLAGS) -I. -L. -o selpolltest selpolltest.c libpcap.a $(LIBS)
+       $(CC) $(CFLAGS) -I. -L. -o selpolltest $(srcdir)/selpolltest.c libpcap.a $(LIBS)
 
 opentest: opentest.c libpcap.a
-       $(CC) $(CFLAGS) -I. -L. -o opentest opentest.c libpcap.a $(LIBS)
+       $(CC) $(CFLAGS) -I. -L. -o opentest $(srcdir)/opentest.c libpcap.a $(LIBS)
 
 install: install-shared install-archive pcap-config
        [ -d $(DESTDIR)$(libdir) ] || \
-- 
1.6.4

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: