train hacks
[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
37 check_PROGRAMS = \
38  test_peerinfo_api \
39  perf_peerinfo_api
40
41 if !DISABLE_TEST_RUN
42 TESTS = $(check_PROGRAMS)
43 endif
44
45 test_peerinfo_api_SOURCES = \
46  test_peerinfo_api.c
47 test_peerinfo_api_LDADD = \
48  $(top_builddir)/src/hello/libgnunethello.la \
49  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
50  $(top_builddir)/src/util/libgnunetutil.la  
51
52 perf_peerinfo_api_SOURCES = \
53  perf_peerinfo_api.c
54 perf_peerinfo_api_LDADD = \
55  $(top_builddir)/src/hello/libgnunethello.la \
56  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
57  $(top_builddir)/src/util/libgnunetutil.la  
58
59 EXTRA_DIST = \
60   test_peerinfo_api_data.conf