fixing parallel build, getting rid of useless _DEPENDENCIES declarations
[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   $(top_builddir)/src/psyc/libgnunetpsycutil.la \
28   $(top_builddir)/src/core/libgnunetcore.la \
29   $(top_builddir)/src/identity/libgnunetidentity.la \
30   $(top_builddir)/src/gns/libgnunetgns.la \
31   $(top_builddir)/src/namestore/libgnunetnamestore.la \
32   $(GN_LIBINTL) $(XLIB)
33 libgnunetsocial_la_LDFLAGS = \
34   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
35   -version-info 0:0:0
36
37 bin_PROGRAMS =
38
39 libexec_PROGRAMS = \
40  gnunet-service-social
41
42 gnunet_service_social_SOURCES = \
43  gnunet-service-social.c
44 gnunet_service_social_LDADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/psyc/libgnunetpsyc.la \
48   $(top_builddir)/src/psyc/libgnunetpsycutil.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/psyc/libgnunetpsycutil.la \
70   $(top_builddir)/src/core/libgnunetcore.la \
71   $(top_builddir)/src/identity/libgnunetidentity.la
72
73 EXTRA_DIST = \
74   test_social.conf