123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- # $Id: Makefile.in 767 2004-10-06 12:48:49Z aturner $
- prefix = @prefix@
- BINDIR = ${prefix}/bin
- SBINDIR = ${prefix}/sbin
- MAN8DIR = @mandir@/man8
- MAN1DIR = @mandir@/man1
- VERSION = @TCPREPLAY_VERSION@
- RELEASEDIR = tcpreplay-$(VERSION)
- CC = @CC@
- CFLAGS = @CFLAGS@
- LDFLAGS = @LDFLAGS@
- DEFS = @DEFS@
- INCS = -I. @LNETINC@ @LPCAPINC@
- LIBS = @LIBS@ @LNETLIB@ @LPCAPLIB@
- LNAVLIB = @LNAVLIB@
- LNAV_CFLAGS = @LNAV_CFLAGS@
- INSTALL = @INSTALL@
- BINARIES = tcpreplay capinfo pcapmerge tcpprep flowreplay
- TSRCS = tcpreplay.c timer.c cache.c cidr.c do_packets.c list.c xX.c err.c signal_handler.c edit_packet.c replay_live.c fakepoll.c utils.c fakepcapnav.c tcpdump.c portmap.c fakepcap.c
- TOBJS = $(TSRCS:.c=.o)
- CSRCS = capinfo.c libpcap.c snoop.c timer.c err.c fakepcap.c
- COBJS = $(CSRCS:.c=.o)
- PSRCS = tcpprep.c cidr.c tree.c cache.c list.c xX.c err.c utils.c services.c fakepcap.c
- POBJS = $(PSRCS:.c=.o)
- MSRCS = pcapmerge.c err.c
- MOBJS = $(MSRCS:.c=.o)
- FSRCS = flowreplay.c flowkey.c flownode.c flowstate.c flowbuff.c cidr.c timer.c err.c utils.c
- FOBJS = $(FSRCS:.c=.o)
- .c.o:
- $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $*.c
- .PHONY: test
- all: $(BINARIES)
- tags:
- etags *.h *.c
- tcpprep: $(POBJS)
- $(CC) $(CFLAGS) $(DEFS) $(INCS) -o $@ $(POBJS) $(LDFLAGS) $(LIBS)
- tcpreplay: $(TOBJS)
- $(CC) $(CFLAGS) $(LNAV_CFLAGS) $(DEFS) $(INCS) -o $@ $(TOBJS) $(LDFLAGS) $(LIBS) $(LNAVLIB)
- capinfo: $(COBJS)
- $(CC) $(CFLAGS) $(DEFS) $(INCS) -o $@ $(COBJS) $(LDFLAGS) $(LIBS)
- pcapmerge: $(MOBJS)
- $(CC) $(CFLAGS) $(DEFS) -o $@ $(MOBJS) $(LDFLAGS) $(LIBS)
- flowreplay: $(FOBJS)
- $(CC) $(CFLAGS) $(DEFS) -o $@ $(FOBJS) $(LDFLAGS) $(LIBS)
- dlt_names:
- cat /usr/include/net/bpf.h | ./scripts/dlt2name.pl
- clean:
- -rm -f *.o *core $(BINARIES)
- -cd test && make clean
- -cd Docs && make clean
- distclean: clean
- -rm -rf autom4te-2.??.cache autom4te.cache TAGS
- -rm -f Makefile config.h config.status config.cache config.log *~
- -rm -f tcpreplay.spec confdefs.h man/*~ scripts/*~
- -cd test && make distclean
- -cd Docs && make distclean
- install:
- test -d $(SBINDIR) || $(INSTALL) -d $(SBINDIR)
- test -d $(BINDIR) || $(INSTALL) -d $(BINDIR)
- test -d $(MAN8DIR) || $(INSTALL) -d $(MAN8DIR)
- test -d $(MAN1DIR) || $(INSTALL) -d $(MAN1DIR)
- $(INSTALL) -m 755 tcpreplay $(SBINDIR)
- $(INSTALL) -m 755 capinfo $(BINDIR)
- $(INSTALL) -m 755 tcpprep $(BINDIR)
- $(INSTALL) -m 755 pcapmerge $(BINDIR)
- $(INSTALL) -m 755 flowreplay $(BINDIR)
- $(INSTALL) -m 644 man/tcpreplay.8 $(MAN8DIR)
- $(INSTALL) -m 644 man/capinfo.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/tcpprep.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/pcapmerge.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/flowreplay.1 $(MAN1DIR)
- uninstall:
- rm -f $(SBINDIR)/tcpreplay
- rm -f $(MAN8DIR)/tcpreplay.8
- rm -f $(BINDIR)/capinfo
- rm -f $(MAN1DIR)/capinfo.1
- rm -f $(BINDIR)/tcpprep
- rm -f $(MAN1DIR)/tcpprep.1
- rm -f $(BINDIR)/pcapmerge
- rm -f $(MAN1DIR)/pcapmerge.1
- rm -f $(BINDIR)/flowreplay
- rm -f $(MAN8DIR)/flowreplay.8
- pretty:
- indent -br -brs -ts4 -ncdw -nce -ncs -npcs -nprs -l80 -lc80 -lp -psl -i4 -nut *.c *.h
- test:
- cd test && make
- docs:
- cd Docs && make
- webdocs:
- scp Docs/FAQ.html Docs/FAQ.pdf Docs/CHANGELOG shell.sf.net:htdocs/
- release:
- mkdir ../$(RELEASEDIR)
- cp -r * ../$(RELEASEDIR)/
- cd ../$(RELEASEDIR) && make distclean
- -cd ../$(RELEASEDIR)/Docs && make
- rm -rf ../$(RELEASEDIR)/CVS ../$(RELEASEDIR)/test/CVS
- rm -rf ../$(RELEASEDIR)/Docs/CVS ../$(RELEASEDIR)/man/CVS
- cd .. && tar zcvf $(RELEASEDIR).tar.gz $(RELEASEDIR)/*
- rerelease:
- -rm -rf ../$(RELEASEDIR) ../$(RELEASEDIR).tar.gz
- mkdir ../$(RELEASEDIR)
- cp -r * ../$(RELEASEDIR)/
- cd ../$(RELEASEDIR) && make distclean
- -cd ../$(RELEASEDIR)/Docs && make
- rm -rf ../$(RELEASEDIR)/CVS ../$(RELEASEDIR)/test/CVS
- rm -rf ../$(RELEASEDIR)/Docs/CVS ../$(RELEASEDIR)/man/CVS
- cd .. && tar zcvf $(RELEASEDIR).tar.gz $(RELEASEDIR)/*
- srpm:
- -rm -rf ../$(RELEASEDIR) ../$(RELEASEDIR).tar.gz
- mkdir ../$(RELEASEDIR)
- cp -r * ../$(RELEASEDIR)/
- cd ../$(RELEASEDIR) && mv tcpreplay.spec tcpreplay.SPEC
- cd ../$(RELEASEDIR) && make distclean
- cd ../$(RELEASEDIR) && mv tcpreplay.SPEC tcpreplay.spec
- -cd ../$(RELEASEDIR)/Docs && make
- cd .. && tar zcvf $(RELEASEDIR).tar.gz $(RELEASEDIR)/*
- rpm -ts ../$(RELEASEDIR).tar.gz --nodeps
|