diff options
author | Yang Tse <yangsita@gmail.com> | 2011-05-25 20:22:46 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-05-25 20:24:03 +0200 |
commit | 9f390a356ea464183cc11ef44c48968ccdcd36ac (patch) | |
tree | a6b88053c996b6c390f568a79605ead7d305a94e /tests/unit/Makefile.am | |
parent | 017ee34bbad9885e524f735401be7ad859cdbd84 (diff) | |
download | curl-9f390a356ea464183cc11ef44c48968ccdcd36ac.tar.gz |
unit tests: build adjustment
Also define UNITTESTS macro when building unit test sources.
Fixing compiler warning: external definition with no prior declaration
Diffstat (limited to 'tests/unit/Makefile.am')
-rw-r--r-- | tests/unit/Makefile.am | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index bdee6c102..cdd32a5e1 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -40,7 +40,7 @@ INCLUDES = -I$(top_builddir)/include/curl \ -I$(top_srcdir)/include \ -I$(top_builddir)/lib \ -I$(top_srcdir)/lib \ - -I$(top_srcdir)/tests/libtest \ + -I$(top_srcdir)/tests/libtest \ -I$(top_builddir)/ares \ -I$(top_srcdir)/ares else @@ -49,16 +49,16 @@ INCLUDES = -I$(top_builddir)/include/curl \ -I$(top_srcdir)/include \ -I$(top_builddir)/lib \ -I$(top_srcdir)/lib \ - -I$(top_srcdir)/tests/libtest + -I$(top_srcdir)/tests/libtest endif if CURLDEBUG EXTRA_DIST = Makefile.inc -LDADD = $(top_builddir)/tests/libtest/first.o $(top_builddir)/lib/libcurlu.la \ - @CURL_LIBS@ +LDADD = $(top_builddir)/lib/libcurlu.la @CURL_LIBS@ DEPENDENCIES = $(top_builddir)/lib/libcurlu.la +CFLAGS += -DUNITTESTS # Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES, # noinst_PROGRAMS, lib*_SOURCES, and lib*_CFLAGS) |