- refactor kx sending, unify under send_kx
[oweals/gnunet.git] / src / template / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 dist_pkgcfg_DATA = \
9   template.conf
10
11 if MINGW
12  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
13 endif
14
15 if USE_COVERAGE
16   AM_CFLAGS = -fprofile-arcs -ftest-coverage
17 endif
18
19 bin_PROGRAMS = \
20  gnunet-template 
21
22 libexec_PROGRAMS = \
23  gnunet-service-template
24
25 gnunet_template_SOURCES = \
26  gnunet-template.c         
27 gnunet_template_LDADD = \
28   $(top_builddir)/src/util/libgnunetutil.la \
29   $(GN_LIBINTL)
30
31 gnunet_service_template_SOURCES = \
32  gnunet-service-template.c         
33 gnunet_service_template_LDADD = \
34   $(top_builddir)/src/util/libgnunetutil.la \
35   $(GN_LIBINTL)
36
37
38 check_PROGRAMS = \
39  test_template_api
40
41 if ENABLE_TEST_RUN
42 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
43 TESTS = $(check_PROGRAMS)
44 endif
45
46 test_template_api_SOURCES = \
47  test_template_api.c
48 test_template_api_LDADD = \
49   $(top_builddir)/src/util/libgnunetutil.la  
50