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