source: libpacketdump/Makefile @ 950d54a

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 950d54a was 950d54a, checked in by Perry Lorier <perry@…>, 16 years ago

Add libpacketdump to cvs

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