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