-gns service with dns/namestore api added
[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 libgnunetnamestore.la
20
21 bin_PROGRAMS = \
22   gnunet-service-gns
23
24 #noinst_PROGRAMS = \
25 #  gnunet-gns-lookup
26
27 #check_SCRIPTS = \
28 # test_gnunet_dns.sh
29
30 #gnunet_gns_lookup_SOURCES = \
31 # gnunet-gns-lookup.c
32 #gnunet_gns_lookup_LDADD = \
33 #  $(top_builddir)/src/gns/libgnunetgns.la \
34 #  $(top_builddir)/src/util/libgnunetutil.la \
35 #  $(GN_LIBINTL)
36 #gnunet_dns_lookup_DEPENDENCIES = \
37 #  libgnunetgns.la
38
39 gnunet_service_gns_SOURCES = \
40  gnunet-service-gns.c 
41 gnunet_service_gns_LDADD = \
42   $(top_builddir)/src/tun/libgnunettun.la \
43   $(top_builddir)/src/mesh/libgnunetmesh.la \
44   $(top_builddir)/src/statistics/libgnunetstatistics.la \
45   $(top_builddir)/src/util/libgnunetutil.la \
46         $(top_builddir)/src/dns/libgnunetdns.la \
47         $(top_builddir)/src/dns/libgnunetdnsparser.la \
48         $(top_builddir)/src/gns/libgnunetnamestore.la \
49   $(GN_LIBINTL)
50
51 libgnunetgns_la_SOURCES = \
52  gns_api.c gns.h
53 libgnunetgns_la_LIBADD = \
54  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
55 libgnunetgns_la_LDFLAGS = \
56   $(GN_LIB_LDFLAGS)
57
58 #Build stub api
59 libgnunetnamestore_la_SOURCES = \
60  namestore_stub_api.c
61 libgnunetnamestore_la_LIBADD = \
62  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
63 libgnunetnamestore_la_LDFLAGS = \
64   $(GN_LIB_LDFLAGS)
65
66 if ENABLE_TEST_RUN
67 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
68 endif
69
70 EXTRA_DIST = \
71   $(check_SCRIPTS)