pkgconfig_DATA =
TPHONY =
+TESTS =
check_PROGRAMS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
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
#