source: libpacketdump/Makefile.am @ 4e65f42

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

Fixed segmentation faults when trace_destroy is called on a trace that wasn't successfully created
libdl is now checked for and only linked against if available (BSD's don't have a libdl)
Fixed the libpacketdump .so's to use libtrace's generic protocol headers as well as trace_ether_ntoa
Added missing check for strlcpy
Added a couple of #defines to various tools that needed them under FreeBSD
Removed some needless #includes from the libpacketdump .so's

  • Property mode set to 100644
File size: 1.0 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
12libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES)
13
14PLUGINDIR=$(libdir)/libpacketdump
15
16INCLUDES= @ADD_INCLS@ -I../lib -I../
17libpacketdump_la_LIBADD = @ADD_LIBS@ 
18libpacketdump_la_LDFLAGS=\
19        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
20        @ADD_LDFLAGS@
21
22AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES)
23
24
25
26%.so: %.cc
27        $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@
28
29all-local: $(PLUGINS)
30       
31clean-local:
32        rm -f $(PLUGINS)
33
34install-exec-local:
35        mkdir -p $(DESTDIR)$(PLUGINDIR); for plugin in $(PLUGINS); do install -m 755 $$plugin $(DESTDIR)$(PLUGINDIR)/$$plugin; done
36
37uninstall-local:
38        for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done
39        rmdir $(PLUGINDIR)
Note: See TracBrowser for help on using the repository browser.