whitespace
[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 if ENABLE_TEST_RUN
29 TESTS = \
30  test_my
31 endif
32
33 EXTRA_DIST = \
34   test_my.conf
35
36 check_PROGRAMS= \
37  test_my
38
39 test_my_SOURCES = \
40   test_my.c
41 test_my_LDADD = \
42   libgnunetmy.la \
43   $(top_builddir)/src/mysql/libgnunetmysql.la \
44   $(top_builddir)/src/util/libgnunetutil.la  \
45   -lmysqlclient $(XLIB)