- commit after up, ty!
[oweals/gnunet.git] / src / gns / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 plugindir = $(libdir)/gnunet
14
15 #pkgcfg_DATA = \
16 #  dns.conf
17
18 lib_LTLIBRARIES = \
19   libgnunetgns.la
20
21 bin_PROGRAMS = \
22   gnunet-service-gns
23
24 noinst_PROGRAMS = \
25   gnunet-gns-lookup gnunet-gns-add
26
27 #check_SCRIPTS = \
28 # test_gnunet_dns.sh
29
30
31 gnunet_gns_add_SOURCES = \
32  gnunet-gns-add.c
33 gnunet_gns_add_LDADD = \
34   $(top_builddir)/src/gns/libgnunetgns.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL)
37 gnunet_dns_add_DEPENDENCIES = \
38   libgnunetgns.la
39
40 gnunet_gns_lookup_SOURCES = \
41  gnunet-gns-lookup.c
42 gnunet_gns_lookup_LDADD = \
43   $(top_builddir)/src/gns/libgnunetgns.la \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(GN_LIBINTL)
46 gnunet_dns_lookup_DEPENDENCIES = \
47   libgnunetgns.la
48
49 gnunet_service_gns_SOURCES = \
50  gnunet-service-gns.c 
51 gnunet_service_gns_LDADD = \
52   $(top_builddir)/src/tun/libgnunettun.la \
53   $(top_builddir)/src/mesh/libgnunetmesh.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56         $(top_builddir)/src/dns/libgnunetdns.la \
57         $(top_builddir)/src/dns/libgnunetdnsparser.la \
58   $(GN_LIBINTL)
59
60 libgnunetgns_la_SOURCES = \
61  gns_api.c gns.h
62 libgnunetgns_la_LIBADD = \
63  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
64 libgnunetgns_la_LDFLAGS = \
65   $(GN_LIB_LDFLAGS)
66
67 if ENABLE_TEST_RUN
68 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
69 endif
70
71 EXTRA_DIST = \
72   $(check_SCRIPTS)