summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.am
blob: b1b1d923faa810232d172dbf7746f5d3fdfd1540 (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
# 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

libsync_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined

libsync_la_SOURCES = \
  sync_api_download.c \
  sync_api_upload.c 

libsync_la_LIBADD = \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  $(XLIB)

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