2
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
3
# auto makefile for the ntop plugins.
4
# (this file is processed with 'automake' to produce Makefile.in)
5
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
7
# Luca Deri <deri@ntop.org>
8
# Rocco Carbone <rocco@ntop.org>
10
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
12
# This program is free software; you can redistribute it and/or modify
13
# it under the terms of the GNU General Public License as published by
14
# the Free Software Foundation; either version 2 of the License, or
15
# (at your option) any later version.
17
# This program is distributed in the hope that it will be useful,
18
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
# GNU General Public License for more details.
22
# You should have received a copy of the GNU General Public License
23
# along with this program; if not, write to the Free Software
24
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29
DIST_COMMON = Makefile.am Makefile.in
36
# Where to install the plugin
38
plugindir = $(libdir)/ntop/plugins
40
INCLUDES = -I.. @INCS@
45
noinst_PROGRAMS = icmpPlugin.so lastSeenPlugin.so \
47
# rmonPlugin.so wapPlugin.so
49
lib_LTLIBRARIES = libicmpPlugin.la liblastSeenPlugin.la \
51
# librmonPlugin.la libwapPlugin.la
53
libicmpPlugin_la_SOURCES = icmpPlugin.c
54
libicmpPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
56
liblastSeenPlugin_la_SOURCES = lastSeenPlugin.c
57
liblastSeenPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
59
libnfsPlugin_la_SOURCES = nfsPlugin.c
60
libnfsPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
62
#librmonPlugin_la_SOURCES = rmonPlugin.c rmon.h
63
#librmonPlugin_la_LDFLAGS = @SNMPLIBS@ -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
65
#libwapPlugin_la_SOURCES = wapPlugin.c
66
#libwapPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
70
# Dependencies to allow ntop loading plugins on-place
71
# by default ntop looks for plugins in the plugins/ subdirectory
75
.libs/libicmpPlugin.so@SO_VERSION_PATCH@:
76
cc -bundle -flat_namespace -undefined suppress -o .libs/libicmpPlugin.so@SO_VERSION_PATCH@ icmpPlugin.o
78
icmpPlugin.so: .libs/libicmpPlugin.so@SO_VERSION_PATCH@
79
@ln -s .libs/libicmpPlugin.so icmpPlugin.so
81
.libs/liblastSeenPlugin.so@SO_VERSION_PATCH@:
82
cc -bundle -flat_namespace -undefined suppress -o .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@ lastSeenPlugin.o
84
lastSeenPlugin.so: .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@
85
@ln -s .libs/liblastSeenPlugin.so lastSeenPlugin.so
87
.libs/libnfsPlugin.so@SO_VERSION_PATCH@:
88
cc -bundle -flat_namespace -undefined suppress -o .libs/libnfsPlugin.so@SO_VERSION_PATCH@ nfsPlugin.o
90
nfsPlugin.so: .libs/libnfsPlugin.so@SO_VERSION_PATCH@
91
@ln -s .libs/libnfsPlugin.so nfsPlugin.so
93
#.libs/librmonPlugin.so@SO_VERSION_PATCH@:
94
# cc -bundle -flat_namespace -undefined suppress -o .libs/librmonPlugin.so@SO_VERSION_PATCH@ rmonPlugin.o
96
#rmonPlugin.so: .libs/librmonPlugin.so@SO_VERSION_PATCH@
97
# @ln -s .libs/librmonPlugin.so rmonPlugin.so
99
#.libs/libwapPlugin.so@SO_VERSION_PATCH@:
100
# cc -bundle -flat_namespace -undefined suppress -o .libs/libwapPlugin.so@SO_VERSION_PATCH@ wapPlugin.o
102
#wapPlugin.so: .libs/libwapPlugin.so@SO_VERSION_PATCH@
103
# @ln -s .libs/libwapPlugin.so wapPlugin.so
106
@$(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir);
107
@for file in $(noinst_PROGRAMS); do \
108
cp -p $$file $(DESTDIR)$(plugindir)/$$file; \
110
# remove installed libraries
111
@for file in $(lib_LTLIBRARIES); do \
112
rm -f $(DESTDIR)$(libdir)/$$file; \