summaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r--plugins/Makefile.am44
1 files changed, 24 insertions, 20 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 3e21b4c7..420ed059 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -4,12 +4,11 @@ VPATH = $(top_srcdir) $(top_srcdir)/plugins $(top_srcdir)/plugins/t
4 4
5INCLUDES = @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ 5INCLUDES = @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@
6 6
7libexec_PROGRAMS = check_disk check_dummy check_ftp check_http \ 7libexec_PROGRAMS = check_disk check_dummy check_http check_load \
8 check_imap check_load check_mrtg check_mrtgtraf \ 8 check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \
9 check_nntp check_nwstat check_overcr \ 9 check_procs check_real check_smtp check_ssh check_tcp check_time \
10 check_ping check_pop check_procs check_real \ 10 check_udp check_ups check_users check_vsz negate urlize \
11 check_smtp check_ssh check_tcp check_time check_udp \ 11 check_ftp check_imap check_nntp check_pop \
12 check_ups check_users check_vsz negate urlize \
13 @EXTRAS@ 12 @EXTRAS@
14 13
15EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ 14EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
@@ -29,36 +28,37 @@ TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir)
29TESTS = @PLUGIN_TEST@ 28TESTS = @PLUGIN_TEST@
30 29
31test: 30test:
32perl -I $(top_builddir) -I $(top_srcdir) ../test.pl 31 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
33 32
34AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ 33AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@
35 34
36############################################################################## 35##############################################################################
37# the actual targets 36# the actual targets
38 37
38check_ftp_SOURCES = check_tcp.c
39check_imap_SOURCES = check_tcp.c
40check_nntp_SOURCES = check_tcp.c
41check_pop_SOURCES = check_tcp.c
42
39check_dig_LDADD = $(BASEOBJS) popen.o 43check_dig_LDADD = $(BASEOBJS) popen.o
40check_disk_LDADD = $(BASEOBJS) popen.o 44check_disk_LDADD = $(BASEOBJS) popen.o
41check_dns_LDADD = $(BASEOBJS) popen.o 45check_dns_LDADD = $(BASEOBJS) popen.o
42check_dummy_LDADD = $(BASEOBJS) 46check_dummy_LDADD = $(BASEOBJS)
43check_fping_LDADD = $(BASEOBJS) popen.o 47check_fping_LDADD = $(BASEOBJS) popen.o
44#check_ftp_LDADD = $(NETLIBS)
45check_game_LDADD = $(BASEOBJS) 48check_game_LDADD = $(BASEOBJS)
46check_http_LDADD = $(NETLIBS) $(SSLLIBS) 49check_http_LDADD = $(NETLIBS) $(SSLLIBS)
47check_hpjd_LDADD = $(BASEOBJS) popen.o 50check_hpjd_LDADD = $(BASEOBJS) popen.o
48#check_imap_LDADD = $(NETLIBS)
49check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS) 51check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS)
50check_load_LDADD = $(BASEOBJS) popen.o 52check_load_LDADD = $(BASEOBJS) popen.o
51check_mrtg_LDADD = $(BASEOBJS) 53check_mrtg_LDADD = $(BASEOBJS)
52check_mrtgtraf_LDADD = $(BASEOBJS) 54check_mrtgtraf_LDADD = $(BASEOBJS)
53check_mysql_LDADD = $(BASEOBJS) $(MYSQLLIBS) 55check_mysql_LDADD = $(BASEOBJS) $(MYSQLLIBS)
54check_nagios_LDADD = $(BASEOBJS) popen.o 56check_nagios_LDADD = $(BASEOBJS) popen.o
55#check_nntp_LDADD = $(NETLIBS)
56check_nt_LDADD = $(NETLIBS) 57check_nt_LDADD = $(NETLIBS)
57check_nwstat_LDADD = $(NETLIBS) 58check_nwstat_LDADD = $(NETLIBS)
58check_overcr_LDADD = $(NETLIBS) 59check_overcr_LDADD = $(NETLIBS)
59check_pgsql_LDADD = $(BASEOBJS) $(PGLIBS) 60check_pgsql_LDADD = $(BASEOBJS) $(PGLIBS)
60check_ping_LDADD = $(BASEOBJS) popen.o 61check_ping_LDADD = $(BASEOBJS) popen.o
61#check_pop_LDADD = $(NETLIBS)
62check_procs_LDADD = $(BASEOBJS) popen.o 62check_procs_LDADD = $(BASEOBJS) popen.o
63check_radius_LDADD = $(BASEOBJS) $(RADIUSLIBS) 63check_radius_LDADD = $(BASEOBJS) $(RADIUSLIBS)
64check_real_LDADD = $(NETLIBS) 64check_real_LDADD = $(NETLIBS)
@@ -75,30 +75,30 @@ check_vsz_LDADD = $(BASEOBJS) popen.o
75check_by_ssh_LDADD = $(BASEOBJS) popen.o 75check_by_ssh_LDADD = $(BASEOBJS) popen.o
76negate_LDADD = $(BASEOBJS) popen.o 76negate_LDADD = $(BASEOBJS) popen.o
77urlize_LDADD = $(BASEOBJS) popen.o 77urlize_LDADD = $(BASEOBJS) popen.o
78check_ftp_LDADD = $(NETLIBS) $(SSLLIBS)
79check_imap_LDADD = $(NETLIBS) $(SSLLIBS)
80check_nntp_LDADD = $(NETLIBS) $(SSLLIBS)
81check_pop_LDADD = $(NETLIBS) $(SSLLIBS)
78 82
79check_dig_DEPENDENCIES = check_dig.c $(BASEOBJS) popen.o $(DEPLIBS) 83check_dig_DEPENDENCIES = check_dig.c $(BASEOBJS) popen.o $(DEPLIBS)
80check_disk_DEPENDENCIES = check_disk.c $(BASEOBJS) popen.o $(DEPLIBS) 84check_disk_DEPENDENCIES = check_disk.c $(BASEOBJS) popen.o $(DEPLIBS)
81check_dns_DEPENDENCIES = check_dns.c $(BASEOBJS) popen.o $(DEPLIBS) 85check_dns_DEPENDENCIES = check_dns.c $(BASEOBJS) popen.o $(DEPLIBS)
82check_dummy_DEPENDENCIES = check_dummy.c $(DEPLIBS) 86check_dummy_DEPENDENCIES = check_dummy.c $(DEPLIBS)
83check_fping_DEPENDENCIES = check_fping.c $(BASEOBJS) popen.o $(DEPLIBS) 87check_fping_DEPENDENCIES = check_fping.c $(BASEOBJS) popen.o $(DEPLIBS)
84#check_ftp_DEPENDENCIES = check_ftp.c $(NETOBJS) $(DEPLIBS)
85check_game_DEPENDENCIES = check_game.c $(DEPLIBS) 88check_game_DEPENDENCIES = check_game.c $(DEPLIBS)
86check_http_DEPENDENCIES = check_http.c $(NETOBJS) $(DEPLIBS) 89check_http_DEPENDENCIES = check_http.c $(NETOBJS) $(DEPLIBS)
87check_hpjd_DEPENDENCIES = check_hpjd.c $(BASEOBJS) popen.o $(DEPLIBS) 90check_hpjd_DEPENDENCIES = check_hpjd.c $(BASEOBJS) popen.o $(DEPLIBS)
88#check_imap_DEPENDENCIES = check_imap.c $(NETOBJS) $(DEPLIBS)
89check_ldap_DEPENDENCIES = check_ldap.c $(NETOBJS) $(DEPLIBS) 91check_ldap_DEPENDENCIES = check_ldap.c $(NETOBJS) $(DEPLIBS)
90check_load_DEPENDENCIES = check_load.c $(BASEOBJS) popen.o $(DEPLIBS) 92check_load_DEPENDENCIES = check_load.c $(BASEOBJS) popen.o $(DEPLIBS)
91check_mrtg_DEPENDENCIES = check_mrtg.c $(DEPLIBS) 93check_mrtg_DEPENDENCIES = check_mrtg.c $(DEPLIBS)
92check_mrtgtraf_DEPENDENCIES = check_mrtgtraf.c $(DEPLIBS) 94check_mrtgtraf_DEPENDENCIES = check_mrtgtraf.c $(DEPLIBS)
93check_mysql_DEPENDENCIES = check_mysql.c $(DEPLIBS) 95check_mysql_DEPENDENCIES = check_mysql.c $(DEPLIBS)
94check_nagios_DEPENDENCIES = check_nagios.c $(BASEOBJS) popen.o $(DEPLIBS) 96check_nagios_DEPENDENCIES = check_nagios.c $(BASEOBJS) popen.o $(DEPLIBS)
95#check_nntp_DEPENDENCIES = check_nntp.c $(NETOBJS) $(DEPLIBS)
96check_nt_DEPENDENCIES = check_nt.c $(NETOBJS) $(DEPLIBS) 97check_nt_DEPENDENCIES = check_nt.c $(NETOBJS) $(DEPLIBS)
97check_nwstat_DEPENDENCIES = check_nwstat.c $(NETOBJS) $(DEPLIBS) 98check_nwstat_DEPENDENCIES = check_nwstat.c $(NETOBJS) $(DEPLIBS)
98check_overcr_DEPENDENCIES = check_overcr.c $(NETOBJS) $(DEPLIBS) 99check_overcr_DEPENDENCIES = check_overcr.c $(NETOBJS) $(DEPLIBS)
99check_pgsql_DEPENDENCIES = check_pgsql.c $(DEPLIBS) 100check_pgsql_DEPENDENCIES = check_pgsql.c $(DEPLIBS)
100check_ping_DEPENDENCIES = check_ping.c $(BASEOBJS) popen.o $(DEPLIBS) 101check_ping_DEPENDENCIES = check_ping.c $(BASEOBJS) popen.o $(DEPLIBS)
101#check_pop_DEPENDENCIES = check_pop.c $(NETOBJS) $(DEPLIBS)
102check_procs_DEPENDENCIES = check_procs.c $(BASEOBJS) popen.o $(DEPLIBS) 102check_procs_DEPENDENCIES = check_procs.c $(BASEOBJS) popen.o $(DEPLIBS)
103check_radius_DEPENDENCIES = check_radius.c $(DEPLIBS) 103check_radius_DEPENDENCIES = check_radius.c $(DEPLIBS)
104check_real_DEPENDENCIES = check_real.c $(NETOBJS) $(DEPLIBS) 104check_real_DEPENDENCIES = check_real.c $(NETOBJS) $(DEPLIBS)
@@ -115,6 +115,10 @@ check_vsz_DEPENDENCIES = check_vsz.c $(BASEOBJS) popen.o $(DEPLIBS)
115check_by_ssh_DEPENDENCIES = check_by_ssh.c $(BASEOBJS) popen.o $(DEPLIBS) 115check_by_ssh_DEPENDENCIES = check_by_ssh.c $(BASEOBJS) popen.o $(DEPLIBS)
116negate_DEPENDENCIES = negate.c $(BASEOBJS) popen.o $(DEPLIBS) 116negate_DEPENDENCIES = negate.c $(BASEOBJS) popen.o $(DEPLIBS)
117urlize_DEPENDENCIES = urlize.c $(BASEOBJS) popen.o $(DEPLIBS) 117urlize_DEPENDENCIES = urlize.c $(BASEOBJS) popen.o $(DEPLIBS)
118check_ftp_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS)
119check_imap_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS)
120check_nntp_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS)
121check_pop_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS)
118 122
119############################################################################## 123##############################################################################
120# secondary dependencies 124# secondary dependencies
@@ -126,19 +130,19 @@ utils.o: utils.c utils.h $(PLUGINHDRS)
126netutils.o: netutils.c netutils.h $(PLUGINHDRS) 130netutils.o: netutils.c netutils.h $(PLUGINHDRS)
127 131
128getopt.o: getopt.c getopt.h 132getopt.o: getopt.c getopt.h
129$(COMPILE) -c $(srcdir)/getopt.c -o $@ 133 $(COMPILE) -c $(srcdir)/getopt.c -o $@
130 134
131getopt1.o: getopt1.c getopt.h 135getopt1.o: getopt1.c getopt.h
132$(COMPILE) -c $(srcdir)/getopt1.c -o $@ 136 $(COMPILE) -c $(srcdir)/getopt1.c -o $@
133 137
134snprintf.o: snprintf.c 138snprintf.o: snprintf.c
135$(COMPILE) @NEED_VA_LIST@ -c $? -o $@ 139 $(COMPILE) @NEED_VA_LIST@ -c $? -o $@
136 140
137libgetopt.a: getopt.o getopt1.o 141libgetopt.a: getopt.o getopt1.o
138$(AR) -r $@ getopt.o getopt1.o 142 $(AR) -r $@ getopt.o getopt1.o
139 143
140libsnprintf.a: snprintf.o 144libsnprintf.a: snprintf.o
141$(AR) -r $@ snprintf.o 145 $(AR) -r $@ snprintf.o
142 146
143check_ftp check_imap check_nntp check_pop: 147check_ftp check_imap check_nntp check_pop:
144 ln -sf check_tcp $@ 148 ln -sf check_tcp $@