dead
[oweals/gnunet.git] / src / core / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12
13 lib_LTLIBRARIES = \
14   libgnunetcore.la
15
16 libgnunetcore_la_SOURCES = \
17   core_api.c core.h \
18   core_api_peer_get_info.c \
19   core_api_peer_request.c
20 libgnunetcore_la_LIBADD = \
21   $(top_builddir)/src/util/libgnunetutil.la \
22   $(GN_LIBINTL) $(XLIB)
23 libgnunetcore_la_LDFLAGS = \
24   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
25   -version-info 0:0:0
26
27
28 bin_PROGRAMS = \
29  gnunet-service-core
30
31 gnunet_service_core_SOURCES = \
32  gnunet-service-core.c 
33 gnunet_service_core_LDADD = \
34   $(top_builddir)/src/hello/libgnunethello.la \
35   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
36   $(top_builddir)/src/statistics/libgnunetstatistics.la \
37   $(top_builddir)/src/transport/libgnunettransport.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(GN_LIBINTL)
40
41
42 check_PROGRAMS = \
43  test_core_api_start_only \
44  test_core_api \
45  test_core_api_reliability
46
47 TESTS = $(check_PROGRAMS)
48
49 test_core_api_SOURCES = \
50  test_core_api.c
51 test_core_api_LDADD = \
52  $(top_builddir)/src/core/libgnunetcore.la \
53  $(top_builddir)/src/transport/libgnunettransport.la \
54  $(top_builddir)/src/util/libgnunetutil.la  
55
56 test_core_api_reliability_SOURCES = \
57  test_core_api_reliability.c
58 test_core_api_reliability_LDADD = \
59  $(top_builddir)/src/core/libgnunetcore.la \
60  $(top_builddir)/src/transport/libgnunettransport.la \
61  $(top_builddir)/src/util/libgnunetutil.la
62
63 test_core_api_start_only_SOURCES = \
64  test_core_api_start_only.c
65 test_core_api_start_only_LDADD = \
66  $(top_builddir)/src/core/libgnunetcore.la \
67  $(top_builddir)/src/util/libgnunetutil.la  
68
69
70 EXTRA_DIST = \
71   test_core_api_data.conf \
72   test_core_api_peer1.conf \
73   test_core_api_peer2.conf 
74