aboutsummaryrefslogtreecommitdiff
path: root/src/my/Makefile.am
blob: 51e20e6bff3e8247f0e3e4ec357d4814506b8189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

if USE_COVERAGE
  AM_CFLAGS = --coverage
endif

if HAVE_MYSQL
lib_LTLIBRARIES = libgnunetmy.la
endif

libgnunetmy_la_SOURCES = \
  my.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

EXTRA_DIST = \
  test_my.conf

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)