update .gitignore files
[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/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/identity/libgnunetidentity.la \
54   $(top_builddir)/src/gns/libgnunetgns.la \
55   $(top_builddir)/src/namestore/libgnunetnamestore.la \
56   $(GN_LIBINTL)
57
58
59 if HAVE_TESTING
60 check_PROGRAMS = \
61  test_social
62 endif
63
64 if ENABLE_TEST_RUN
65 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
66 TESTS = $(check_PROGRAMS)
67 endif
68
69 test_social_SOURCES = \
70  test_social.c
71 test_social_LDADD = \
72   libgnunetsocial.la \
73   $(top_builddir)/src/testing/libgnunettesting.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
76   $(top_builddir)/src/identity/libgnunetidentity.la
77
78 EXTRA_DIST = \
79   test_social.conf