diff options
Diffstat (limited to 'plugins/Makefile.am')
| -rw-r--r-- | plugins/Makefile.am | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 69eab127..1f24d923 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
| @@ -13,8 +13,14 @@ AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"' | |||
| 13 | 13 | ||
| 14 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t | 14 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t |
| 15 | 15 | ||
| 16 | AM_CPPFLAGS = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl \ | 16 | AM_CPPFLAGS = -I.. \ |
| 17 | @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ | 17 | -I$(top_srcdir)/lib \ |
| 18 | -I$(top_srcdir)/gl \ | ||
| 19 | -I$(top_srcdir)/intl \ | ||
| 20 | -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\" \ | ||
| 21 | @LDAPINCLUDE@ \ | ||
| 22 | @PGINCLUDE@ \ | ||
| 23 | @SSLINCLUDE@ | ||
| 18 | 24 | ||
| 19 | localedir = $(datadir)/locale | 25 | localedir = $(datadir)/locale |
| 20 | # gettext docs say to use AM_CPPFLAGS, but per module_CPPFLAGS override this | 26 | # gettext docs say to use AM_CPPFLAGS, but per module_CPPFLAGS override this |
| @@ -30,22 +36,25 @@ libexec_PROGRAMS = check_apt check_cluster check_disk check_dummy check_http che | |||
| 30 | check_mrtg check_mrtgtraf check_ntp check_ntp_peer check_ping \ | 36 | check_mrtg check_mrtgtraf check_ntp check_ntp_peer check_ping \ |
| 31 | check_real check_smtp check_ssh check_tcp check_time check_ntp_time \ | 37 | check_real check_smtp check_ssh check_tcp check_time check_ntp_time \ |
| 32 | check_ups check_users negate \ | 38 | check_ups check_users negate \ |
| 33 | urlize @EXTRAS@ | 39 | urlize @EXTRAS@ \ |
| 40 | check_snmp | ||
| 34 | 41 | ||
| 35 | check_tcp_programs = check_ftp check_imap check_nntp check_pop \ | 42 | check_tcp_programs = check_ftp check_imap check_nntp check_pop \ |
| 36 | check_udp check_clamd @check_tcp_ssl@ | 43 | check_udp check_clamd @check_tcp_ssl@ |
| 37 | 44 | ||
| 38 | EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ | 45 | EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_hpjd \ |
| 39 | check_swap check_fping check_ldap check_game check_dig \ | 46 | check_swap check_fping check_ldap check_game check_dig \ |
| 40 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ | 47 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ |
| 41 | check_procs check_mysql_query check_apt check_dbi check_curl \ | 48 | check_procs check_mysql_query check_apt check_dbi check_curl \ |
| 42 | \ | 49 | \ |
| 43 | tests/test_check_swap \ | 50 | tests/test_check_swap \ |
| 51 | tests/test_check_snmp \ | ||
| 44 | tests/test_check_disk | 52 | tests/test_check_disk |
| 45 | 53 | ||
| 46 | SUBDIRS = picohttpparser | 54 | SUBDIRS = picohttpparser |
| 47 | 55 | ||
| 48 | np_test_scripts = tests/test_check_swap.t \ | 56 | np_test_scripts = tests/test_check_swap.t \ |
| 57 | tests/test_check_snmp.t \ | ||
| 49 | tests/test_check_disk.t | 58 | tests/test_check_disk.t |
| 50 | 59 | ||
| 51 | EXTRA_DIST = t \ | 60 | EXTRA_DIST = t \ |
| @@ -59,6 +68,7 @@ EXTRA_DIST = t \ | |||
| 59 | check_radius.d \ | 68 | check_radius.d \ |
| 60 | check_disk.d \ | 69 | check_disk.d \ |
| 61 | check_time.d \ | 70 | check_time.d \ |
| 71 | check_users.d \ | ||
| 62 | check_load.d \ | 72 | check_load.d \ |
| 63 | check_nagios.d \ | 73 | check_nagios.d \ |
| 64 | check_dbi.d \ | 74 | check_dbi.d \ |
| @@ -77,6 +87,7 @@ EXTRA_DIST = t \ | |||
| 77 | check_ping.d \ | 87 | check_ping.d \ |
| 78 | check_by_ssh.d \ | 88 | check_by_ssh.d \ |
| 79 | check_smtp.d \ | 89 | check_smtp.d \ |
| 90 | check_snmp.d \ | ||
| 80 | check_mysql.d \ | 91 | check_mysql.d \ |
| 81 | check_ntp_time.d \ | 92 | check_ntp_time.d \ |
| 82 | check_dig.d \ | 93 | check_dig.d \ |
| @@ -152,7 +163,10 @@ check_ping_LDADD = $(NETLIBS) | |||
| 152 | check_procs_LDADD = $(BASEOBJS) | 163 | check_procs_LDADD = $(BASEOBJS) |
| 153 | check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS) | 164 | check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS) |
| 154 | check_real_LDADD = $(NETLIBS) | 165 | check_real_LDADD = $(NETLIBS) |
| 166 | check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c | ||
| 155 | check_snmp_LDADD = $(BASEOBJS) | 167 | check_snmp_LDADD = $(BASEOBJS) |
| 168 | check_snmp_LDFLAGS = $(AM_LDFLAGS) `net-snmp-config --libs` | ||
| 169 | check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` | ||
| 156 | check_smtp_LDADD = $(SSLOBJS) | 170 | check_smtp_LDADD = $(SSLOBJS) |
| 157 | check_ssh_LDADD = $(NETLIBS) | 171 | check_ssh_LDADD = $(NETLIBS) |
| 158 | check_swap_SOURCES = check_swap.c check_swap.d/swap.c | 172 | check_swap_SOURCES = check_swap.c check_swap.d/swap.c |
| @@ -161,6 +175,7 @@ check_tcp_LDADD = $(SSLOBJS) | |||
| 161 | check_time_LDADD = $(NETLIBS) | 175 | check_time_LDADD = $(NETLIBS) |
| 162 | check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS) | 176 | check_ntp_time_LDADD = $(NETLIBS) $(MATHLIBS) |
| 163 | check_ups_LDADD = $(NETLIBS) | 177 | check_ups_LDADD = $(NETLIBS) |
| 178 | check_users_SOURCES = check_users.c check_users.d/users.c | ||
| 164 | check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) $(SYSTEMDLIBS) | 179 | check_users_LDADD = $(BASEOBJS) $(WTSAPI32LIBS) $(SYSTEMDLIBS) |
| 165 | check_by_ssh_LDADD = $(NETLIBS) | 180 | check_by_ssh_LDADD = $(NETLIBS) |
| 166 | check_ide_smart_LDADD = $(BASEOBJS) | 181 | check_ide_smart_LDADD = $(BASEOBJS) |
| @@ -173,6 +188,8 @@ endif | |||
| 173 | 188 | ||
| 174 | tests_test_check_swap_LDADD = $(BASEOBJS) $(tap_ldflags) -ltap | 189 | tests_test_check_swap_LDADD = $(BASEOBJS) $(tap_ldflags) -ltap |
| 175 | tests_test_check_swap_SOURCES = tests/test_check_swap.c check_swap.d/swap.c | 190 | tests_test_check_swap_SOURCES = tests/test_check_swap.c check_swap.d/swap.c |
| 191 | tests_test_check_snmp_LDADD = $(BASEOBJS) $(tap_ldflags) -ltap | ||
| 192 | tests_test_check_snmp_SOURCES = tests/test_check_snmp.c check_snmp.d/check_snmp_helpers.c | ||
| 176 | tests_test_check_disk_LDADD = $(BASEOBJS) $(tap_ldflags) check_disk.d/utils_disk.c -ltap | 193 | tests_test_check_disk_LDADD = $(BASEOBJS) $(tap_ldflags) check_disk.d/utils_disk.c -ltap |
| 177 | tests_test_check_disk_SOURCES = tests/test_check_disk.c | 194 | tests_test_check_disk_SOURCES = tests/test_check_disk.c |
| 178 | 195 | ||
