Code

Fix test from last commit
[nagiosplug.git] / lib / Makefile.am
index afa91a6d00af3d644e64025374ef3f358ecf5f63..73c12911e1ab34351e54897d6010cde42e208d47 100644 (file)
@@ -1,12 +1,19 @@
 ## Process this file with automake to produce Makefile.in
 
-EXTRA_DIST = getloadavg.m4
+SUBDIRS = tests
 
 noinst_LIBRARIES = libnagiosplug.a
 
-noinst_HEADERS = getopt.h
 
-libnagiosplug_a_SOURCES = getopt.c getopt1.c getloadavg.c
+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
 
-INCLUDES = -I$(srcdir)
+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 $@