summaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r--plugins/Makefile.am16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 85e4a5d..5987690 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -1,5 +1,11 @@
1## Process this file with automake to produce Makefile.in 1## Process this file with automake to produce Makefile.in
2 2
3NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
4 @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
5-include NP-VERSION-FILE
6
7AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"'
8
3VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t 9VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t
4 10
5INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ 11INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@
@@ -65,10 +71,10 @@ check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS)
65check_load_LDADD = $(BASEOBJS) popen.o 71check_load_LDADD = $(BASEOBJS) popen.o
66check_mrtg_LDADD = $(BASEOBJS) 72check_mrtg_LDADD = $(BASEOBJS)
67check_mrtgtraf_LDADD = $(BASEOBJS) 73check_mrtgtraf_LDADD = $(BASEOBJS)
68check_mysql_CFLAGS = $(MYSQLCFLAGS) 74check_mysql_CFLAGS = $(MYSQLCFLAGS) -DNP_VERSION='"$(NP_VERSION)"'
69check_mysql_CPPFLAGS = $(MYSQLINCLUDE) 75check_mysql_CPPFLAGS = $(MYSQLINCLUDE)
70check_mysql_LDADD = $(NETLIBS) $(MYSQLLIBS) 76check_mysql_LDADD = $(NETLIBS) $(MYSQLLIBS)
71check_mysql_query_CFLAGS = $(MYSQLCFLAGS) 77check_mysql_query_CFLAGS = $(MYSQLCFLAGS) -DNP_VERSION='"$(NP_VERSION)"'
72check_mysql_query_CPPFLAGS = $(MYSQLINCLUDE) 78check_mysql_query_CPPFLAGS = $(MYSQLINCLUDE)
73check_mysql_query_LDADD = $(NETLIBS) $(MYSQLLIBS) 79check_mysql_query_LDADD = $(NETLIBS) $(MYSQLLIBS)
74check_nagios_LDADD = $(BASEOBJS) runcmd.o 80check_nagios_LDADD = $(BASEOBJS) runcmd.o
@@ -153,7 +159,7 @@ getaddrinfo.o: getaddrinfo.h $(PLUGINHDRS)
153 159
154gethostbyname.o: gethostbyname.h $(PLUGINHDRS) 160gethostbyname.o: gethostbyname.h $(PLUGINHDRS)
155 161
156all-local: $(check_tcp_programs) 162all-local: $(check_tcp_programs) NP-VERSION-FILE
157 163
158$(check_tcp_programs): check_tcp 164$(check_tcp_programs): check_tcp
159 rm -f $@ 165 rm -f $@
@@ -166,6 +172,10 @@ install-exec-hook:
166 172
167clean-local: 173clean-local:
168 rm -f $(check_tcp_programs) 174 rm -f $(check_tcp_programs)
175 rm -f NP-VERSION-FILE
169 176
170uninstall-local: 177uninstall-local:
171 cd $(DESTDIR)$(libexecdir) && rm -f $(check_tcp_programs) 178 cd $(DESTDIR)$(libexecdir) && rm -f $(check_tcp_programs)
179
180.PHONY: .FORCE-NP-VERSION-FILE
181