source: examples/tracedump/Makefile @ 183b39e

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 183b39e was 183b39e, checked in by Daniel Lawson <dlawson@…>, 16 years ago

poink

  • Property mode set to 100644
File size: 931 bytes
RevLine 
[d907ff5]1CXX=g++
[183b39e]2INCLUDES=-I/usr/local/include
[505c421]3# Directory to search for plugins
4LIBDIR="./"
[d907ff5]5CXXFLAGS=-g -Wall $(INCLUDES) -rdynamic
6LDFLAGS=-L/usr/local/wand/lib
[dce95f3]7LDLIBS=-ltrace -ldl -lpcap -lzl
[d907ff5]8LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc)))
9ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc)))
10IP_LAYERS=$(addsuffix .so,$(basename $(wildcard ip_*.cc)))
[5d6ebe1]11TCP_LAYERS=$(addsuffix .so,$(basename $(wildcard tcp_*.cc)))
12PLUGINS=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
[d907ff5]13
[258c1fb]14all: tracedump $(PLUGINS) asn1-test links
[d907ff5]15
16tracedump: tracedump.cc tracedump-libtrace.o tracedump-lib.o
17
[505c421]18tracedump-lib.o: CXXFLAGS+=-DLIBDIR=$(LIBDIR)
19
[5d6ebe1]20tcp_1720.so: tcp_1720.cc asn1.o
21
[d907ff5]22%.so:%.cc
[5d6ebe1]23        $(CXX) $(CXXFLAGS) -fpic -shared $^ -o $@
24
25asn1-test: CXXFLAGS+=-DTEST
26asn1-test: asn1.cc
[258c1fb]27        $(CXX) $(CXXFLAGS) $^ -o $@
28
29links: links.txt
30        ./make_links
[d907ff5]31
32clean:
33        rm -f *.o tracedump *.so
34
[5d6ebe1]35install:
36        cp *.so $(LIBDIR)
37
[258c1fb]38.PHONY: clean all links
[d907ff5]39
Note: See TracBrowser for help on using the repository browser.