pkgconfig_DATA =
TPHONY =
+TESTS =
check_PROGRAMS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
noinst_LTLIBRARIES += libshl.la
libshl_la_SOURCES = \
- src/shl_dlist.h \
src/shl_array.h \
src/shl_hashtable.h \
external/htable.h \
external/htable.c \
- src/shl_timer.h \
src/shl_llog.h \
src/shl_misc.h
libshl_la_CPPFLAGS = $(AM_CPPFLAGS)
endif
#
+# Tests
+#
+
+if BUILD_HAVE_CHECK
+check_PROGRAMS += test_hashtable
+TESTS += test_hashtable
+endif
+
+test_sources = \
+ test/test_common.h
+test_libs = \
+ libshl.la \
+ $(CHECK_LIBS)
+test_cflags = \
+ $(AM_CPPFLAGS) \
+ $(CHECK_CFLAGS)
+test_lflags = \
+ $(AM_LDFLAGS)
+
+test_hashtable_SOURCES = test/test_hashtable.c $(test_sources)
+test_hashtable_CPPFLAGS = $(test_cflags)
+test_hashtable_LDADD = $(test_libs)
+test_hashtable_LDFLAGS = $(test_lflags)
+
+#
# Phony targets
#