b0749e9e6bea467467e6b92c15a230816c5c2dbc
[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/psycutil/libgnunetpsycutil.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  gnunet-social
35
36 libexec_PROGRAMS = \
37  gnunet-service-social
38
39 gnunet_social_SOURCES = \
40   gnunet-social.c
41 gnunet_social_LDADD = \
42   libgnunetsocial.la \
43   $(top_builddir)/src/core/libgnunetcore.la \
44   $(top_builddir)/src/util/libgnunetutil.la
45
46 gnunet_service_social_SOURCES = \
47  gnunet-service-social.c
48 gnunet_service_social_LDADD = \
49   $(top_builddir)/src/util/libgnunetutil.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
52   $(top_builddir)/src/psyc/libgnunetpsyc.la \
53   $(top_builddir)/src/core/libgnunetcore.la \
54   $(top_builddir)/src/identity/libgnunetidentity.la \
55   $(top_builddir)/src/gns/libgnunetgns.la \
56   $(top_builddir)/src/namestore/libgnunetnamestore.la \
57   $(GN_LIBINTL)
58
59
60 if HAVE_TESTING
61 check_PROGRAMS = \
62  test_social
63 endif
64
65 if ENABLE_TEST_RUN
66 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
67 TESTS = $(check_PROGRAMS)
68 endif
69
70 test_social_SOURCES = \
71  test_social.c
72 test_social_LDADD = \
73   libgnunetsocial.la \
74   $(top_builddir)/src/testing/libgnunettesting.la \
75   $(top_builddir)/src/util/libgnunetutil.la \
76   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
77   $(top_builddir)/src/core/libgnunetcore.la \
78   $(top_builddir)/src/identity/libgnunetidentity.la
79
80 EXTRA_DIST = \
81   test_social.conf