-block compiles and added to makefile
[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   gns.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_gns.sh
29
30 plugin_LTLIBRARIES = \
31   libgnunet_plugin_block_gns.la
32
33 #gnunet_gns_lookup_SOURCES = \
34 # gnunet-gns-lookup.c
35 #gnunet_gns_lookup_LDADD = \
36 #  $(top_builddir)/src/gns/libgnunetgns.la \
37 #  $(top_builddir)/src/util/libgnunetutil.la \
38 #  $(GN_LIBINTL)
39 #gnunet_dns_lookup_DEPENDENCIES = \
40 #  libgnunetgns.la
41
42 gnunet_service_gns_SOURCES = \
43  gnunet-service-gns.c 
44 gnunet_service_gns_LDADD = \
45   $(top_builddir)/src/tun/libgnunettun.la \
46   $(top_builddir)/src/mesh/libgnunetmesh.la \
47   $(top_builddir)/src/statistics/libgnunetstatistics.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49         $(top_builddir)/src/dns/libgnunetdns.la \
50         $(top_builddir)/src/dns/libgnunetdnsparser.la \
51         $(top_builddir)/src/dht/libgnunetdht.la \
52         $(top_builddir)/src/gns/libgnunetnamestore.la \
53   $(GN_LIBINTL)
54
55 libgnunetgns_la_SOURCES = \
56  gns_api.c gns.h
57 libgnunetgns_la_LIBADD = \
58  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
59 libgnunetgns_la_LDFLAGS = \
60   $(GN_LIB_LDFLAGS)
61
62 libgnunet_plugin_block_gns_la_SOURCES = \
63   plugin_block_gns.c
64 libgnunet_plugin_block_gns_la_LIBADD = \
65   $(top_builddir)/src/util/libgnunetutil.la
66 libgnunet_plugin_block_gns_la_LDFLAGS = \
67   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
68
69 #Build stub api
70 libgnunetnamestore_la_SOURCES = \
71  namestore_stub_api.c
72 libgnunetnamestore_la_LIBADD = \
73  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
74 libgnunetnamestore_la_LDFLAGS = \
75   $(GN_LIB_LDFLAGS)
76
77 if ENABLE_TEST_RUN
78 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
79 endif
80
81 EXTRA_DIST = \
82   $(check_SCRIPTS)