source: libpacketdump/Makefile.am @ fc3dcfa

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since fc3dcfa was 003cb8a, checked in by Brendon Jones <brendonj@…>, 16 years ago

Added lines to make the parser get compiled, and the resulting library used in compiling libpacketdump

  • Property mode set to 100644
File size: 1.1 KB
Line 
1lib_LTLIBRARIES = libpacketdump.la
2include_HEADERS = libpacketdump.h
3
4LINK_LAYERS=$(wildcard link_*.cc)
5ETH_LAYERS=$(wildcard eth_*.cc)
6IP_LAYERS=$(wildcard ip_*.cc)
7TCP_LAYERS=$(wildcard tcp_*.cc)
8
9PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
10PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES)))
11
12SUBDIRS = parser
13
14libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES)
15
16PLUGINDIR=$(libdir)/libpacketdump
17
18INCLUDES= @ADD_INCLS@ -I../lib -I../
19libpacketdump_la_LIBADD = @ADD_LIBS@ -lparser
20libpacketdump_la_LDFLAGS=\
21        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
22        @ADD_LDFLAGS@ \
23        -L./parser
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        mkdir -p $(DESTDIR)$(PLUGINDIR); for plugin in $(PLUGINS); do install -m 755 $$plugin $(DESTDIR)$(PLUGINDIR)/$$plugin; done
39
40uninstall-local:
41        for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done
42        rmdir $(PLUGINDIR)
Note: See TracBrowser for help on using the repository browser.