~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

Viewing changes to ntop/plugins/pep/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Generated automatically from Makefile.in by configure.
2
 
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
3
 
 
4
 
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
5
 
# This Makefile.in is free software; the Free Software Foundation
6
 
# gives unlimited permission to copy and/or distribute it,
7
 
# with or without modifications, as long as this notice is preserved.
8
 
 
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
 
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
 
# PARTICULAR PURPOSE.
13
 
 
14
 
#
15
 
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
16
 
# auto makefile for the ntop's PeP plugin.
17
 
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
18
 
#
19
 
# Rocco Carbone <rocco@ntop.org>
20
 
#
21
 
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
22
 
#
23
 
# This program is free software; you can redistribute it and/or modify
24
 
# it under the terms of the GNU General Public License as published by
25
 
# the Free Software Foundation; either version 2 of the License, or
26
 
# (at your option) any later version.
27
 
#
28
 
# This program is distributed in the hope that it will be useful,
29
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
30
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31
 
# GNU General Public License for more details.
32
 
#
33
 
# You should have received a copy of the GNU General Public License
34
 
# along with this program; if not, write to the Free Software
35
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
36
 
#
37
 
 
38
 
 
39
 
SHELL = /bin/sh
40
 
 
41
 
srcdir = .
42
 
top_srcdir = ../..
43
 
prefix = /usr
44
 
exec_prefix = ${prefix}
45
 
 
46
 
bindir = /usr/sbin
47
 
sbindir = ${exec_prefix}/sbin
48
 
libexecdir = ${exec_prefix}/libexec
49
 
datadir = ${prefix}/share
50
 
sysconfdir = ${prefix}/etc
51
 
sharedstatedir = ${prefix}/com
52
 
localstatedir = /var/lib
53
 
libdir = /usr/lib/ntop
54
 
infodir = ${prefix}/info
55
 
mandir = /usr/share/man
56
 
includedir = ${prefix}/include
57
 
oldincludedir = /usr/include
58
 
 
59
 
DESTDIR =
60
 
 
61
 
pkgdatadir = $(datadir)/ntop
62
 
pkglibdir = $(libdir)/ntop
63
 
pkgincludedir = $(includedir)/ntop
64
 
 
65
 
top_builddir = ../..
66
 
 
67
 
ACLOCAL = aclocal
68
 
AUTOCONF = autoconf
69
 
AUTOMAKE = automake
70
 
AUTOHEADER = autoheader
71
 
 
72
 
INSTALL = /usr/bin/install -c
73
 
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
74
 
INSTALL_DATA = ${INSTALL} -m 644
75
 
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
76
 
transform = s,x,x,
77
 
 
78
 
NORMAL_INSTALL = :
79
 
PRE_INSTALL = :
80
 
POST_INSTALL = :
81
 
NORMAL_UNINSTALL = :
82
 
PRE_UNINSTALL = :
83
 
POST_UNINSTALL = :
84
 
build_alias = i686-pc-linux-gnu
85
 
build_triplet = i686-pc-linux-gnu
86
 
host_alias = i686-pc-linux-gnu
87
 
host_triplet = i686-pc-linux-gnu
88
 
target_alias = i686-pc-linux-gnu
89
 
target_triplet = i686-pc-linux-gnu
90
 
AS = @AS@
91
 
CC = gcc
92
 
CCLD = gcc
93
 
CFLAGS = -g -O2 -pipe
94
 
CONFIGFILE_DIR = /usr/etc/ntop
95
 
CORELIBS =  -lpcap -lgdbm
96
 
CPP = gcc -E
97
 
DATAFILE_DIR = /usr/share/ntop
98
 
DBFILE_DIR = /var/lib/ntop
99
 
DLLTOOL = @DLLTOOL@
100
 
DYN_FLAGS = 
101
 
INCS =  -I/home/dennis/tmp/ntop/ntop-2.0.0/gdchart0.94c
102
 
INTOP = intop
103
 
LD = /usr/bin/ld
104
 
LDFLAGS = 
105
 
LIBCURSES = -lncurses
106
 
LIBREADLINE = 
107
 
LIBTOOL = $(SHELL) $(top_builddir)/libtool
108
 
LN_S = ln -s
109
 
MAKEINFO = makeinfo
110
 
MORELIBS =  -lcrypt -lm -lwrap -L/home/dennis/tmp/ntop/ntop-2.0.0/gdchart0.94c -lgdchart -lgd -lpng -lz
111
 
