94db94959de4f3da49a788c653a78eef5e861eac
[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 libgnunetcore_la_LIBADD = \
19   $(top_builddir)/src/util/libgnunetutil.la \
20   $(GN_LIBINTL) $(XLIB)
21 libgnunetcore_la_LDFLAGS = \
22   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
23   -version-info 0:0:0
24
25
26 bin_PROGRAMS = \
27  gnunet-service-core
28
29 gnunet_service_core_SOURCES = \
30  gnunet-service-core.c 
31 gnunet_service_core_LDADD = \
32   $(top_builddir)/src/hello/libgnunethello.la \
33   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
34   $(top_builddir)/src/statistics/libgnunetstatistics.la \
35   $(top_builddir)/src/transport/libgnunettransport.la \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(GN_LIBINTL)
38
39
40 check_PROGRAMS = \
41  test_core_api_start_only \
42  test_core_api \
43  test_core_api_reliability
44
45 if !DISABLE_TEST_RUN
46 TESTS = $(check_PROGRAMS)
47 endif
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