diff options
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r-- | plugins/Makefile.am | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 85e4a5dd..59876902 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 | ||
3 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE | ||
4 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN | ||
5 | -include NP-VERSION-FILE | ||
6 | |||
7 | AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"' | ||
8 | |||
3 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t | 9 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t |
4 | 10 | ||
5 | INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ | 11 | INCLUDES = -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) | |||
65 | check_load_LDADD = $(BASEOBJS) popen.o | 71 | check_load_LDADD = $(BASEOBJS) popen.o |
66 | check_mrtg_LDADD = $(BASEOBJS) | 72 | check_mrtg_LDADD = $(BASEOBJS) |
67 | check_mrtgtraf_LDADD = $(BASEOBJS) | 73 | check_mrtgtraf_LDADD = $(BASEOBJS) |
68 | check_mysql_CFLAGS = $(MYSQLCFLAGS) | 74 | check_mysql_CFLAGS = $(MYSQLCFLAGS) -DNP_VERSION='"$(NP_VERSION)"' |
69 | check_mysql_CPPFLAGS = $(MYSQLINCLUDE) | 75 | check_mysql_CPPFLAGS = $(MYSQLINCLUDE) |
70 | check_mysql_LDADD = $(NETLIBS) $(MYSQLLIBS) | 76 | check_mysql_LDADD = $(NETLIBS) $(MYSQLLIBS) |
71 | check_mysql_query_CFLAGS = $(MYSQLCFLAGS) | 77 | check_mysql_query_CFLAGS = $(MYSQLCFLAGS) -DNP_VERSION='"$(NP_VERSION)"' |
72 | check_mysql_query_CPPFLAGS = $(MYSQLINCLUDE) | 78 | check_mysql_query_CPPFLAGS = $(MYSQLINCLUDE) |
73 | check_mysql_query_LDADD = $(NETLIBS) $(MYSQLLIBS) | 79 | check_mysql_query_LDADD = $(NETLIBS) $(MYSQLLIBS) |
74 | check_nagios_LDADD = $(BASEOBJS) runcmd.o | 80 | check_nagios_LDADD = $(BASEOBJS) runcmd.o |
@@ -153,7 +159,7 @@ getaddrinfo.o: getaddrinfo.h $(PLUGINHDRS) | |||
153 | 159 | ||
154 | gethostbyname.o: gethostbyname.h $(PLUGINHDRS) | 160 | gethostbyname.o: gethostbyname.h $(PLUGINHDRS) |
155 | 161 | ||
156 | all-local: $(check_tcp_programs) | 162 | all-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 | ||
167 | clean-local: | 173 | clean-local: |
168 | rm -f $(check_tcp_programs) | 174 | rm -f $(check_tcp_programs) |
175 | rm -f NP-VERSION-FILE | ||
169 | 176 | ||
170 | uninstall-local: | 177 | uninstall-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 | |||