implementing #1747
[oweals/gnunet.git] / src / arm / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 dist_pkgcfg_DATA = \
6   arm.conf
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = --coverage -O0
14   XLIB = -lgcov
15 endif
16
17 lib_LTLIBRARIES = libgnunetarm.la
18
19 libgnunetarm_la_SOURCES = \
20   arm_api.c arm.h
21 libgnunetarm_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   $(GN_LIBINTL) $(XLIB)
24 libgnunetarm_la_LDFLAGS = \
25   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
26   -version-info 0:0:0
27
28
29 bin_PROGRAMS = \
30  gnunet-arm \
31  gnunet-service-arm \
32  mockup-service 
33
34 gnunet_arm_SOURCES = \
35  gnunet-arm.c         
36 gnunet_arm_LDADD = \
37   $(top_builddir)/src/arm/libgnunetarm.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(GN_LIBINTL)
40 gnunet_arm_DEPENDENCIES = \
41   libgnunetarm.la                         
42
43 gnunet_service_arm_SOURCES = \
44  gnunet-service-arm.c  gnunet-service-arm.h \
45  gnunet-service-arm_interceptor.c       
46 gnunet_service_arm_LDADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(GN_LIBINTL)
49 gnunet_service_arm_DEPENDENCIES = \
50   libgnunetarm.la                         
51
52
53 mockup_service_SOURCES = \
54   mockup-service.c
55  mockup_service_LDADD = \
56  $(top_builddir)/src/util/libgnunetutil.la  
57
58
59 check_PROGRAMS = \
60  test_arm_api \
61  test_exponential_backoff \
62  test_gnunet_service_manager
63
64 check_SCRIPTS = \
65  test_gnunet_arm.sh
66
67 if ENABLE_TEST_RUN
68 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
69 endif
70
71 test_arm_api_SOURCES = \
72  test_arm_api.c
73 test_arm_api_LDADD = \
74   $(top_builddir)/src/arm/libgnunetarm.la \
75   $(top_builddir)/src/util/libgnunetutil.la  
76
77 test_exponential_backoff_SOURCES = \
78  test_exponential_backoff.c
79 test_exponential_backoff_LDADD = \
80   $(top_builddir)/src/arm/libgnunetarm.la \
81   $(top_builddir)/src/util/libgnunetutil.la
82
83 test_gnunet_service_manager_SOURCES = \
84  test_gnunet_service_manager.c
85  test_gnunet_service_manager_LDADD = \
86   $(top_builddir)/src/arm/libgnunetarm.la \
87   $(top_builddir)/src/util/libgnunetutil.la  
88
89 EXTRA_DIST = \
90   test_arm_api_data.conf \
91   do_start_process.c \
92   $(check_SCRIPTS)