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