removing dead code / unused variables
[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 = -fprofile-arcs -ftest-coverage
9 endif
10
11
12 lib_LTLIBRARIES = \
13   libgnunetcore.la
14
15 libgnunetcore_la_SOURCES = \
16   core_api.c core.h
17 libgnunetcore_la_LIBADD = \
18   $(top_builddir)/src/arm/libgnunetarm.la \
19   $(top_builddir)/src/util/libgnunetutil.la \
20   $(GN_LIBINTL) 
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/transport/libgnunettransport.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL)
37
38
39 check_PROGRAMS = \
40  test_core_api_start_only \
41  test_core_api 
42
43 TESTS = $(check_PROGRAMS)
44
45 test_core_api_SOURCES = \
46  test_core_api.c
47 test_core_api_LDADD = \
48  $(top_builddir)/src/arm/libgnunetarm.la \
49  $(top_builddir)/src/core/libgnunetcore.la \
50  $(top_builddir)/src/transport/libgnunettransport.la \
51  $(top_builddir)/src/util/libgnunetutil.la  
52
53
54 test_core_api_start_only_SOURCES = \
55  test_core_api_start_only.c
56 test_core_api_start_only_LDADD = \
57  $(top_builddir)/src/arm/libgnunetarm.la \
58  $(top_builddir)/src/core/libgnunetcore.la \
59  $(top_builddir)/src/util/libgnunetutil.la  
60
61
62 EXTRA_DIST = \
63   test_core_api_data.conf \
64   test_core_api_peer1.conf \
65   test_core_api_peer2.conf 
66