-new test, fixes
[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
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_simple_lookup \
32   test_gns_simple_delegated_lookup
33
34
35 plugin_LTLIBRARIES = \
36   libgnunet_plugin_block_gns.la
37
38 #test_gns_twopeer_SOURCES = \
39 #  test_gns_twopeer.c
40 #test_gns_twopeer_LDADD = \
41 #  $(top_builddir)/src/util/libgnunetutil.la \
42 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
43 #  $(top_builddir)/src/testing/libgnunettesting.la
44 #test_gns_twopeer_DEPENDENCIES = \
45 #  $(top_builddir)/src/util/libgnunetutil.la \
46 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
47 #  $(top_builddir)/src/testing/libgnunettesting.la
48
49 test_gns_simple_lookup_SOURCES = \
50   test_gns_simple_lookup.c
51 test_gns_simple_lookup_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(top_builddir)/src/namestore/libgnunetnamestore.la \
54   $(top_builddir)/src/testing/libgnunettesting.la
55 test_gns_simple_lookup_DEPENDENCIES = \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/namestore/libgnunetnamestore.la \
58   $(top_builddir)/src/testing/libgnunettesting.la
59
60 test_gns_simple_delegated_lookup_SOURCES = \
61   test_gns_simple_delegated_lookup.c
62 test_gns_simple_delegated_lookup_LDADD = \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(top_builddir)/src/namestore/libgnunetnamestore.la \
65   $(top_builddir)/src/testing/libgnunettesting.la
66 test_gns_simple_delegated_lookup_DEPENDENCIES = \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(top_builddir)/src/namestore/libgnunetnamestore.la \
69   $(top_builddir)/src/testing/libgnunettesting.la
70
71
72 #gnunet_gns_lookup_SOURCES = \
73 # gnunet-gns-lookup.c
74 #gnunet_gns_lookup_LDADD = \
75 #  $(top_builddir)/src/gns/libgnunetgns.la \
76 #  $(top_builddir)/src/util/libgnunetutil.la \
77 #  $(GN_LIBINTL)
78 #gnunet_dns_lookup_DEPENDENCIES = \
79 #  libgnunetgns.la
80
81 gnunet_service_gns_SOURCES = \
82  gnunet-service-gns.c 
83 gnunet_service_gns_LDADD = \
84   $(top_builddir)/src/tun/libgnunettun.la \
85   $(top_builddir)/src/mesh/libgnunetmesh.la \
86   $(top_builddir)/src/statistics/libgnunetstatistics.la \
87   $(top_builddir)/src/util/libgnunetutil.la \
88         $(top_builddir)/src/dns/libgnunetdns.la \
89         $(top_builddir)/src/dns/libgnunetdnsparser.la \
90         $(top_builddir)/src/dht/libgnunetdht.la \
91         $(top_builddir)/src/namestore/libgnunetnamestore.la \
92   $(GN_LIBINTL)
93 gnunet_service_gns_DEPENDENCIES = \
94   $(top_builddir)/src/tun/libgnunettun.la \
95   $(top_builddir)/src/mesh/libgnunetmesh.la \
96   $(top_builddir)/src/statistics/libgnunetstatistics.la \
97   $(top_builddir)/src/util/libgnunetutil.la \
98         $(top_builddir)/src/dns/libgnunetdns.la \
99         $(top_builddir)/src/dns/libgnunetdnsparser.la \
100         $(top_builddir)/src/dht/libgnunetdht.la \
101         libgnunetnamestore.la
102
103 libgnunetgns_la_SOURCES = \
104  gns_api.c gns.h
105 libgnunetgns_la_LIBADD = \
106  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
107 libgnunetgns_la_LDFLAGS = \
108   $(GN_LIB_LDFLAGS)
109 libgnunetgns_la_DEPENDENCIES = \
110  $(top_builddir)/src/util/libgnunetutil.la
111
112 libgnunet_plugin_block_gns_la_SOURCES = \
113   plugin_block_gns.c
114 libgnunet_plugin_block_gns_la_LIBADD = \
115   $(top_builddir)/src/util/libgnunetutil.la \
116   $(top_builddir)/src/block/libgnunetblock.la \
117   $(top_builddir)/src/namestore/libgnunetnamestore.la
118 libgnunet_plugin_block_gns_la_LDFLAGS = \
119   $(GN_PLUGIN_LDFLAGS)
120 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
121   $(top_builddir)/src/util/libgnunetutil.la \
122   $(top_builddir)/src/block/libgnunetblock.la \
123   $(top_builddir)/src/namestore/libgnunetnamestore.la
124
125 #Build stub api
126 #libgnunetnamestore_la_SOURCES = \
127 # namestore_stub_api.c
128 #libgnunetnamestore_la_LIBADD = \
129 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
130 #libgnunetnamestore_la_LDFLAGS = \
131 #  $(GN_LIB_LDFLAGS)
132 #libgnunetnamestore_la_DEPENDENCIES = \
133 # $(top_builddir)/src/util/libgnunetutil.la
134
135 if ENABLE_TEST_RUN
136 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
137 endif
138
139 EXTRA_DIST = \
140   $(check_SCRIPTS) \
141   test_gns_simple_lookup.conf