-moving namestore_common functions to gnsrecord library
[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
22 if ENABLE_TEST_RUN
23 TESTS = \
24   $(check_PROGRAMS) \
25   $(check_SCRIPTS)
26 endif
27
28 lib_LTLIBRARIES = \
29   libgnunetgnsrecord.la
30
31 libgnunetgnsrecord_la_SOURCES = \
32   gnsrecord.c \
33   gnsrecord_serialization.c \
34   gnsrecord_crypto.c \
35   gnsrecord_misc.c
36 libgnunetgnsrecord_la_LIBADD = \
37   $(top_builddir)/src/dns/libgnunetdnsparser.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(GN_LIBINTL)
40 libgnunetgnsrecord_la_LDFLAGS = \
41   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
42   -version-info 0:0:0
43
44
45 plugin_LTLIBRARIES = \
46   libgnunet_plugin_gnsrecord_dns.la
47
48
49 libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
50   plugin_gnsrecord_dns.c
51 libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
52   $(top_builddir)/src/dns/libgnunetdnsparser.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(LTLIBINTL)
55 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
56  $(GN_PLUGIN_LDFLAGS)
57
58
59 EXTRA_DIST = \
60   $(check_SCRIPTS)
61
62 test_gnsrecord_serialization_SOURCES = \
63  test_gnsrecord_serialization.c
64 test_gnsrecord_serialization_LDADD = \
65   $(top_builddir)/src/testing/libgnunettesting.la \
66   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
67   $(top_builddir)/src/util/libgnunetutil.la
68
69 test_gnsrecord_crypto_SOURCES = \
70  test_gnsrecord_crypto.c
71 test_gnsrecord_crypto_LDADD = \
72   $(top_builddir)/src/testing/libgnunettesting.la \
73   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
74   $(top_builddir)/src/util/libgnunetutil.la
75