diff --git a/lib/Makefile.am b/lib/Makefile.am
index a4f9c7d8d19f87b01e1494e21bdcf05320d4bdf3..3909bb9bf0a54fc307988d9800d4c7827f028efb 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
+SUBDIRS = tests
-# Will auto pick up fsusage.c mountlist.c
-libcoreutils_a_SOURCES = \
- cloexec.c cloexec.h \
- exit.h \
- full-read.c full-read.h \
- full-write.c full-write.h \
- gettext.h \
- safe-read.c safe-read.h \
- safe-write.c safe-write.h strcase.h xalloc-die.c
+noinst_LIBRARIES = libnagiosplug.a
-other_coreutils_files = \
- error.c error.h \
- fsusage.c \
- getloadavg.c \
- malloc.c \
- mountlist.c \
- realloc.c \
- strtod.c \
- exitfail.c exitfail.h \
- fsusage.h \
- getopt.c getopt1.c \
- mountlist.h \
- unlocked-io.h \
- xalloc.h \
- xmalloc.c
+libnagiosplug_a_SOURCES = utils_base.c utils_disk.c
+EXTRA_DIST = utils_base.h utils_disk.h
-libcoreutils_a_LIBADD = $(LIBOBJS)
-libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
+INCLUDES = -I$(srcdir) -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins
-libnagiosplug_a_SOURCES = snprintf.c
-
-INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
-
-print_coreutil_files:
- @echo $(libcoreutils_a_SOURCES) $(other_coreutils_files) $(EXTRA_DIST)
-
-# Below are from coreutil's lib/Makefile.am
-BUILT_SOURCES = $(STDBOOL_H)
-EXTRA_DIST = stdbool_.h
-MOSTLYCLEANFILES = stdbool.h stdbool.ht
-# Create stdbool.h on systems that lack a working one.
-stdbool.h: stdbool_.h
- sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
- mv $@t $@
-
-BUILT_SOURCES += $(GETOPT_H)
-EXTRA_DIST += getopt_.h getopt_int.h
-
-# We need the following in order to create an <getopt.h> when the system
-# doesn't have one that works with the given compiler.
-all-local $(lib_OBJECTS): $(GETOPT_H)
-getopt.h: getopt_.h
- cp $(srcdir)/getopt_.h $@-t
- mv $@-t $@
-MOSTLYCLEANFILES += getopt.h getopt.h-t
+test:
+ cd tests && make test