92c0fdc34a5e756110c5139b557aeefae9861d3e
[oweals/gnunet.git] / src / arm / 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 lib_LTLIBRARIES = libgnunetarm.la
13
14 libgnunetarm_la_SOURCES = \
15   arm_api.c arm.h
16 libgnunetarm_la_LIBADD = \
17   $(top_builddir)/src/util/libgnunetutil.la \
18   $(GN_LIBINTL) $(XLIB)
19 libgnunetarm_la_LDFLAGS = \
20   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
21   -version-info 0:0:0
22
23
24 bin_PROGRAMS = \
25  gnunet-arm \
26  gnunet-service-arm \
27  mockup-service 
28
29 gnunet_arm_SOURCES = \
30  gnunet-arm.c         
31 gnunet_arm_LDADD = \
32   $(top_builddir)/src/arm/libgnunetarm.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(GN_LIBINTL)
35
36 gnunet_service_arm_SOURCES = \
37  gnunet-service-arm.c  gnunet_service_arm_.h \
38  gnunet-service-manager.c       
39 gnunet_service_arm_LDADD = \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL)
42
43
44 mockup_service_SOURCES = \
45   mockup-service.c
46  mockup_service_LDADD = \
47  $(top_builddir)/src/util/libgnunetutil.la  
48
49
50 check_PROGRAMS = \
51  test_arm_api \
52  test_exponential_backoff \
53  test_gnunet_service_manager
54
55 check_SCRIPTS = \
56  test_gnunet_arm.sh
57
58 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
59
60 test_arm_api_SOURCES = \
61  test_arm_api.c
62 test_arm_api_LDADD = \
63   $(top_builddir)/src/arm/libgnunetarm.la \
64   $(top_builddir)/src/util/libgnunetutil.la  
65
66 test_exponential_backoff_SOURCES = \
67  test_exponential_backoff.c
68 test_exponential_backoff_LDADD = \
69   $(top_builddir)/src/arm/libgnunetarm.la \
70   $(top_builddir)/src/util/libgnunetutil.la
71
72 test_gnunet_service_manager_SOURCES = \
73  test_gnunet_service_manager.c
74  test_gnunet_service_manager_LDADD = \
75   $(top_builddir)/src/arm/libgnunetarm.la \
76   $(top_builddir)/src/util/libgnunetutil.la  
77
78 EXTRA_DIST = \
79   test_arm_api_data.conf \
80   do_start_process.c \
81   $(check_SCRIPTS)