source: libpacketdump/Makefile.am @ 26c6be8

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