MOREOBJECTS = 
112
 
MORESOURCES = 
113
 
NM = /usr/bin/nm -B
114
 
NTOP_RELEASE = 2.0
115
 
NTOP_VERSION_INFO = 0:0:0
116
 
OBJDUMP = @OBJDUMP@
117
 
PACKAGE = ntop
118
 
PLUGINS = plugins
119
 
PLUGIN_DIR = /usr/lib/ntop/ntop/plugins
120
 
RANLIB = ranlib
121
 
RUN_DIR = /var/lib/ntop
122
 
SNMPLIBS = 
123
 
SO_VERSION_PATCH = 
124
 
VERSION = 2.0.0
125
 
 
126
 
DIST_COMMON = Makefile.am Makefile.in
127
 
CLEANFILES = 
128
 
EXTRA_DIST = available.pl hosts.pl
129
 
 
130
 
#
131
 
# Where to install the plugin
132
 
#
133
 
plugindir = $(libdir)/ntop/plugins
134
 
 
135
 
INCLUDES = -I.. `perl -MExtUtils::Embed -e ccopts`  -I/home/dennis/tmp/ntop/ntop-2.0.0/gdchart0.94c
136
 
PEPLIBS = `perl -MExtUtils::Embed -e ldopts`
137
 
 
138
 
#
139
 
# The meat for ntop
140
 
#
141
 
noinst_PROGRAMS = pep.so
142
 
 
143
 
plugin_LTLIBRARIES = libpep.la
144
 
 
145
 
libpep_la_SOURCES = pep.c
146
 
libpep_la_LDFLAGS = -shared -version-info 0:0:0
147
 
 
148
 
#
149
 
# LIBS must be cleared, or else libtool won't create a shared module.
150
 
# If your module needs to be linked against any particular libraries,
151
 
# please add them here.
152
 
#
153
 
LIBS = # ${PEPLIBS}
154
 
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
155
 
CONFIG_HEADER = ../../config.h
156
 
CONFIG_CLEAN_FILES = 
157
 
LTLIBRARIES =  $(plugin_LTLIBRARIES)
158
 
 
159
 
 
160
 
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I../..
161
 
CPPFLAGS = 
162
 
libpep_la_LIBADD = 
163
 
libpep_la_OBJECTS =  pep.lo
164
 
PROGRAMS =  $(noinst_PROGRAMS)
165
 
 
166
 
pep_so_SOURCES = pep.so.c
167
 
pep_so_OBJECTS =  pep.so.o
168
 
pep_so_LDADD = $(LDADD)
169
 
pep_so_DEPENDENCIES = 
170
 
pep_so_LDFLAGS = 
171
 
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
172
 
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
173
 
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
174
 
 
175
 
 
176
 
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
177
 
 
178
 
TAR = tar
179
 
GZIP_ENV = --best
180
 
DEP_FILES =  .deps/pep.P .deps/pep.so.P
181
 
SOURCES = $(libpep_la_SOURCES) pep.so.c
182
 
OBJECTS = $(libpep_la_OBJECTS) pep.so.o
183
 
 
184
 
all: all-redirect
185
 
.SUFFIXES:
186
 
.SUFFIXES: .S .c .lo .o .s
187
 
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
188
 
        cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/pep/Makefile
189
 
 
190
 
Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
191
 
        cd $(top_builddir) \
192
 
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
193
 
 
194
 
 
195
 
mostlyclean-pluginLTLIBRARIES:
196
 
 
197
 
clean-pluginLTLIBRARIES:
198
 
        -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
199
 
 
200
 
distclean-pluginLTLIBRARIES:
201
 
 
202
 
maintainer-clean-pluginLTLIBRARIES:
203
 
 
204
 
install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
205
 
        @$(NORMAL_INSTALL)
206
 
        $(mkinstalldirs) $(DESTDIR)$(plugindir)
207
 
        @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
208
 
          if test -f $$p; then \
209
 
            echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p"; \
210
 
            $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(plugindir)/$$p; \
211
 
          else :; fi; \
212
 
        done
213
 
 
214
 
uninstall-pluginLTLIBRARIES:
215
 
        @$(NORMAL_UNINSTALL)
216
 
        list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
217
 
          $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(plugindir)/$$p; \
218
 
        done
219
 
 
220
 
.s.o:
221
 
        $(COMPILE) -c $<
222
 
 
223
 
