diff --git a/lib/Makefile.am b/lib/Makefile.am
index 80f3e62e028ac082c26b4c7a8f06a5fcdb5b8d11..17e4c1b0fae55af4bd30a7d3dbb113717278af33 100644 (file)
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
## Process this file with automake to produce Makefile.in
-noinst_LIBRARIES = libcoreutils.a libnagiosplug.a
-
-# Will auto pick up fsusage.c mountlist.c
-libcoreutils_a_SOURCES = \
- cloexec.c cloexec.h \
- exit.h \
- exitfail.c exitfail.h \
- fsusage.h \
- full-read.c full-read.h \
- full-write.c full-write.h \
- getopt.c getopt.h getopt1.c \
- gettext.h \
- mountlist.h \
- safe-read.c safe-read.h \
- safe-write.c safe-write.h \
- unlocked-io.h \
- xalloc.h \
- xmalloc.c \
- xstrdup.c
-
-other_coreutils_files = \
- error.c error.h \
- fsusage.c \
- getloadaavg.c \
- malloc.c \
- mountlist.c \
- realloc.c \
- strtod.c
-
-libcoreutils_a_LIBADD = $(LIBOBJS)
-libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
-
-libnagiosplug_a_SOURCES = snprintf.c
-
-INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
+SUBDIRS = . tests
+
+noinst_LIBRARIES = libnagiosplug.a
+
+
+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
+
+INCLUDES = -I$(srcdir) -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins
+
+test test-debug:
+ cd tests && make $@