more stats
[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 -luuid -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 libgnunetpeerinfo_la_LIBADD = \
17   $(top_builddir)/src/hello/libgnunethello.la \
18   $(top_builddir)/src/util/libgnunetutil.la \
19   $(XLIB)
20 libgnunetpeerinfo_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
22   -version-info 0:0:0
23
24
25 bin_PROGRAMS = \
26  gnunet-peerinfo \
27  gnunet-service-peerinfo
28
29 gnunet_peerinfo_SOURCES = \
30  gnunet-peerinfo.c         
31 gnunet_peerinfo_LDADD = \
32   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
33   $(top_builddir)/src/util/libgnunetutil.la 
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
43 check_PROGRAMS = \
44  test_peerinfo_api
45
46 TESTS = $(check_PROGRAMS) # $(check_SCRIPTS)
47
48 test_peerinfo_api_SOURCES = \
49  test_peerinfo_api.c
50 test_peerinfo_api_LDADD = \
51  $(top_builddir)/src/hello/libgnunethello.la \
52  $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
53  $(top_builddir)/src/util/libgnunetutil.la  
54
55 EXTRA_DIST = \
56   test_peerinfo_api_data.conf 
57
58 #check_SCRIPTS = \
59 #  test_gnunet_peerinfo.sh