.S.o:
224
 
        $(COMPILE) -c $<
225
 
 
226
 
mostlyclean-compile:
227
 
        -rm -f *.o core *.core
228
 
 
229
 
clean-compile:
230
 
 
231
 
distclean-compile:
232
 
        -rm -f *.tab.c
233
 
 
234
 
maintainer-clean-compile:
235
 
 
236
 
.s.lo:
237
 
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
238
 
 
239
 
.S.lo:
240
 
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
241
 
 
242
 
mostlyclean-libtool:
243
 
        -rm -f *.lo
244
 
 
245
 
clean-libtool:
246
 
        -rm -rf .libs _libs
247
 
 
248
 
distclean-libtool:
249
 
 
250
 
maintainer-clean-libtool:
251
 
 
252
 
libpep.la: $(libpep_la_OBJECTS) $(libpep_la_DEPENDENCIES)
253
 
        $(LINK) -rpath $(plugindir) $(libpep_la_LDFLAGS) $(libpep_la_OBJECTS) $(libpep_la_LIBADD) $(LIBS)
254
 
 
255
 
mostlyclean-noinstPROGRAMS:
256
 
 
257
 
clean-noinstPROGRAMS:
258
 
        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
259
 
 
260
 
distclean-noinstPROGRAMS:
261
 
 
262
 
maintainer-clean-noinstPROGRAMS:
263
 
 
264
 
tags: TAGS
265
 
 
266
 
ID: $(HEADERS) $(SOURCES) $(LISP)
267
 
        list='$(SOURCES) $(HEADERS)'; \
268
 
        unique=`for i in $$list; do echo $$i; done | \
269
 
          awk '    { files[$$0] = 1; } \
270
 
               END { for (i in files) print i; }'`; \
271
 
        here=`pwd` && cd $(srcdir) \
272
 
          && mkid -f$$here/ID $$unique $(LISP)
273
 
 
274
 
TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
275
 
        tags=; \
276
 
        here=`pwd`; \
277
 
        list='$(SOURCES) $(HEADERS)'; \
278
 
        unique=`for i in $$list; do echo $$i; done | \
279
 
          awk '    { files[$$0] = 1; } \
280
 
               END { for (i in files) print i; }'`; \
281
 
        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
282
 
          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
283
 
 
284
 
mostlyclean-tags:
285
 
 
286
 
clean-tags:
287
 
 
288
 
distclean-tags:
289
 
        -rm -f TAGS ID
290
 
 
291
 
maintainer-clean-tags:
292
 
 
293
 
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
294
 
 
295
 
subdir = plugins/pep
296
 
 
297
 
distdir: $(DISTFILES)
298
 
        here=`cd $(top_builddir) && pwd`; \
299
 
        top_distdir=`cd $(top_distdir) && pwd`; \
300
 
        distdir=`cd $(distdir) && pwd`; \
301
 
        cd $(top_srcdir) \
302
 
          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu plugins/pep/Makefile
303
 
        @for file in $(DISTFILES); do \
304
 
          d=$(srcdir); \
305
 
          if test -d $$d/$$file; then \
306
 
            cp -pr $$d/$$file $(distdir)/$$file; \
307
 
          else \
308
 
            test -f $(distdir)/$$file \
309
 
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
310
 
            || cp -p $$d/$$file $(distdir)/$$file || :; \
311
 
          fi; \
312
 
        done
313
 
 
314
 
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
315
 
 
316
 
-include $(DEP_FILES)
317
 
 
318
 
mostlyclean-depend:
319
 
 
320
 
clean-depend:
321
 
 
322
 
distclean-depend:
323
 
        -rm -rf .deps
324
 
 
325
 
maintainer-clean-depend:
326
 
 
327
 
%.o: %.c
328
 
        @echo '$(COMPILE) -c $<'; \
329
 
        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
330
 
        @-cp .deps/$(*F).pp .deps/$(*F).P; \
331
 
        tr ' ' '\012' < .deps/$(*F).pp \
332
 
          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
333
 
            >> .deps/$(*F).P; \
334
 
        rm .deps/$(*F).pp
335
 
 
336
 
%.lo: %.c
337
 
        @echo '$(LTCOMPILE) -c $<'; \
338
 
        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
339
 
        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
340
 
          < .deps/$(*F).pp > .deps/$(*F).P; \
341
 
        tr ' ' '\012' < .deps/$(*F).pp \
342
 
          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
