diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-07 09:41:54 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-07 09:41:54 (GMT) |
commit | a97e5fbda21a05574b0e3c5a5118402ebfbbd13c (patch) | |
tree | f4c50bef9a422353abf1c0e6e3ec66dbbbdf57d3 | |
parent | 3169745fa2beedbffb6a206ca4619ae41099df43 (diff) | |
download | monitoring-plugins-a97e5fbda21a05574b0e3c5a5118402ebfbbd13c.tar.gz |
Cleanup; fix the way libraries are linked; Make-It-Simple(tm)
lib/Makefile.am | 2 +-
lib/tests/Makefile.am | 37 ++++---------------------------------
2 files changed, 5 insertions(+), 34 deletions(-)
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | lib/tests/Makefile.am | 37 |
2 files changed, 5 insertions, 34 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 73c1291..17e4c1b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am | |||
@@ -1,6 +1,6 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | SUBDIRS = tests | 3 | SUBDIRS = . tests |
4 | 4 | ||
5 | noinst_LIBRARIES = libnagiosplug.a | 5 | noinst_LIBRARIES = libnagiosplug.a |
6 | 6 | ||
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am index 596d00f..1b036fe 100644 --- a/lib/tests/Makefile.am +++ b/lib/tests/Makefile.am | |||
@@ -24,40 +24,11 @@ else | |||
24 | tap_ldflags = -L/usr/local/lib | 24 | tap_ldflags = -L/usr/local/lib |
25 | endif | 25 | endif |
26 | 26 | ||
27 | test_utils_SOURCES = test_utils.c | 27 | AM_CFLAGS = -g -I$(top_srcdir)/lib -I$(top_srcdir)/gl $(tap_cflags) |
28 | test_utils_CFLAGS = -g -I.. $(tap_cflags) | 28 | AM_LDFLAGS = $(tap_ldflags) -ltap |
29 | test_utils_LDFLAGS = $(tap_ldflags) -ltap | 29 | LDADD = $(top_srcdir)/lib/libnagiosplug.a $(top_srcdir)/gl/libgnu.a |
30 | test_utils_LDADD = ../utils_base.o $(tap_ldadd) | ||
31 | 30 | ||
32 | test_disk_SOURCES = test_disk.c | 31 | SOURCES = test_utils.c test_disk.c test_tcp.c test_cmd.c test_base64.c test_ini.c test_opts.c |
33 | test_disk_CFLAGS = -g -I.. $(tap_cflags) | ||
34 | test_disk_LDFLAGS = $(tap_ldflags) -ltap | ||
35 | test_disk_LDADD = ../utils_disk.o $(top_srcdir)/gl/libgnu.a | ||
36 | |||
37 | test_tcp_SOURCES = test_tcp.c | ||
38 | test_tcp_CFLAGS = -g -I.. $(tap_cflags) | ||
39 | test_tcp_LDFLAGS = $(tap_ldflags) -ltap | ||
40 | test_tcp_LDADD = ../utils_tcp.o $(tap_ldadd) | ||
41 | |||
42 | test_cmd_SOURCES = test_cmd.c | ||
43 | test_cmd_CFLAGS = -g -I.. $(tap_cflags) | ||
44 | test_cmd_LDFLAGS = $(tap_ldflags) -ltap | ||
45 | test_cmd_LDADD = ../utils_cmd.o ../utils_base.o $(tap_ldadd) | ||
46 | |||
47 | test_base64_SOURCES = test_base64.c | ||
48 | test_base64_CFLAGS = -g -I.. $(tap_cflags) | ||
49 | test_base64_LDFLAGS = $(tap_ldflags) -ltap | ||
50 | test_base64_LDADD = $(top_srcdir)/gl/base64.o $(tap_ldadd) | ||
51 | |||
52 | test_ini_SOURCES = test_ini.c | ||
53 | test_ini_CFLAGS = -g -I.. $(tap_cflags) | ||
54 | test_ini_LDFLAGS = $(tap_ldflags) -ltap | ||
55 | test_ini_LDADD = ../utils_base.o ../parse_ini.o $(tap_ldadd) | ||
56 | |||
57 | test_opts_SOURCES = test_opts.c | ||
58 | test_opts_CFLAGS = -g -I.. $(tap_cflags) | ||
59 | test_opts_LDFLAGS = $(tap_ldflags) -ltap | ||
60 | test_opts_LDADD = ../utils_base.o ../parse_ini.o ../extra_opts.o $(tap_ldadd) | ||
61 | 32 | ||
62 | test: ${noinst_PROGRAMS} | 33 | test: ${noinst_PROGRAMS} |
63 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) | 34 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) |