stuff
[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/arm/libgnunetarm.la \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   $(GN_LIBINTL) $(XLIB)
24 libgnunetcore_la_LDFLAGS = \
25   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
26   -version-info 0:0:0
27
28
29 bin_PROGRAMS = \
30  gnunet-service-core
31
32 gnunet_service_core_SOURCES = \
33  gnunet-service-core.c 
34 gnunet_service_core_LDADD = \
35   $(top_builddir)/src/hello/libgnunethello.la \
36   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
37   $(top_builddir)/src/statistics/libgnunetstatistics.la \
38   $(top_builddir)/src/transport/libgnunettransport.la \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(GN_LIBINTL)
41
42
43 check_PROGRAMS = \
44  test_core_api_start_only \
45  test_core_api 
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/arm/libgnunetarm.la \
53  $(top_builddir)/src/core/libgnunetcore.la \
54  $(top_builddir)/src/transport/libgnunettransport.la \
55  $(top_builddir)/src/util/libgnunetutil.la  
56
57
58 test_core_api_start_only_SOURCES = \
59  test_core_api_start_only.c
60 test_core_api_start_only_LDADD = \
61  $(top_builddir)/src/arm/libgnunetarm.la \
62  $(top_builddir)/src/core/libgnunetcore.la \
63  $(top_builddir)/src/util/libgnunetutil.la  
64
65
66 EXTRA_DIST = \
67   test_core_api_data.conf \
68   test_core_api_peer1.conf \
69   test_core_api_peer2.conf 
70