source: libpacketdump/Makefile.am @ 803ea87

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

fixed makefile in libpacketdump to actually work!

  • Property mode set to 100644
File size: 1.1 KB
Line 
1lib_LTLIBRARIES = libpacketdump.la
2include_HEADERS = libpacketdump.h
3
4#LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc)))
5#ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc)))
6#IP_LAYERS=$(addsuffix .so,$(basename $(wildcard ip_*.cc)))
7#TCP_LAYERS=$(addsuffix .so,$(basename $(wildcard tcp_*.cc)))
8
9LINK_LAYERS=$(wildcard link_*.cc)
10ETH_LAYERS=$(wildcard eth_*.cc)
11IP_LAYERS=$(wildcard ip_*.cc)
12TCP_LAYERS=$(wildcard tcp_*.cc)
13
14PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
15PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES)))
16
17libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES)
18
19PLUGINDIR=$(libdir)/libpacketdump
20
21INCLUDES= @ADD_INCLS@ -I../lib -I../
22libpacketdump_la_LIBADD = @ADD_LIBS@ 
23libpacketdump_la_LDFLAGS=-version-info 2:23:0 @ADD_LDFLAGS@
24
25AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES)
26
27
28
29%.so: %.cc
30        $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@
31
32all-local: $(PLUGINS)
33       
34clean-local:
35        rm -f $(PLUGINS)
36
37install-exec-local:
38        for plugin in $(PLUGINS); do install -D -m 755 $$plugin $(PLUGINDIR)/$$plugin; done
Note: See TracBrowser for help on using the repository browser.