use enum GNUNET_ATS_Network_Type instead of uint32_t where appropriate
[oweals/gnunet.git] / src / peerinfo / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   peerinfo.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = --coverage -O0
16   XLIB = -lgcov
17 endif
18
19 lib_LTLIBRARIES = libgnunetpeerinfo.la
20
21 libgnunetpeerinfo_la_SOURCES = \
22   peerinfo_api.c peerinfo.h \
23   peerinfo_api_notify.c
24 libgnunetpeerinfo_la_LIBADD = \
25   $(top_builddir)/src/hello/libgnunethello.la \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(XLIB) \
28   $(LTLIBINTL)
29 libgnunetpeerinfo_la_LDFLAGS = \
30   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
31   -version-info 0:0:0
32
33
34 libexec_PROGRAMS = \
35  gnunet-service-peerinfo
36
37 gnunet_service_peerinfo_SOURCES = \
38  gnunet-service-peerinfo.c         
39 gnunet_service_peerinfo_LDADD = \
40   $(top_builddir)/src/hello/libgnunethello.la \
41   $(top_builddir)/src/statistics/libgnunetstatistics.la \
42   $(top_builddir)/src/util/libgnunetutil.la 
43
44 if HAVE_BENCHMARKS
45  PEERINFO_BENCHMARKS = \
46  perf_peerinfo_api
47 endif
48
49 if HAVE_TESTING
50 check_PROGRAMS = \
51  test_peerinfo_api \
52  test_peerinfo_api_friend_only \
53  test_peerinfo_api_notify_friend_only \
54  $(PEERINFO_BENCHMARKS) 
55 endif
56 # test_peerinfo_shipped_hellos 
57
58
59 if ENABLE_TEST_RUN
60 TESTS = $(check_PROGRAMS)
61 endif
62
63 test_peerinfo_shipped_hellos_SOURCES = \
64  test_peerinfo_shipped_hellos.c
65 test_peerinfo_shipped_hellos_LDADD = \
66  $(top_builddir)/src/hello/libgnunethello.la \
67  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
68  $(top_builddir)/src/testing/libgnunettesting.la \
69  $(top_builddir)/src/util/libgnunetutil.la  
70
71 test_peerinfo_api_SOURCES = \
72  test_peerinfo_api.c
73 test_peerinfo_api_LDADD = \
74  $(top_builddir)/src/hello/libgnunethello.la \
75  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
76  $(top_builddir)/src/testing/libgnunettesting.la \
77  $(top_builddir)/src/util/libgnunetutil.la  
78
79 test_peerinfo_api_friend_only_SOURCES = \
80  test_peerinfo_api_friend_only.c
81 test_peerinfo_api_friend_only_LDADD = \
82  $(top_builddir)/src/hello/libgnunethello.la \
83  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
84  $(top_builddir)/src/testing/libgnunettesting.la \
85  $(top_builddir)/src/util/libgnunetutil.la  
86
87 test_peerinfo_api_notify_friend_only_SOURCES = \
88  test_peerinfo_api_notify_friend_only.c
89 test_peerinfo_api_notify_friend_only_LDADD = \
90  $(top_builddir)/src/hello/libgnunethello.la \
91  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
92  $(top_builddir)/src/testing/libgnunettesting.la \
93  $(top_builddir)/src/util/libgnunetutil.la
94
95 perf_peerinfo_api_SOURCES = \
96  perf_peerinfo_api.c
97 perf_peerinfo_api_LDADD = \
98  $(top_builddir)/src/hello/libgnunethello.la \
99  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
100  $(top_builddir)/src/testing/libgnunettesting.la \
101  $(top_builddir)/src/util/libgnunetutil.la  
102
103 EXTRA_DIST = \
104   test_peerinfo_api_data.conf