we use CREATE INDEX IF NOT EXITS, this requires postgres>=9.6, bump dependency requir...
[oweals/gnunet.git] / src / my / Makefile.am
index 54e6d5563279f2f263174cd9bd7a117951e47bc7..959085c5fddb2bb22c1eeb91176ef07bc6f8e076 100644 (file)
@@ -15,10 +15,28 @@ endif
 
 libgnunetmy_la_SOURCES = \
   my.c \
-  my_query_helper.c
+  my_query_helper.c \
+  my_result_helper.c
+
 libgnunetmy_la_LIBADD = $(MYSQL_LDFLAGS) -lmysqlclient \
  $(top_builddir)/src/mysql/libgnunetmysql.la \
  $(top_builddir)/src/util/libgnunetutil.la
 libgnunetmy_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS) \
   -version-info 0:0:0
+
+if ENABLE_TEST_RUN
+TESTS = \
+ test_my
+endif
+
+check_PROGRAMS= \
+ test_my
+
+test_my_SOURCES = \
+  test_my.c
+test_my_LDADD = \
+  libgnunetmy.la \
+  $(top_builddir)/src/mysql/libgnunetmysql.la \
+  $(top_builddir)/src/util/libgnunetutil.la  \
+  -lmysqlclient $(XLIB)