~ubuntu-branches/ubuntu/maverick/ntop/maverick

« back to all changes in this revision

Viewing changes to ntop/plugins/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Dennis Schoen
  • Date: 2002-04-12 11:38:47 UTC
  • Revision ID: james.westby@ubuntu.com-20020412113847-4k4yydw0pzybc6g8
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
3
# auto makefile for the ntop plugins.
 
4
# (this file is processed with 'automake' to produce Makefile.in)
 
5
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
6
#
 
7
# Luca Deri     <deri@ntop.org>
 
8
# Rocco Carbone <rocco@ntop.org>
 
9
#
 
10
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
11
#
 
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.
 
16
#
 
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.
 
21
#
 
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.
 
25
#
 
26
 
 
27
SUBDIRS = . #pep
 
28
 
 
29
DIST_COMMON = Makefile.am Makefile.in
 
30
CLEANFILES  =
 
31
EXTRA_DIST  =
 
32
 
 
33
SUFFIXES    = .so
 
34
 
 
35
 
36
# Where to install the plugin 
 
37
 
38
plugindir = $(libdir)/ntop/plugins
 
39
 
 
40
INCLUDES = -I.. @INCS@
 
41
 
 
42
#
 
43
# The meat for ntop
 
44
#
 
45
noinst_PROGRAMS = icmpPlugin.so lastSeenPlugin.so \
 
46
                  nfsPlugin.so 
 
47
#                 rmonPlugin.so wapPlugin.so
 
48
 
 
49
lib_LTLIBRARIES = libicmpPlugin.la liblastSeenPlugin.la \
 
50
                  libnfsPlugin.la 
 
51
#                 librmonPlugin.la libwapPlugin.la
 
52
 
 
53
libicmpPlugin_la_SOURCES = icmpPlugin.c
 
54
libicmpPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
 
55
 
 
56
liblastSeenPlugin_la_SOURCES = lastSeenPlugin.c
 
57
liblastSeenPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
 
58
 
 
59
libnfsPlugin_la_SOURCES = nfsPlugin.c
 
60
libnfsPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
 
61
 
 
62
#librmonPlugin_la_SOURCES = rmonPlugin.c rmon.h
 
63
#librmonPlugin_la_LDFLAGS = @SNMPLIBS@ -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
 
64
 
 
65
#libwapPlugin_la_SOURCES = wapPlugin.c
 
66
#libwapPlugin_la_LDFLAGS = -shared -version-info @NTOP_VERSION_INFO@ @DYN_FLAGS@
 
67
 
 
68
 
 
69
#
 
70
# Dependencies to allow ntop loading plugins on-place
 
71
# by default ntop looks for plugins in the plugins/ subdirectory
 
72
#
 
73
 
 
74
 
 
75
.libs/libicmpPlugin.so@SO_VERSION_PATCH@:
 
76
        cc -bundle -flat_namespace -undefined suppress -o .libs/libicmpPlugin.so@SO_VERSION_PATCH@ icmpPlugin.o
 
77
 
 
78
icmpPlugin.so: .libs/libicmpPlugin.so@SO_VERSION_PATCH@
 
79
        @ln -s .libs/libicmpPlugin.so icmpPlugin.so
 
80
 
 
81
.libs/liblastSeenPlugin.so@SO_VERSION_PATCH@:
 
82
        cc -bundle -flat_namespace -undefined suppress -o .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@ lastSeenPlugin.o
 
83
 
 
84
lastSeenPlugin.so: .libs/liblastSeenPlugin.so@SO_VERSION_PATCH@
 
85
        @ln -s .libs/liblastSeenPlugin.so lastSeenPlugin.so
 
86
 
 
87
.libs/libnfsPlugin.so@SO_VERSION_PATCH@:
 
88
        cc -bundle -flat_namespace -undefined suppress -o .libs/libnfsPlugin.so@SO_VERSION_PATCH@ nfsPlugin.o
 
89
 
 
90
nfsPlugin.so: .libs/libnfsPlugin.so@SO_VERSION_PATCH@
 
91
        @ln -s .libs/libnfsPlugin.so nfsPlugin.so
 
92
 
 
93
#.libs/librmonPlugin.so@SO_VERSION_PATCH@:
 
94
#       cc -bundle -flat_namespace -undefined suppress -o .libs/librmonPlugin.so@SO_VERSION_PATCH@ rmonPlugin.o
 
95
 
 
96
#rmonPlugin.so: .libs/librmonPlugin.so@SO_VERSION_PATCH@
 
97
#       @ln -s .libs/librmonPlugin.so rmonPlugin.so
 
98
 
 
99
#.libs/libwapPlugin.so@SO_VERSION_PATCH@:
 
100
#       cc -bundle -flat_namespace -undefined suppress -o .libs/libwapPlugin.so@SO_VERSION_PATCH@ wapPlugin.o
 
101
 
 
102
#wapPlugin.so: .libs/libwapPlugin.so@SO_VERSION_PATCH@
 
103
#       @ln -s .libs/libwapPlugin.so wapPlugin.so
 
104
 
 
105
install-data-local:
 
106
        @$(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir);
 
107
        @for file in $(noinst_PROGRAMS); do \
 
108
             cp -p $$file $(DESTDIR)$(plugindir)/$$file; \
 
109
         done
 
110
# remove installed libraries
 
111
        @for file in $(lib_LTLIBRARIES); do \
 
112
             rm -f $(DESTDIR)$(libdir)/$$file; \
 
113
         done