error handling
[oweals/gnunet.git] / src / my / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if USE_COVERAGE
5   AM_CFLAGS = --coverage
6 endif
7
8 if HAVE_MYSQL
9 lib_LTLIBRARIES = libgnunetmy.la
10 endif
11
12 libgnunetmy_la_SOURCES = \
13   my.c \
14   my_query_helper.c \
15   my_result_helper.c
16
17 libgnunetmy_la_LIBADD = $(MYSQL_LDFLAGS) -lmysqlclient \
18  $(top_builddir)/src/mysql/libgnunetmysql.la \
19  $(top_builddir)/src/util/libgnunetutil.la
20 libgnunetmy_la_LDFLAGS = \
21  $(GN_LIB_LDFLAGS) \
22   -version-info 0:0:0
23
24 if ENABLE_TEST_RUN
25 TESTS = \
26  test_my
27 endif
28
29 EXTRA_DIST = \
30   test_my.conf
31
32 check_PROGRAMS= \
33  test_my
34
35 test_my_SOURCES = \
36   test_my.c
37 test_my_LDADD = \
38   libgnunetmy.la \
39   $(top_builddir)/src/mysql/libgnunetmysql.la \
40   $(top_builddir)/src/util/libgnunetutil.la  \
41   -lmysqlclient $(XLIB)