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. --- tools/Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index bfa1953..44b8432 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,3 +1,6 @@ +NULL = + +COMMON = $(top_srcdir)/common INCLUDES = \ -I$(top_srcdir) \ @@ -9,10 +12,11 @@ bin_PROGRAMS = \ p11-kit p11_kit_SOURCES = \ - $(top_srcdir)/common/compat.c \ - $(top_srcdir)/common/compat.h \ - p11-kit.c + p11-kit.c \ + $(NULL) p11_kit_LDADD = \ $(top_builddir)/p11-kit/libp11-kit.la \ - $(LTLIBINTL) + $(top_builddir)/common/libp11-compat.la \ + $(LTLIBINTL) \ + $(NULL) -- cgit v1.1