# # Makefile for dsniff # # Dug Song # # $Id: Makefile.in,v 1.6 2000/01/20 08:29:08 dugsong Exp $ srcdir = @srcdir@ VPATH = @srcdir@ install_prefix = prefix = @prefix@ exec_prefix = @exec_prefix@ sbindir = @sbindir@ mandir = @mandir@ CC = @CC@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ PCAPINC = @PCAPINC@ PCAPLIB = @PCAPLIB@ LNETINC = @LNETINC@ LNETLIB = @LNETLIB@ NIDSINC = @NIDSINC@ NIDSLIB = @NIDSLIB@ DBINC = @DBINC@ DBLIB = @DBLIB@ X11INC = @X_CFLAGS@ X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@ INCS = $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(X11INC) LIBS = $(NIDSLIB) $(PCAPLIB) $(LNETLIB) @LIBS@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ PROGS = arpredirect findgw macof dsniff mailsnarf tcpkill urlsnarf webspy .c.o: $(CC) -c $(CFLAGS) -I. $(INCS) $< all: $(PROGS) arpredirect: arpredirect.o arp.o $(CC) $(LDFLAGS) -o $@ arpredirect.o arp.o $(LIBS) findgw: findgw.o $(CC) $(LDFLAGS) -o $@ findgw.o $(LIBS) macof: macof.o $(CC) $(LDFLAGS) -o $@ macof.o $(LIBS) dsniff: dsniff.o base64.o @MD5OBJ@ $(CC) $(LDFLAGS) -o $@ dsniff.o base64.o @MD5OBJ@ $(DBLIB) $(LIBS) mailsnarf: mailsnarf.o $(CC) $(LDFLAGS) -o $@ mailsnarf.o $(LIBS) tcpkill: tcpkill.o $(CC) $(LDFLAGS) -o $@ tcpkill.o $(LIBS) urlsnarf: urlsnarf.o base64.o $(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o $(LIBS) webspy: webspy.o base64.o remote.o $(CC) $(LDFLAGS) -o $@ webspy.o base64.o remote.o $(X11LIB) $(LIBS) install: $(srcdir)/mkinstalldirs $(install_prefix)$(sbindir) $(INSTALL_PROGRAM) -m 755 $(PROGS) $(install_prefix)$(sbindir) $(srcdir)/mkinstalldirs $(install_prefix)$(mandir)/man8 $(INSTALL_DATA) dsniff.8 $(install_prefix)$(mandir)/man8 clean: rm -f *.o *~ $(PROGS) distclean: clean rm -f Makefile config.h \ config.cache config.log config.status confdefs.h # EOF