X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=lib%2FMakefile.am;h=99fa591aeb95d450976ea912d70605e3643661dd;hb=18f6835edaf7d640a2c9e476cb1babdbdadbfd9b;hp=6b3fe969018bfc337488a8a7fff22c649cd4c800;hpb=092f2e4c733e1614a1209e10e5d118dda4fd97fd;p=nagiosplug.git diff --git a/lib/Makefile.am b/lib/Makefile.am index 6b3fe96..99fa591 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,20 +1,20 @@ ## Process this file with automake to produce Makefile.in +SUBDIRS = . tests + noinst_LIBRARIES = libnagiosplug.a -libnagiosplug_a_SOURCES = getopt.c getopt1.c fsusage.c snprintf.c mountlist.c \ - xmalloc.c xstrdup.c exitfail.c +AM_CPPFLAGS = -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\" + +libnagiosplug_a_SOURCES = utils_base.c utils_disk.c utils_tcp.c utils_cmd.c +EXTRA_DIST = utils_base.h utils_disk.h utils_tcp.h utils_cmd.h parse_ini.h extra_opts.h + +if USE_PARSE_INI +libnagiosplug_a_SOURCES += parse_ini.c extra_opts.c +endif USE_PARSE_INI -libnagiosplug_a_LIBADD = @LIBOBJS@ -libnagiosplug_a_DEPENDENCIES = $(libnagiosplug_a_LIBADD) +INCLUDES = -I$(srcdir) -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins -# Extra GNU libraries required if target is missing these functions -EXTRA_DIST = ulonglong.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 \ - inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 \ - lib-link.m4 lib-prefix.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 afs.m4 \ - fstypename.m4 fsusage.m4 ls-mntd-fs.m4 getopt.h gettext.h fsusage.h mountlist.h\ - error.m4 error.h error.c getloadavg.c xalloc.h unlocked-io.h unlocked-io.m4 malloc.c \ - onceonly.m4 realloc.c strtod.c exitfail.h full-read.h xstrdup.c xalloc.m4 exit.h \ - cloexec.c cloexec.h +test test-debug: + cd tests && make $@ -INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl