4c600c4fe259532653c37e140de80008f6075668
[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/arm/libgnunetarm.la \
20   $(top_builddir)/src/util/libgnunetutil.la \
21   $(GN_LIBINTL) $(XLIB)
22 libgnunetcore_la_LDFLAGS = \
23   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
24   -version-info 0:0:0
25
26
27 bin_PROGRAMS = \
28  gnunet-service-core
29
30 gnunet_service_core_SOURCES = \
31  gnunet-service-core.c 
32 gnunet_service_core_LDADD = \
33   $(top_builddir)/src/hello/libgnunethello.la \
34   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.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
44 TESTS = $(check_PROGRAMS)
45
46 test_core_api_SOURCES = \
47  test_core_api.c
48 test_core_api_LDADD = \
49  $(top_builddir)/src/arm/libgnunetarm.la \
50  $(top_builddir)/src/core/libgnunetcore.la \
51  $(top_builddir)/src/transport/libgnunettransport.la \
52  $(top_builddir)/src/util/libgnunetutil.la  
53
54
55 test_core_api_start_only_SOURCES = \
56  test_core_api_start_only.c
57 test_core_api_start_only_LDADD = \
58  $(top_builddir)/src/arm/libgnunetarm.la \
59  $(top_builddir)/src/core/libgnunetcore.la \
60  $(top_builddir)/src/util/libgnunetutil.la  
61
62
63 EXTRA_DIST = \
64   test_core_api_data.conf \
65   test_core_api_peer1.conf \
66   test_core_api_peer2.conf 
67