summaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r--plugins/Makefile.am139
1 files changed, 139 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
new file mode 100644
index 0000000..64b14bf
--- /dev/null
+++ b/plugins/Makefile.am
@@ -0,0 +1,139 @@
1## Process this file with automake to produce Makefile.in
2
3VPATH = $(top_srcdir) $(top_srcdir)/plugins $(top_srcdir)/plugins/t
4
5INCLUDES = @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@
6
7libexec_PROGRAMS = check_disk check_dummy check_ftp check_http \
8 check_imap check_load check_mrtg check_mrtgtraf \
9 check_nntp check_nwstat check_overcr \
10 check_ping check_pop check_procs check_real \
11 check_smtp check_ssh check_tcp check_time check_udp \
12 check_ups check_users check_vsz urlize \
13 @EXTRAS@
14
15EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
16 check_swap check_fping check_ldap check_game check_dig \
17 check_nagios check_by_ssh check_dns check_nt
18
19EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c snprintf.c
20
21PLUGINHDRS = common.h config.h
22
23BASEOBJS = utils.o
24NETOBJS = netutils.o $(BASEOBJS)
25NETLIBS = $(NETOBJS) $(SOCKETLIBS)
26
27TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir)
28
29TESTS = @PLUGIN_TEST@
30
31test:
32 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
33
34AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@
35
36##############################################################################
37# the actual targets
38
39check_dig_LDADD = $(BASEOBJS) popen.o
40check_disk_LDADD = $(BASEOBJS) popen.o
41check_dns_LDADD = $(BASEOBJS) popen.o
42check_dummy_LDADD = $(BASEOBJS)
43check_fping_LDADD = $(BASEOBJS) popen.o
44check_ftp_LDADD = $(NETLIBS)
45check_game_LDADD = $(BASEOBJS)
46check_http_LDADD = $(NETLIBS) $(SSLLIBS)
47check_hpjd_LDADD = $(BASEOBJS) popen.o
48check_imap_LDADD = $(NETLIBS)
49check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS)
50check_load_LDADD = $(BASEOBJS) popen.o
51check_mrtg_LDADD = $(BASEOBJS)
52check_mrtgtraf_LDADD = $(BASEOBJS)
53check_mysql_LDADD = $(BASEOBJS) $(MYSQLLIBS)
54check_nagios_LDADD = $(BASEOBJS) popen.o
55check_nntp_LDADD = $(NETLIBS)
56check_nt_LDADD = $(NETLIBS)
57check_nwstat_LDADD = $(NETLIBS)
58check_overcr_LDADD = $(NETLIBS)
59check_pgsql_LDADD = $(BASEOBJS) $(PGLIBS)
60check_ping_LDADD = $(BASEOBJS) popen.o
61check_pop_LDADD = $(NETLIBS)
62check_procs_LDADD = $(BASEOBJS) popen.o
63check_radius_LDADD = $(BASEOBJS) $(RADIUSLIBS)
64check_real_LDADD = $(NETLIBS)
65check_snmp_LDADD = $(BASEOBJS) popen.o
66check_smtp_LDADD = $(NETLIBS)
67check_ssh_LDADD = $(NETLIBS)
68check_swap_LDADD = $(BASEOBJS) popen.o
69check_tcp_LDADD = $(NETLIBS) $(SSLLIBS)
70check_time_LDADD = $(NETLIBS)
71check_udp_LDADD = $(NETLIBS)
72check_ups_LDADD = $(NETLIBS)
73check_users_LDADD = $(BASEOBJS) popen.o
74check_vsz_LDADD = $(BASEOBJS) popen.o
75check_by_ssh_LDADD = $(BASEOBJS) popen.o
76urlize_LDADD = $(BASEOBJS) popen.o
77
78check_dig_DEPENDENCIES = check_dig.c $(BASEOBJS) popen.o $(DEPLIBS)
79check_disk_DEPENDENCIES = check_disk.c $(BASEOBJS) popen.o $(DEPLIBS)
80check_dns_DEPENDENCIES = check_dns.c $(BASEOBJS) popen.o $(DEPLIBS)
81check_dummy_DEPENDENCIES = check_dummy.c $(DEPLIBS)
82check_fping_DEPENDENCIES = check_fping.c $(BASEOBJS) popen.o $(DEPLIBS)
83check_ftp_DEPENDENCIES = check_ftp.c $(NETOBJS) $(DEPLIBS)
84check_game_DEPENDENCIES = check_game.c $(DEPLIBS)
85check_http_DEPENDENCIES = check_http.c $(NETOBJS) $(DEPLIBS)
86check_hpjd_DEPENDENCIES = check_hpjd.c $(BASEOBJS) popen.o $(DEPLIBS)
87check_imap_DEPENDENCIES = check_imap.c $(NETOBJS) $(DEPLIBS)
88check_ldap_DEPENDENCIES = check_ldap.c $(NETOBJS) $(DEPLIBS)
89check_load_DEPENDENCIES = check_load.c $(BASEOBJS) popen.o $(DEPLIBS)
90check_mrtg_DEPENDENCIES = check_mrtg.c $(DEPLIBS)
91check_mrtgtraf_DEPENDENCIES = check_mrtgtraf.c $(DEPLIBS)
92check_mysql_DEPENDENCIES = check_mysql.c $(DEPLIBS)
93check_nagios_DEPENDENCIES = check_nagios.c $(BASEOBJS) popen.o $(DEPLIBS)
94check_nntp_DEPENDENCIES = check_nntp.c $(NETOBJS) $(DEPLIBS)
95check_nt_DEPENDENCIES = check_nt.c $(NETOBJS) $(DEPLIBS)
96check_nwstat_DEPENDENCIES = check_nwstat.c $(NETOBJS) $(DEPLIBS)
97check_overcr_DEPENDENCIES = check_overcr.c $(NETOBJS) $(DEPLIBS)
98check_pgsql_DEPENDENCIES = check_pgsql.c $(DEPLIBS)
99check_ping_DEPENDENCIES = check_ping.c $(BASEOBJS) popen.o $(DEPLIBS)
100check_pop_DEPENDENCIES = check_pop.c $(NETOBJS) $(DEPLIBS)
101check_procs_DEPENDENCIES = check_procs.c $(BASEOBJS) popen.o $(DEPLIBS)
102check_radius_DEPENDENCIES = check_radius.c $(DEPLIBS)
103check_real_DEPENDENCIES = check_real.c $(NETOBJS) $(DEPLIBS)
104check_snmp_DEPENDENCIES = check_snmp.c $(BASEOBJS) popen.o $(DEPLIBS)
105check_smtp_DEPENDENCIES = check_smtp.c $(NETOBJS) $(DEPLIBS)
106check_ssh_DEPENDENCIES = check_ssh.c $(NETOBJS) $(DEPLIBS)
107check_swap_DEPENDENCIES = check_swap.c $(BASEOBJS) popen.o $(DEPLIBS)
108check_tcp_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS)
109check_time_DEPENDENCIES = check_time.c $(NETOBJS) $(DEPLIBS)
110check_udp_DEPENDENCIES = check_udp.c $(NETOBJS) $(DEPLIBS)
111check_ups_DEPENDENCIES = check_ups.c $(NETOBJS) $(DEPLIBS)
112check_users_DEPENDENCIES = check_users.c $(BASEOBJS) popen.o $(DEPLIBS)
113check_vsz_DEPENDENCIES = check_vsz.c $(BASEOBJS) popen.o $(DEPLIBS)
114check_by_ssh_DEPENDENCIES = check_by_ssh.c $(BASEOBJS) popen.o $(DEPLIBS)
115urlize_DEPENDENCIES = urlize.c $(BASEOBJS) popen.o $(DEPLIBS)
116
117##############################################################################
118# secondary dependencies
119
120popen.o: popen.c popen.h $(PLUGINHDRS)
121
122utils.o: utils.c utils.h $(PLUGINHDRS)
123
124netutils.o: netutils.c netutils.h $(PLUGINHDRS)
125
126getopt.o: getopt.c getopt.h
127 $(COMPILE) -c $(srcdir)/getopt.c -o $@
128
129getopt1.o: getopt1.c getopt.h
130 $(COMPILE) -c $(srcdir)/getopt1.c -o $@
131
132snprintf.o: snprintf.c
133 $(COMPILE) @NEED_VA_LIST@ -c $? -o $@
134
135libgetopt.a: getopt.o getopt1.o
136 $(AR) -r $@ getopt.o getopt1.o
137
138libsnprintf.a: snprintf.o
139 $(AR) -r $@ snprintf.o