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