|
Last change
on this file since 468 was
468,
checked in by dlawson, 8 years ago
|
|
added --disable-libpacketdump and --disable-tools configure options.
tools/tracedump will only get built if libpacketdump is also being built
libpacketdump will fail to build (and generate an error) if there is no c++ compiler installed.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
943 bytes
|
| Line | |
|---|
| 1 | lib_LTLIBRARIES = libpacketdump.la |
|---|
| 2 | include_HEADERS = libpacketdump.h |
|---|
| 3 | |
|---|
| 4 | LINK_LAYERS=$(wildcard link_*.cc) |
|---|
| 5 | ETH_LAYERS=$(wildcard eth_*.cc) |
|---|
| 6 | IP_LAYERS=$(wildcard ip_*.cc) |
|---|
| 7 | TCP_LAYERS=$(wildcard tcp_*.cc) |
|---|
| 8 | |
|---|
| 9 | PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS) |
|---|
| 10 | PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES))) |
|---|
| 11 | |
|---|
| 12 | libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES) |
|---|
| 13 | |
|---|
| 14 | PLUGINDIR=$(libdir)/libpacketdump |
|---|
| 15 | |
|---|
| 16 | INCLUDES= @ADD_INCLS@ -I../lib -I../ |
|---|
| 17 | libpacketdump_la_LIBADD = @ADD_LIBS@ -ldl |
|---|
| 18 | libpacketdump_la_LDFLAGS=-version-info 2:24:0 @ADD_LDFLAGS@ |
|---|
| 19 | |
|---|
| 20 | AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES) |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | %.so: %.cc |
|---|
| 25 | $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@ |
|---|
| 26 | |
|---|
| 27 | all-local: $(PLUGINS) |
|---|
| 28 | |
|---|
| 29 | clean-local: |
|---|
| 30 | rm -f $(PLUGINS) |
|---|
| 31 | |
|---|
| 32 | install-exec-local: |
|---|
| 33 | for plugin in $(PLUGINS); do install -D -m 755 $$plugin $(PLUGINDIR)/$$plugin; done |
|---|
| 34 | |
|---|
| 35 | uninstall-exec-local: |
|---|
| 36 | for plugin in $(PLUGINS); do rm -f $(PLUGINDIR)/$$plugin; done |
|---|
Note: See
TracBrowser
for help on using the repository browser.