cleaning up set handlers, eliminating 2nd level demultiplexing and improving use...
[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 check_PROGRAMS= \
34  test_my
35
36 test_my_SOURCES = \
37   test_my.c
38 test_my_LDADD = \
39   libgnunetmy.la \
40   $(top_builddir)/src/mysql/libgnunetmysql.la \
41   $(top_builddir)/src/util/libgnunetutil.la  \
42   -lmysqlclient $(XLIB)