343
 
            >> .deps/$(*F).P; \
344
 
        rm -f .deps/$(*F).pp
345
 
info-am:
346
 
info: info-am
347
 
dvi-am:
348
 
dvi: dvi-am
349
 
check-am: all-am
350
 
check: check-am
351
 
installcheck-am:
352
 
installcheck: installcheck-am
353
 
install-exec-am:
354
 
install-exec: install-exec-am
355
 
 
356
 
install-data-am: install-pluginLTLIBRARIES
357
 
install-data: install-data-am
358
 
 
359
 
install-am: all-am
360
 
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
361
 
install: install-am
362
 
uninstall-am: uninstall-pluginLTLIBRARIES
363
 
uninstall: uninstall-am
364
 
all-am: Makefile $(LTLIBRARIES) $(PROGRAMS)
365
 
all-redirect: all-am
366
 
install-strip:
367
 
        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
368
 
installdirs:
369
 
        $(mkinstalldirs)  $(DESTDIR)$(plugindir)
370
 
 
371
 
 
372
 
mostlyclean-generic:
373
 
 
374
 
clean-generic:
375
 
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
376
 
 
377
 
distclean-generic:
378
 
        -rm -f Makefile $(CONFIG_CLEAN_FILES)
379
 
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
380
 
 
381
 
maintainer-clean-generic:
382
 
mostlyclean-am:  mostlyclean-pluginLTLIBRARIES mostlyclean-compile \
383
 
                mostlyclean-libtool mostlyclean-noinstPROGRAMS \
384
 
                mostlyclean-tags mostlyclean-depend mostlyclean-generic
385
 
 
386
 
mostlyclean: mostlyclean-am
387
 
 
388
 
clean-am:  clean-pluginLTLIBRARIES clean-compile clean-libtool \
389
 
                clean-noinstPROGRAMS clean-tags clean-depend \
390
 
                clean-generic mostlyclean-am
391
 
 
392
 
clean: clean-am
393
 
 
394
 
distclean-am:  distclean-pluginLTLIBRARIES distclean-compile \
395
 
                distclean-libtool distclean-noinstPROGRAMS \
396
 
                distclean-tags distclean-depend distclean-generic \
397
 
                clean-am
398
 
        -rm -f libtool
399
 
 
400
 
distclean: distclean-am
401
 
 
402
 
maintainer-clean-am:  maintainer-clean-pluginLTLIBRARIES \
403
 
                maintainer-clean-compile maintainer-clean-libtool \
404
 
                maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
405
 
                maintainer-clean-depend maintainer-clean-generic \
406
 
                distclean-am
407
 
        @echo "This command is intended for maintainers to use;"
408
 
        @echo "it deletes files that may require special tools to rebuild."
409
 
 
410
 
maintainer-clean: maintainer-clean-am
411
 
 
412
 
.PHONY: mostlyclean-pluginLTLIBRARIES distclean-pluginLTLIBRARIES \
413
 
clean-pluginLTLIBRARIES maintainer-clean-pluginLTLIBRARIES \
414
 
uninstall-pluginLTLIBRARIES install-pluginLTLIBRARIES \
415
 
mostlyclean-compile distclean-compile clean-compile \
416
 
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
417
 
clean-libtool maintainer-clean-libtool mostlyclean-noinstPROGRAMS \
418
 
distclean-noinstPROGRAMS clean-noinstPROGRAMS \
419
 
maintainer-clean-noinstPROGRAMS tags mostlyclean-tags distclean-tags \
420
 
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
421
 
distclean-depend clean-depend maintainer-clean-depend info-am info \
422
 
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
423
 
install-exec install-data-am install-data install-am install \
424
 
uninstall-am uninstall all-redirect all-am all installdirs \
425
 
mostlyclean-generic distclean-generic clean-generic \
426
 
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
427
 
 
428
 
 
429
 
pep.so: pep.c
430
 
#       ${CC} -shared ${libpep_la_OBJECTS} ${PEPLIBS} -Wl,-soname -Wl,libpep.so.0 -o pep.so
431
 
        @${CC} -shared ${libpep_la_OBJECTS} ${PEPLIBS} -o pep.so
432
 
        (cd .. && ln -fs pep/pep.so .)
433
 
 
434
 
# Tell versions [3.59,3.63) of GNU make to not export all variables.
435
 
# Otherwise a system limit (for SysV at least) may be exceeded.
436
 
.NOEXPORT: