-fix
[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   $(LTLIBINTL)
27 libgnunetpeerinfo_la_LDFLAGS = \
28   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
29   -version-info 0:0:0
30
31
32 bin_PROGRAMS = \
33  gnunet-service-peerinfo
34
35 gnunet_service_peerinfo_SOURCES = \
36  gnunet-service-peerinfo.c         
37 gnunet_service_peerinfo_LDADD = \
38   $(top_builddir)/src/hello/libgnunethello.la \
39   $(top_builddir)/src/statistics/libgnunetstatistics.la \
40   $(top_builddir)/src/util/libgnunetutil.la 
41
42 if HAVE_BENCHMARKS
43  PEERINFO_BENCHMARKS = \
44  perf_peerinfo_api
45 endif
46
47 check_PROGRAMS = \
48  test_peerinfo_api \
49  $(PEERINFO_BENCHMARKS) 
50
51 if ENABLE_TEST_RUN
52 TESTS = $(check_PROGRAMS)
53 endif
54
55 test_peerinfo_api_SOURCES = \
56  test_peerinfo_api.c
57 test_peerinfo_api_LDADD = \
58  $(top_builddir)/src/hello/libgnunethello.la \
59  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
60  $(top_builddir)/src/util/libgnunetutil.la  
61
62 perf_peerinfo_api_SOURCES = \
63  perf_peerinfo_api.c
64 perf_peerinfo_api_LDADD = \
65  $(top_builddir)/src/hello/libgnunethello.la \
66  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
67  $(top_builddir)/src/util/libgnunetutil.la  
68
69 EXTRA_DIST = \
70   test_peerinfo_api_data.conf