From 8fb222266c5bf9181cd934c27528507d45476dad Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 8 Jan 2013 12:27:48 +0100 Subject: Build common code into noinst libraries * This is cleaner than building the same source files all over the place over and over. * Works better with code coverage. --- common/tests/Makefile.am | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'common/tests') diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am index 11f2369..af61786 100644 --- a/common/tests/Makefile.am +++ b/common/tests/Makefile.am @@ -11,21 +11,17 @@ INCLUDES = \ -I$(COMMON) \ $(CUTEST_CFLAGS) -LDADD = $(CUTEST_LIBS) +LDADD = \ + $(top_builddir)/common/libp11-library.la \ + $(top_builddir)/common/libp11-compat.la \ + $(CUTEST_LIBS) \ + $(NULL) CHECK_PROGS = \ test-dict \ test-array \ $(NULL) -test_dict_SOURCES = \ - test-dict.c \ - $(COMMON)/dict.c - -test_array_SOURCES = \ - test-array.c \ - $(COMMON)/array.c - noinst_PROGRAMS = \ $(CHECK_PROGS) -- cgit v1.1