diff options
-rw-r--r-- | plugins/Makefile.am | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index d21a20d..664ac52 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
@@ -1,8 +1,8 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | VPATH = $(top_srcdir) $(top_srcdir)/plugins $(top_srcdir)/plugins/t | 3 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t |
4 | 4 | ||
5 | INCLUDES = @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ | 5 | INCLUDES = -I.. -I$(top_srcdir)/lib @LDAPINCLUDE@ @PGINCLUDE@ @SSLINCLUDE@ |
6 | 6 | ||
7 | libexec_PROGRAMS = check_disk check_dummy check_http check_load \ | 7 | libexec_PROGRAMS = check_disk check_dummy check_http check_load \ |
8 | check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \ | 8 | check_mrtg check_mrtgtraf check_nwstat check_overcr check_ping \ |
@@ -16,12 +16,12 @@ EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ | |||
16 | 16 | ||
17 | check_tcp_programs = check_ftp check_imap check_nntp check_pop | 17 | check_tcp_programs = check_ftp check_imap check_nntp check_pop |
18 | 18 | ||
19 | EXTRA_DIST = t utils.c netutils.c popen.c getopt.h getopt.c getopt1.c \ | 19 | EXTRA_DIST = t utils.c netutils.c popen.c \ |
20 | snprintf.c getloadavg.c | 20 | snprintf.c getloadavg.c |
21 | 21 | ||
22 | PLUGINHDRS = common.h config.h | 22 | PLUGINHDRS = common.h config.h |
23 | 23 | ||
24 | BASEOBJS = utils.o | 24 | BASEOBJS = utils.o ../lib/libnagiosplug.a |
25 | NETOBJS = netutils.o $(BASEOBJS) | 25 | NETOBJS = netutils.o $(BASEOBJS) |
26 | NETLIBS = $(NETOBJS) $(SOCKETLIBS) | 26 | NETLIBS = $(NETOBJS) $(SOCKETLIBS) |
27 | 27 | ||
@@ -118,19 +118,9 @@ utils.o: utils.c utils.h $(PLUGINHDRS) | |||
118 | 118 | ||
119 | netutils.o: netutils.c netutils.h $(PLUGINHDRS) | 119 | netutils.o: netutils.c netutils.h $(PLUGINHDRS) |
120 | 120 | ||
121 | getopt.o: getopt.c getopt.h | ||
122 | $(COMPILE) -c $(srcdir)/getopt.c -o $@ | ||
123 | |||
124 | getopt1.o: getopt1.c getopt.h | ||
125 | $(COMPILE) -c $(srcdir)/getopt1.c -o $@ | ||
126 | |||
127 | snprintf.o: snprintf.c | 121 | snprintf.o: snprintf.c |
128 | $(COMPILE) @NEED_VA_LIST@ -c $(srcdir)/snprintf.c -o $@ | 122 | $(COMPILE) @NEED_VA_LIST@ -c $(srcdir)/snprintf.c -o $@ |
129 | 123 | ||
130 | libgetopt.a: getopt.o getopt1.o | ||
131 | $(AR) -r $@ getopt.o getopt1.o | ||
132 | $(RANLIB) $@ | ||
133 | |||
134 | libsnprintf.a: snprintf.o | 124 | libsnprintf.a: snprintf.o |
135 | $(AR) -r $@ snprintf.o | 125 | $(AR) -r $@ snprintf.o |
136 | 126 | ||