diff options
author | Kamil Dudka <kdudka@redhat.com> | 2013-05-03 23:03:58 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2013-05-06 15:03:12 +0200 |
commit | 683f2b832388d08999620ee45cb619a7afd42aaf (patch) | |
tree | aa9632633cdcbaa972c799dd5e2ea7ffbc745987 /tests/unit | |
parent | 2de20dd9a1c6ad4d576c60ab704c30abfc826b1a (diff) | |
download | curl-683f2b832388d08999620ee45cb619a7afd42aaf.tar.gz |
src/Makefile.am: build static lib for unit tests if enabled
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Makefile.am | 11 |
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 |