(no commit message)
[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 if !DISABLE_TEST_RUN
48 TESTS = $(check_PROGRAMS)
49 endif
50
51 test_core_api_SOURCES = \
52  test_core_api.c
53 test_core_api_LDADD = \
54  $(top_builddir)/src/core/libgnunetcore.la \
55  $(top_builddir)/src/transport/libgnunettransport.la \
56  $(top_builddir)/src/util/libgnunetutil.la  
57
58 test_core_api_reliability_SOURCES = \
59  test_core_api_reliability.c
60 test_core_api_reliability_LDADD = \
61  $(top_builddir)/src/core/libgnunetcore.la \
62  $(top_builddir)/src/transport/libgnunettransport.la \
63  $(top_builddir)/src/util/libgnunetutil.la
64
65 test_core_api_start_only_SOURCES = \
66  test_core_api_start_only.c
67 test_core_api_start_only_LDADD = \
68  $(top_builddir)/src/core/libgnunetcore.la \
69  $(top_builddir)/src/util/libgnunetutil.la  
70
71
72 EXTRA_DIST = \
73   test_core_api_data.conf \
74   test_core_api_peer1.conf \
75   test_core_api_peer2.conf 
76