-remove stub from 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 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/namestore/libgnunetnamestore.la \
42   $(top_builddir)/src/testing/libgnunettesting.la
43 test_gns_twopeer_DEPENDENCIES = \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/namestore/libgnunetnamestore.la \
46   $(top_builddir)/src/testing/libgnunettesting.la
47
48 #gnunet_gns_lookup_SOURCES = \
49 # gnunet-gns-lookup.c
50 #gnunet_gns_lookup_LDADD = \
51 #  $(top_builddir)/src/gns/libgnunetgns.la \
52 #  $(top_builddir)/src/util/libgnunetutil.la \
53 #  $(GN_LIBINTL)
54 #gnunet_dns_lookup_DEPENDENCIES = \
55 #  libgnunetgns.la
56
57 gnunet_service_gns_SOURCES = \
58  gnunet-service-gns.c 
59 gnunet_service_gns_LDADD = \
60   $(top_builddir)/src/tun/libgnunettun.la \
61   $(top_builddir)/src/mesh/libgnunetmesh.la \
62   $(top_builddir)/src/statistics/libgnunetstatistics.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64         $(top_builddir)/src/dns/libgnunetdns.la \
65         $(top_builddir)/src/dns/libgnunetdnsparser.la \
66         $(top_builddir)/src/dht/libgnunetdht.la \
67         $(top_builddir)/src/namestore/libgnunetnamestore.la \
68   $(GN_LIBINTL)
69 gnunet_service_gns_DEPENDENCIES = \
70   $(top_builddir)/src/tun/libgnunettun.la \
71   $(top_builddir)/src/mesh/libgnunetmesh.la \
72   $(top_builddir)/src/statistics/libgnunetstatistics.la \
73   $(top_builddir)/src/util/libgnunetutil.la \
74         $(top_builddir)/src/dns/libgnunetdns.la \
75         $(top_builddir)/src/dns/libgnunetdnsparser.la \
76         $(top_builddir)/src/dht/libgnunetdht.la \
77         libgnunetnamestore.la
78
79 libgnunetgns_la_SOURCES = \
80  gns_api.c gns.h
81 libgnunetgns_la_LIBADD = \
82  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
83 libgnunetgns_la_LDFLAGS = \
84   $(GN_LIB_LDFLAGS)
85 libgnunetgns_la_DEPENDENCIES = \
86  $(top_builddir)/src/util/libgnunetutil.la
87
88 libgnunet_plugin_block_gns_la_SOURCES = \
89   plugin_block_gns.c
90 libgnunet_plugin_block_gns_la_LIBADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   $(top_builddir)/src/block/libgnunetblock.la \
93   $(top_builddir)/src/namestore/libgnunetnamestore.la
94 libgnunet_plugin_block_gns_la_LDFLAGS = \
95   $(GN_PLUGIN_LDFLAGS)
96 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/block/libgnunetblock.la \
99   $(top_builddir)/src/namestore/libgnunetnamestore.la
100
101 #Build stub api
102 #libgnunetnamestore_la_SOURCES = \
103 # namestore_stub_api.c
104 #libgnunetnamestore_la_LIBADD = \
105 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
106 #libgnunetnamestore_la_LDFLAGS = \
107 #  $(GN_LIB_LDFLAGS)
108 #libgnunetnamestore_la_DEPENDENCIES = \
109 # $(top_builddir)/src/util/libgnunetutil.la
110
111 if ENABLE_TEST_RUN
112 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
113 endif
114
115 EXTRA_DIST = \
116   $(check_SCRIPTS) \
117   test_gns_twopeer.conf