change default configurations on systems with UNIX domain sockets to NOT specify...
[oweals/gnunet.git] / src / peerinfo / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 pkgcfg_DATA = \
6   peerinfo.conf
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = --coverage -O0
14   XLIB = -lgcov
15 endif
16
17 lib_LTLIBRARIES = libgnunetpeerinfo.la
18
19 libgnunetpeerinfo_la_SOURCES = \
20   peerinfo_api.c peerinfo.h \
21   peerinfo_api_notify.c
22 libgnunetpeerinfo_la_LIBADD = \
23   $(top_builddir)/src/hello/libgnunethello.la \
24   $(top_builddir)/src/util/libgnunetutil.la \
25   $(XLIB)
26 libgnunetpeerinfo_la_LDFLAGS = \
27   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
28   -version-info 0:0:0
29
30
31 bin_PROGRAMS = \
32  gnunet-service-peerinfo
33
34 gnunet_service_peerinfo_SOURCES = \
35  gnunet-service-peerinfo.c         
36 gnunet_service_peerinfo_LDADD = \
37   $(top_builddir)/src/hello/libgnunethello.la \
38   $(top_builddir)/src/statistics/libgnunetstatistics.la \
39   $(top_builddir)/src/util/libgnunetutil.la 
40
41 if HAVE_BENCHMARKS
42  PEERINFO_BENCHMARKS = \
43  perf_peerinfo_api
44 endif
45
46 check_PROGRAMS = \
47  test_peerinfo_api \
48  $(PEERINFO_BENCHMARKS) 
49
50 if ENABLE_TEST_RUN
51 TESTS = $(check_PROGRAMS)
52 endif
53
54 test_peerinfo_api_SOURCES = \
55  test_peerinfo_api.c
56 test_peerinfo_api_LDADD = \
57  $(top_builddir)/src/hello/libgnunethello.la \
58  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
59  $(top_builddir)/src/util/libgnunetutil.la  
60
61 perf_peerinfo_api_SOURCES = \
62  perf_peerinfo_api.c
63 perf_peerinfo_api_LDADD = \
64  $(top_builddir)/src/hello/libgnunethello.la \
65  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
66  $(top_builddir)/src/util/libgnunetutil.la  
67
68 EXTRA_DIST = \
69   test_peerinfo_api_data.conf