-svn ignore
[oweals/gnunet.git] / src / arm / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 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 1:1: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 
45 gnunet_service_arm_LDADD = \
46   $(top_builddir)/src/util/libgnunetutil.la \
47   $(GN_LIBINTL)
48 gnunet_service_arm_DEPENDENCIES = \
49   libgnunetarm.la                         
50
51
52 mockup_service_SOURCES = \
53   mockup-service.c
54  mockup_service_LDADD = \
55  $(top_builddir)/src/util/libgnunetutil.la  
56
57
58 check_PROGRAMS = \
59  test_arm_api \
60  test_exponential_backoff \
61  test_gnunet_service_manager
62
63 check_SCRIPTS = \
64  test_gnunet_arm.sh
65
66 if ENABLE_TEST_RUN
67 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
68 endif
69
70 test_arm_api_SOURCES = \
71  test_arm_api.c
72 test_arm_api_LDADD = \
73   $(top_builddir)/src/arm/libgnunetarm.la \
74   $(top_builddir)/src/util/libgnunetutil.la  
75
76 test_exponential_backoff_SOURCES = \
77  test_exponential_backoff.c
78 test_exponential_backoff_LDADD = \
79   $(top_builddir)/src/arm/libgnunetarm.la \
80   $(top_builddir)/src/util/libgnunetutil.la
81
82 test_gnunet_service_manager_SOURCES = \
83  test_gnunet_service_manager.c
84  test_gnunet_service_manager_LDADD = \
85   $(top_builddir)/src/arm/libgnunetarm.la \
86   $(top_builddir)/src/util/libgnunetutil.la  
87
88 EXTRA_DIST = \
89   test_arm_api_data.conf \
90   do_start_process.c \
91   $(check_SCRIPTS)