fixes
[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 gnunet_arm_DEPENDENCIES = \
36   libgnunetarm.la                         
37
38 gnunet_service_arm_SOURCES = \
39  gnunet-service-arm.c  gnunet-service-arm.h \
40  gnunet-service-arm_interceptor.c       
41 gnunet_service_arm_LDADD = \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(GN_LIBINTL)
44 gnunet_service_arm_DEPENDENCIES = \
45   libgnunetarm.la                         
46
47
48 mockup_service_SOURCES = \
49   mockup-service.c
50  mockup_service_LDADD = \
51  $(top_builddir)/src/util/libgnunetutil.la  
52
53
54 check_PROGRAMS = \
55  test_arm_api \
56  test_exponential_backoff \
57  test_gnunet_service_manager
58
59 check_SCRIPTS = \
60  test_gnunet_arm.sh
61
62 if !DISABLE_TEST_RUN
63 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
64 endif
65
66 test_arm_api_SOURCES = \
67  test_arm_api.c
68 test_arm_api_LDADD = \
69   $(top_builddir)/src/arm/libgnunetarm.la \
70   $(top_builddir)/src/util/libgnunetutil.la  
71
72 test_exponential_backoff_SOURCES = \
73  test_exponential_backoff.c
74 test_exponential_backoff_LDADD = \
75   $(top_builddir)/src/arm/libgnunetarm.la \
76   $(top_builddir)/src/util/libgnunetutil.la
77
78 test_gnunet_service_manager_SOURCES = \
79  test_gnunet_service_manager.c
80  test_gnunet_service_manager_LDADD = \
81   $(top_builddir)/src/arm/libgnunetarm.la \
82   $(top_builddir)/src/util/libgnunetutil.la  
83
84 EXTRA_DIST = \
85   test_arm_api_data.conf \
86   do_start_process.c \
87   $(check_SCRIPTS)