9103be38e606b8c02054f129e1671e9c946fd591
[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 MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage
10 endif
11
12 if HAVE_MYSQL
13 lib_LTLIBRARIES = libgnunetmy.la
14 endif
15
16 libgnunetmy_la_SOURCES = \
17   my.c \
18   my_query_helper.c \
19   my_result_helper.c
20
21 libgnunetmy_la_LIBADD = $(MYSQL_LDFLAGS) -lmysqlclient \
22  $(top_builddir)/src/mysql/libgnunetmysql.la \
23  $(top_builddir)/src/util/libgnunetutil.la
24 libgnunetmy_la_LDFLAGS = \
25  $(GN_LIB_LDFLAGS) \
26   -version-info 0:0:0
27
28 TESTS = \
29  test_my
30
31 check_PROGRAMS= \
32  test_my
33
34 test_my_SOURCES = \
35   test_my.c
36 test_my_LDADD = \
37   libgnunetmy.la \
38   $(top_builddir)/src/mysql/libgnunetmysql.la \
39   $(top_builddir)/src/util/libgnunetutil.la  \
40   -lmysqlclient $(XLIB)
41