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