source: examples/tracedump/Makefile @ 3a3aa23

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

.

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