- clean up gns rest api
[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 # Note: In a real installation,
20 # bin_PROGRAMS should be used for gnunet-template
21 # libexec_PROGRAMS should be used for gnunet-service-template
22
23 noinst_PROGRAMS = \
24  gnunet-template \
25  gnunet-service-template
26
27
28 gnunet_template_SOURCES = \
29  gnunet-template.c
30 gnunet_template_LDADD = \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   $(GN_LIBINTL)
33
34 gnunet_service_template_SOURCES = \
35  gnunet-service-template.c
36 gnunet_service_template_LDADD = \
37   $(top_builddir)/src/util/libgnunetutil.la \
38   $(GN_LIBINTL)
39
40
41 check_PROGRAMS = \
42  test_template_api
43
44 if ENABLE_TEST_RUN
45 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
46 TESTS = $(check_PROGRAMS)
47 endif
48
49 test_template_api_SOURCES = \
50  test_template_api.c
51 test_template_api_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la