source: libpacketdump/Makefile.am @ 9461526

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

Don't "make clean" away .protocol files

  • 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)
8TEXT_PROTOCOLS=$(wildcard *.protocol)
9
10PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS)
11PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES)))
12ALLPLUGINS=$(PLUGINS) $(TEXT_PROTOCOLS)
13
14SUBDIRS = parser
15
16libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES)
17
18PLUGINDIR=$(libdir)/libpacketdump
19
20INCLUDES= @ADD_INCLS@ -I../lib -I../
21libpacketdump_la_LIBADD = @ADD_LIBS@ -lparser
22libpacketdump_la_LDFLAGS=\
23        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
24        @ADD_LDFLAGS@ \
25        -L./parser
26
27AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES)
28
29
30
31%.so: %.cc
32        $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@
33
34all-local: $(ALLPLUGINS)
35       
36clean-local:
37        rm -f $(PLUGINS)
38
39install-exec-local:
40        mkdir -p $(DESTDIR)$(PLUGINDIR); for plugin in $(ALLPLUGINS); do install -m 755 $$plugin $(DESTDIR)$(PLUGINDIR)/$$plugin; done
41
42uninstall-local:
43        for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done
44        rmdir $(PLUGINDIR)
Note: See TracBrowser for help on using the repository browser.