source: libpacketdump/Makefile.am @ e5f1431

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

Updated build system to require version number changes in only two places
(format)_set_direction no longer takes a const libtrace_packet_t
Removed unnecessary #include <dagformat.h> from linktypes.c
libtrace.h and libtrace.doxygen are now .h.in files - a la libtrace2

  • Property mode set to 100644
File size: 1016 bytes
RevLine 
[61ecfb6]1lib_LTLIBRARIES = libpacketdump.la
2include_HEADERS = libpacketdump.h
3
[77509e9]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)
[61ecfb6]13
14PLUGINDIR=$(libdir)/libpacketdump
15
[77509e9]16INCLUDES= @ADD_INCLS@ -I../lib -I../
[0b4684a]17libpacketdump_la_LIBADD = @ADD_LIBS@  -ldl
[e5f1431]18libpacketdump_la_LDFLAGS=\
19        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
20        @ADD_LDFLAGS@
[61ecfb6]21
[d18312c]22AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES)
[61ecfb6]23
24
25
26%.so: %.cc
27        $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@
28
29all-local: $(PLUGINS)
30       
31clean-local:
[77509e9]32        rm -f $(PLUGINS)
[61ecfb6]33
34install-exec-local:
[a4bfbf0]35        for plugin in $(PLUGINS); do install -D -m 755 $$plugin $(DESTDIR)$(PLUGINDIR)/$$plugin; done
[4a605a9]36
[5540efc]37uninstall-local:
[4a605a9]38        for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done
[dc98704]39        rmdir $(PLUGINDIR)
Note: See TracBrowser for help on using the repository browser.