|
Last change
on this file since 465 was
465,
checked in by dlawson, 8 years ago
|
|
removing old original Makefiles
adding Makefile.am in appropriate directories
modifying changelog, readme.
adding AC_PROG_CXX to configure.in
updated configure.in and tools/Makefile.am for the tools
fixed a bug in libpacketdump/Makefile.am
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | lib_LTLIBRARIES = libpacketdump.la |
|---|
| 2 | include_HEADERS = libpacketdump.h |
|---|
| 3 | |
|---|
| 4 | #LINK_LAYERS=$(addsuffix .so,$(basename $(wildcard link_*.cc))) |
|---|
| 5 | #ETH_LAYERS=$(addsuffix .so,$(basename $(wildcard eth_*.cc))) |
|---|
| 6 | #IP_LAYERS=$(addsuffix .so,$(basename $(wildcard ip_*.cc))) |
|---|
| 7 | #TCP_LAYERS=$(addsuffix .so,$(basename $(wildcard tcp_*.cc))) |
|---|
| 8 | |
|---|
| 9 | LINK_LAYERS=$(wildcard link_*.cc) |
|---|
| 10 | ETH_LAYERS=$(wildcard eth_*.cc) |
|---|
| 11 | IP_LAYERS=$(wildcard ip_*.cc) |
|---|
| 12 | TCP_LAYERS=$(wildcard tcp_*.cc) |
|---|
| 13 | |
|---|
| 14 | PLUGINSOURCES=$(LINK_LAYERS) $(ETH_LAYERS) $(IP_LAYERS) $(TCP_LAYERS) |
|---|
| 15 | PLUGINS=$(addsuffix .so,$(basename $(PLUGINSOURCES))) |
|---|
| 16 | |
|---|
| 17 | libpacketdump_la_SOURCES = libpacketdump.cc $(PLUGINSOURCES) |
|---|
| 18 | |
|---|
| 19 | PLUGINDIR=$(libdir)/libpacketdump |
|---|
| 20 | |
|---|
| 21 | INCLUDES= @ADD_INCLS@ -I../lib -I../ |
|---|
| 22 | libpacketdump_la_LIBADD = @ADD_LIBS@ -ldl |
|---|
| 23 | libpacketdump_la_LDFLAGS=-version-info 2:24:0 @ADD_LDFLAGS@ |
|---|
| 24 | |
|---|
| 25 | AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(PLUGINDIR)\" -rdynamic $(INCLUDES) |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | %.so: %.cc |
|---|
| 30 | $(CXX) $(AM_CXXFLAGS) -fpic -shared $^ -o $@ |
|---|
| 31 | |
|---|
| 32 | all-local: $(PLUGINS) |
|---|
| 33 | |
|---|
| 34 | clean-local: |
|---|
| 35 | rm -f $(PLUGINS) |
|---|
| 36 | |
|---|
| 37 | install-exec-local: |
|---|
| 38 | for plugin in $(PLUGINS); do install -D -m 755 $$plugin $(PLUGINDIR)/$$plugin; done |
|---|
Note: See
TracBrowser
for help on using the repository browser.