-handle failure to load certs more nicely
[oweals/gnunet.git] / src / gns / Makefile.am
index 10177996e473e9a46cdf35c984407c354320ad78..3536536e03d2ca4de4385106877ebdfaae400ce4 100644 (file)
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 if HAVE_GLIBCNSS
 NSS_SUBDIR = nss
@@ -47,10 +47,7 @@ lib_LTLIBRARIES = \
 if HAVE_MHD
 if HAVE_GNUTLS
 if HAVE_LIBCURL
-# does not compile right now...
-if HAVE_EXPERIMENTAL
-# DO_PROXY=gnunet-gns-proxy
-endif
+ DO_PROXY=gnunet-gns-proxy
 endif
 endif
 endif
@@ -74,10 +71,14 @@ gnunet_gns_SOURCES = \
  gnunet-gns.c
 gnunet_gns_LDADD = \
   $(top_builddir)/src/gns/libgnunetgns.la \
-  $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/namestore/libgnunetnamestore.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_LIBINTL)
 gnunet_gns_DEPENDENCIES = \
+  $(top_builddir)/src/namestore/libgnunetnamestore.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
   libgnunetgns.la
 
 gnunet_dns2gns_SOURCES = \
@@ -85,25 +86,31 @@ gnunet_dns2gns_SOURCES = \
 gnunet_dns2gns_LDADD = \
   $(top_builddir)/src/gns/libgnunetgns.la \
   $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
   $(top_builddir)/src/namestore/libgnunetnamestore.la \
   $(top_builddir)/src/dns/libgnunetdnsparser.la \
   $(top_builddir)/src/dns/libgnunetdnsstub.la \
   $(GN_LIBINTL)
 gnunet_dns2gns_DEPENDENCIES = \
+  $(top_builddir)/src/gns/libgnunetgns.la \
   $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
   $(top_builddir)/src/namestore/libgnunetnamestore.la \
   $(top_builddir)/src/dns/libgnunetdnsparser.la \
   $(top_builddir)/src/dns/libgnunetdnsstub.la \
   libgnunetgns.la
 
-#gnunet_gns_proxy_SOURCES = \
-# gnunet-gns-proxy.c gns_proxy_proto.h 
-#gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
-#  $(top_builddir)/src/gns/libgnunetgns.la \
-#  $(top_builddir)/src/util/libgnunetutil.la \
-#  $(GN_LIBINTL)
-#gnunet_gns_proxy_DEPENDENCIES = \
-#  libgnunetgns.la
+gnunet_gns_proxy_SOURCES = \
+ gnunet-gns-proxy.c 
+gnunet_gns_proxy_LDADD = -lmicrohttpd -lcurl -lgnutls \
+  $(top_builddir)/src/gns/libgnunetgns.la \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(GN_LIBINTL)
+gnunet_gns_proxy_DEPENDENCIES = \
+  $(top_builddir)/src/identity/libgnunetidentity.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  libgnunetgns.la
 
 gnunet_gns_helper_service_w32_SOURCES = \
   gnunet-gns-helper-service-w32.c
@@ -112,6 +119,7 @@ gnunet_gns_helper_service_w32_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(GN_LIBINTL)
 gnunet_gns_helper_service_w32_DEPENDENCIES = \
+  $(top_builddir)/src/util/libgnunetutil.la \
   libgnunetgns.la
 
 w32nsp_install_SOURCES = \
@@ -129,6 +137,7 @@ w32nsp_resolve_LDADD = -lws2_32
 gnunet_service_gns_SOURCES = \
  gnunet-service-gns.c \
  gnunet-service-gns_resolver.c gnunet-service-gns_resolver.h \
+ gnunet-service-gns_shorten.c gnunet-service-gns_shorten.h \
  gnunet-service-gns_interceptor.c gnunet-service-gns_interceptor.h 
 gnunet_service_gns_LDADD = \
   -lm \
@@ -186,27 +195,27 @@ libgnunet_plugin_block_gns_la_DEPENDENCIES = \
   $(top_builddir)/src/namestore/libgnunetnamestore.la
 
 if HAVE_TESTING
-check_PROGRAMS = \
-  test_gns_simple_shorten \
-  test_gns_simple_lookup \
-  test_gns_simple_delegated_lookup \
-  test_gns_simple_mx_lookup \
-  test_gns_simple_srv_lookup \
-  test_gns_simple_zkey_lookup \
-  test_gns_dht_delegated_lookup \
-  test_gns_pseu_shorten \
-  test_gns_max_queries \
-  test_gns_cname_lookup \
-  test_gns_ns_lookup \
-  test_gns_revocation \
-  test_gns_dht_three_peers
- #test_gns_proxy
+#check_PROGRAMS = 
+#  test_gns_simple_shorten 
+#  test_gns_simple_lookup 
+#  test_gns_simple_delegated_lookup 
+#  test_gns_simple_mx_lookup 
+#  test_gns_simple_srv_lookup 
+#  test_gns_simple_zkey_lookup 
+#  test_gns_dht_delegated_lookup 
+#  test_gns_pseu_shorten 
+#  test_gns_max_queries 
+#  test_gns_cname_lookup 
+#  test_gns_ns_lookup 
+#  test_gns_revocation 
+#  test_gns_dht_three_peers
+test_gns_proxy
 endif
 
 if ENABLE_TEST_RUN
 if LINUX
 if HAVE_SQLITE
-TESTS = $(check_PROGRAMS)
+TESTS = $(check_PROGRAMS)
 endif
 endif
 endif