From 2ea2aea0bae2226bc90f6e66012a25fb1915099d Mon Sep 17 00:00:00 2001 From: Damien Stuart Date: Sun, 3 May 2015 09:46:37 -0400 Subject: [PATCH] Tweaks for unit test support --- client/Makefile.am | 5 ++++- lib/Makefile.am | 3 +++ server/Makefile.am | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/Makefile.am b/client/Makefile.am index a9cc9776..301c538b 100644 --- a/client/Makefile.am +++ b/client/Makefile.am @@ -8,6 +8,9 @@ BASE_SOURCE_FILES = fwknop.h config_init.c config_init.h \ fwknop_SOURCES = fwknop.c $(BASE_SOURCE_FILES) if WANT_C_UNIT_TESTS + + fwknopd_utestsdir = $(top_builddir)/tests/c-unit-tests + noinst_PROGRAMS = fwknop_utests fwknop_utests_SOURCES = fwknop_utests.c $(BASE_SOURCE_FILES) fwknop_utests_CPPFLAGS = -I $(top_builddir)/lib -I $(top_builddir)/common $(GPGME_CFLAGS) @@ -34,5 +37,5 @@ fwknop.8: $(top_srcdir)/client/fwknop.8.in < $(top_srcdir)/client/fwknop.8.in > "$@" clean-local: - rm -f fwknop.8 + rm -f fwknop.8 fwknop_utests diff --git a/lib/Makefile.am b/lib/Makefile.am index 895181d0..d76a537f 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -26,3 +26,6 @@ libfko_la_LDFLAGS = -version-info 2:3:0 $(GPGME_LIBS) -export-symbols-regex AM_CPPFLAGS = $(GPGME_CFLAGS) -I $(top_srcdir)/common include_HEADERS = fko.h + +clean-local: + rm -f fko_utests diff --git a/server/Makefile.am b/server/Makefile.am index 99b8bc15..af8c67d0 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -64,4 +64,4 @@ fwknopd.8: $(top_srcdir)/server/fwknopd.8.in < $(top_srcdir)/server/fwknopd.8.in > "$@" clean-local: - rm -f fwknopd.8 + rm -f fwknopd.8 fwknopd_utests