aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/Makefile.am
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-01 21:39:18 +0200
committerYang Tse <yangsita@gmail.com>2011-06-01 21:40:09 +0200
commitaa76dec33af3d93f046143e7e7c853c49ef54380 (patch)
treeb6403245364c2c24473d98bf81f9a78735da3732 /tests/unit/Makefile.am
parentd6bb8dcc23b5e607e2f30c63d9cf13371219df54 (diff)
unit tests: more build adjustments
Diffstat (limited to 'tests/unit/Makefile.am')
-rw-r--r--tests/unit/Makefile.am19
1 files changed, 5 insertions, 14 deletions
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index c77a516d5..d290a1dc7 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -48,30 +48,21 @@ INCLUDES = -I$(top_builddir)/include/curl \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
-I$(top_builddir)/lib \
- -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/tests/libtest
endif
-if CURLDEBUG
-
EXTRA_DIST = Makefile.inc
LDADD = $(top_builddir)/lib/libcurlu.la @CURL_LIBS@
DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
AM_CPPFLAGS = -DUNITTESTS
-# Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES,
-# noinst_PROGRAMS, lib*_SOURCES, and lib*_CFLAGS)
+# Makefile.inc provides neat definitions
include Makefile.inc
-if NO_UNDEFINED
-# The -no-undefined flag is crucial to build fine on some platforms
-UNDEF = -no-undefined
-endif
-
-
+if BUILD_UNITTESTS
+noinst_PROGRAMS = $(UNITPROGS)
else
-# do nothing if debug was not enabled
-all:
-
+noinst_PROGRAMS =
endif