summaryrefslogtreecommitdiff
path: root/src/util/Makefile.am
blob: 6bc24473ae723fc101b0ad0a9baed966be45ae2b (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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS)

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


pkgcfgdir = $(prefix)/share/sync/config.d/

bin_SCRIPTS = \
  sync-config

EXTRA_DIST = \
  $(bin_SCRIPTS) \
  sync-config.in

edit_script = $(SED) -e 's,%libdir%,$(libdir),'g $(NULL)

sync-config: sync-config.in
	rm -f $@ $@.tmp && \
	$(edit_script) $< >$@.tmp && \
	chmod a-w+x $@.tmp && \
	mv $@.tmp $@


lib_LTLIBRARIES = \
  libsyncutil.la

libsyncutil_la_SOURCES = \
  os_installation.c
libsyncutil_la_LIBADD = \
  -lgnunetutil \
  $(XLIB)
libsyncutil_la_LDFLAGS = \
  -version-info 0:0:0 \
  -export-dynamic -no-undefined