fix #3284: support lib/MULTIARCH/ paths in installation, use GNUNET_PREFIX=@libdir...
[oweals/gnunet.git] / src / gnsrecord / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgdatadir)/config.d/
6
7 libexecdir= $(pkglibdir)/libexec/
8
9 if MINGW
10   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
11 endif
12
13 if USE_COVERAGE
14   AM_CFLAGS = --coverage -O0
15   XLIBS = -lgcov
16 endif
17
18 check_PROGRAMS = \
19  test_gnsrecord_crypto \
20  test_gnsrecord_serialization \
21  test_gnsrecord_block_expiration
22
23 if ENABLE_TEST_RUN
24 TESTS_ENVIRONMENT=export GNUNET_PREFIX=@libdir@;export PATH=@prefix@/bin:$$PATH;
25 TESTS = \
26   $(check_PROGRAMS) \
27   $(check_SCRIPTS)
28 endif
29
30 lib_LTLIBRARIES = \
31   libgnunetgnsrecord.la
32
33 libgnunetgnsrecord_la_SOURCES = \
34   gnsrecord.c \
35   gnsrecord_serialization.c \
36   gnsrecord_crypto.c \
37   gnsrecord_misc.c
38 libgnunetgnsrecord_la_LIBADD = \
39   $(top_builddir)/src/dns/libgnunetdnsparser.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL)
42 libgnunetgnsrecord_la_LDFLAGS = \
43   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44   -version-info 0:0:0
45
46
47 plugin_LTLIBRARIES = \
48   libgnunet_plugin_gnsrecord_dns.la
49
50
51 libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
52   plugin_gnsrecord_dns.c
53 libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
54   $(top_builddir)/src/dns/libgnunetdnsparser.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(LTLIBINTL)
57 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
58  $(GN_PLUGIN_LDFLAGS)
59
60
61 EXTRA_DIST = \
62   $(check_SCRIPTS)
63
64
65 test_gnsrecord_serialization_SOURCES = \
66  test_gnsrecord_serialization.c
67 test_gnsrecord_serialization_LDADD = \
68   $(top_builddir)/src/testing/libgnunettesting.la \
69   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
70   $(top_builddir)/src/util/libgnunetutil.la
71
72 test_gnsrecord_block_expiration_SOURCES = \
73  test_gnsrecord_block_expiration.c
74 test_gnsrecord_block_expiration_LDADD = \
75   $(top_builddir)/src/testing/libgnunettesting.la \
76   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
77   $(top_builddir)/src/util/libgnunetutil.la
78
79
80 test_gnsrecord_crypto_SOURCES = \
81  test_gnsrecord_crypto.c
82 test_gnsrecord_crypto_LDADD = \
83   $(top_builddir)/src/testing/libgnunettesting.la \
84   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
85   $(top_builddir)/src/util/libgnunetutil.la
86