Code

Fix Debian bug #545940: Failure when run via ePN
[nagiosplug.git] / lib / Makefile.am
index 6353d01c343726671741a5bb47b4aec7294366ec..17e4c1b0fae55af4bd30a7d3dbb113717278af33 100644 (file)
@@ -1,9 +1,19 @@
 ## Process this file with automake to produce Makefile.in
 
+SUBDIRS = . tests
+
 noinst_LIBRARIES = libnagiosplug.a
 
-noinst_HEADERS = getopt.h fsusage.h mountlist.h
 
-libnagiosplug_a_SOURCES = getopt.c getopt1.c getloadavg.c snprintf.c fsusage.c mountlist.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
+
+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 $@
 
-INCLUDES = -I$(srcdir)