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