$OpenBSD: patch-Makefile_in,v 1.1 2005/05/24 00:08:29 mjc Exp $ --- Makefile.in.orig Wed Apr 21 15:16:41 1999 +++ Makefile.in Mon May 23 12:13:01 2005 @@ -9,28 +9,28 @@ MANDIR = $(PREFIX)/man/man8 CC = @CC@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ -DEFS = @DEFS@ +DEFS = @DEFS@ `libnet-config-1.0 --defines` INCS = $(LNETINCS) $(PCAPINCS) LIBS = @LIBS@ $(LNETLIBS) $(PCAPLIBS) INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ -PCAPDIR = libpcap-0.4 -PCAPINCS = -I$(PCAPDIR) -PCAPLIBS = -L$(PCAPDIR) -lpcap -PCAPDEP = $(PCAPDIR)/pcap.h $(PCAPDIR)/libpcap.a +PCAPDIR = +PCAPINCS = +PCAPLIBS = -lpcap +PCAPDEP = -LNETDIR = Libnet-0.99 -LNETINCS = -I$(LNETDIR)/include -LNETLIBS = -L$(LNETDIR)/lib -lnet -LNETDEP = $(LNETDIR)/include/libnet.h $(LNETDIR)/libnet.a +LNETDIR = +LNETINCS = -I$(PREFIX)/include/libnet-1.0 +LNETLIBS = -L$(PREFIX)/lib/libnet-1.0 -lnet +LNETDEP = PROGRAMS = tcpreplay all: $(PROGRAMS) -tcpreplay: $(PCAPDEP) $(LNETDEP) tcpreplay.c +tcpreplay: tcpreplay.c -rm -f tcpreplay $(CC) $(CFLAGS) $(DEFS) $(INCS) -o $@ tcpreplay.c $(LDFLAGS) $(LIBS)