social: API changes for application connections: store/load app subscriptions to...
[oweals/gnunet.git] / src / social / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 pkgcfg_DATA = \
9   social.conf
10
11
12 if MINGW
13  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
14 endif
15
16 if USE_COVERAGE
17   AM_CFLAGS = --coverage -O0
18   XLIB = -lgcov
19 endif
20
21 lib_LTLIBRARIES = libgnunetsocial.la
22
23 libgnunetsocial_la_SOURCES = \
24   social_api.c social.h
25 libgnunetsocial_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(top_builddir)/src/env/libgnunetenv.la \
28   $(GN_LIBINTL) $(XLIB)
29 libgnunetsocial_la_LDFLAGS = \
30   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
31   -version-info 0:0:0
32
33 bin_PROGRAMS =
34
35 libexec_PROGRAMS = \
36  gnunet-service-social
37
38 gnunet_service_social_SOURCES = \
39  gnunet-service-social.c
40 gnunet_service_social_LDADD = \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/statistics/libgnunetstatistics.la \
43   $(top_builddir)/src/psyc/libgnunetpsyc.la \
44   $(top_builddir)/src/psycstore/libgnunetpsycutil.la \
45   $(top_builddir)/src/core/libgnunetcore.la \
46   $(top_builddir)/src/identity/libgnunetidentity.la \
47   $(top_builddir)/src/gns/libgnunetgns.la \
48   $(top_builddir)/src/namestore/libgnunetnamestore.la \
49   $(GN_LIBINTL)
50
51
52 if HAVE_TESTING
53 check_PROGRAMS = \
54  test_social
55 endif
56
57 if ENABLE_TEST_RUN
58 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
59 TESTS = $(check_PROGRAMS)
60 endif
61
62 test_social_SOURCES = \
63  test_social.c
64 test_social_LDADD = \
65   libgnunetsocial.la \
66   $(top_builddir)/src/testing/libgnunettesting.la \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(top_builddir)/src/env/libgnunetenv.la \
69   $(top_builddir)/src/psycstore/libgnunetpsycutil.la \
70   $(top_builddir)/src/core/libgnunetcore.la \
71   $(top_builddir)/src/identity/libgnunetidentity.la
72
73 EXTRA_DIST = \
74   test_social.conf