aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2013-05-03 23:03:58 +0200
committerKamil Dudka <kdudka@redhat.com>2013-05-06 15:03:12 +0200
commit683f2b832388d08999620ee45cb619a7afd42aaf (patch)
treeaa9632633cdcbaa972c799dd5e2ea7ffbc745987 /tests/unit
parent2de20dd9a1c6ad4d576c60ab704c30abfc826b1a (diff)
src/Makefile.am: build static lib for unit tests if enabled
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index 666fc00ea..4b47f728b 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -40,6 +40,7 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
-I$(top_srcdir)/include \
-I$(top_builddir)/lib \
-I$(top_srcdir)/lib \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/tests/libtest \
-I$(top_builddir)/ares \
-I$(top_srcdir)/ares
@@ -49,6 +50,7 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
-I$(top_srcdir)/include \
-I$(top_builddir)/lib \
-I$(top_srcdir)/lib \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/tests/libtest
endif
@@ -57,8 +59,13 @@ EXTRA_DIST = Makefile.inc
# Prevent LIBS from being used for all link targets
LIBS = $(BLANK_AT_MAKETIME)
-LDADD = $(top_builddir)/lib/libcurlu.la @LDFLAGS@ @LIBCURL_LIBS@
-DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
+LDADD = $(top_builddir)/src/libcurltool.la \
+ $(top_builddir)/lib/libcurlu.la \
+ @LDFLAGS@ @LIBCURL_LIBS@
+
+DEPENDENCIES = $(top_builddir)/src/libcurltool.la \
+ $(top_builddir)/lib/libcurlu.la
+
AM_CPPFLAGS += -DCURL_STATICLIB -DUNITTESTS
# Makefile.inc provides neat definitions