summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.am
blob: 1462eb552a0b6299e8d430db3db094484caf1ca3 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

lib_LTLIBRARIES = \
  libsync.la \
  libsynctesting.la

libsync_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libsync_la_SOURCES = \
  sync_api_curl_defaults.c sync_api_curl_defaults.h \
  sync_api_download.c \
  sync_api_upload.c 
libsync_la_LIBADD = \
  -lgnunetcurl \
  -lgnunetjson \
  -ltalerjson \
  -ltalerutil \
  -lgnunetutil \
  -ljansson \
  $(XLIB)

libsynctesting_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libsynctesting_la_SOURCES = \
  testing_api_cmd_backup_download.c \
  testing_api_cmd_backup_upload.c \
  testing_api_helpers.c
libsynctesting_la_LIBADD = \
  libsync.la \
  -ltalerexchange \
  -ltalerjson \
  -ltalerutil \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  -ltalertesting \
  $(XLIB)

if HAVE_LIBCURL
libsync_la_LIBADD += -lcurl
else
if HAVE_LIBGNURL
libsync_la_LIBADD += -lgnurl
endif
endif