add changelog
[oweals/gnunet.git] / src / auction / 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
9 pkgcfg_DATA = \
10         auction.conf
11
12 if USE_COVERAGE
13         AM_CFLAGS = -fprofile-arcs -ftest-coverage
14 endif
15
16
17 libexec_PROGRAMS = \
18         gnunet-service-auction
19
20 gnunet_service_auction_SOURCES = \
21         gnunet-service-auction.c
22 gnunet_service_auction_LDADD = \
23         $(top_builddir)/src/util/libgnunetutil.la \
24         -ljansson \
25         $(GN_LIBINTL)
26
27
28 bin_PROGRAMS = \
29         gnunet-auction-create \
30         gnunet-auction-info \
31         gnunet-auction-join
32
33 gnunet_auction_create_SOURCES = \
34         gnunet-auction-create.c
35 gnunet_auction_create_LDADD = \
36         $(top_builddir)/src/util/libgnunetutil.la \
37         -ljansson \
38         $(GN_LIBINTL)
39
40 gnunet_auction_info_SOURCES = \
41         gnunet-auction-info.c
42 gnunet_auction_info_LDADD = \
43         $(top_builddir)/src/util/libgnunetutil.la \
44         -ljansson \
45         $(GN_LIBINTL)
46
47 gnunet_auction_join_SOURCES = \
48         gnunet-auction-join.c
49 gnunet_auction_join_LDADD = \
50         $(top_builddir)/src/util/libgnunetutil.la \
51         -ljansson \
52         $(GN_LIBINTL)
53
54
55 check_PROGRAMS = \
56         test_auction_api
57
58 test_auction_api_SOURCES = \
59         test_auction_api.c
60 test_auction_api_LDADD = \
61         $(top_builddir)/src/util/libgnunetutil.la
62
63
64 check_SCRIPTS = \
65         test_auction_create.sh
66
67 EXTRA_DIST = \
68   auction.h \
69   auction.conf \
70   $(check_SCRIPTS)
71
72 if ENABLE_TEST_RUN
73         AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
74         TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
75 endif