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