source: examples/tracedump/Makefile @ b4cb91f

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since b4cb91f was b4cb91f, checked in by Shane Alcock <salcock@…>, 15 years ago

Changed makefile to allow overriding of the PREFIX that libtrace was
installed into
Ignore the errors with tcp options, it seems to be a buggy stack(?!)

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