aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-19 14:24:14 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-19 14:24:14 +0000
commit7b7ec4fefd44742d9368638df9670771b8eaf259 (patch)
tree4844964ba35da05901b8da27e90f4b97c22e6897 /src
parentfb73dfb39e1ce87c32de6213e82399a1ba797d8c (diff)
downloadgnunet-7b7ec4fefd44742d9368638df9670771b8eaf259.tar.gz
gnunet-7b7ec4fefd44742d9368638df9670771b8eaf259.zip
moving gnunet-peerinfo.c to allow it to use transport_api
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/peerinfo-tool/Makefile.am24
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c (renamed from src/peerinfo/gnunet-peerinfo.c)7
-rw-r--r--src/peerinfo/Makefile.am10
4 files changed, 29 insertions, 13 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4d63bc756..a01288078 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,6 +22,7 @@ SUBDIRS = \
22 datastore \ 22 datastore \
23 template \ 23 template \
24 transport \ 24 transport \
25 peerinfo-tool \
25 core \ 26 core \
26 testing \ 27 testing \
27 $(HOSTLIST_DIR) \ 28 $(HOSTLIST_DIR) \
diff --git a/src/peerinfo-tool/Makefile.am b/src/peerinfo-tool/Makefile.am
new file mode 100644
index 000000000..b9e6d7d07
--- /dev/null
+++ b/src/peerinfo-tool/Makefile.am
@@ -0,0 +1,24 @@
1INCLUDES = -I$(top_srcdir)/src/include
2
3if MINGW
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -luuid -liconv -lstdc++ -lcomdlg32 -lgdi32
5endif
6
7if USE_COVERAGE
8 AM_CFLAGS = --coverage -O0
9 XLIB = -lgcov
10endif
11
12bin_PROGRAMS = \
13 gnunet-peerinfo
14
15gnunet_peerinfo_SOURCES = \
16 gnunet-peerinfo.c
17gnunet_peerinfo_LDADD = \
18 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
19 $(top_builddir)/src/transport/libgnunettransport.la \
20 $(top_builddir)/src/util/libgnunetutil.la
21
22
23#check_SCRIPTS = \
24# test_gnunet_peerinfo.sh
diff --git a/src/peerinfo/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index d4a36a059..c056b390e 100644
--- a/src/peerinfo/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2001, 2002, 2003, 2004, 2006, 2009 Christian Grothoff (and other contributing authors) 3 (C) 2001, 2002, 2003, 2004, 2006, 2009, 2010 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file peerinfo/gnunet-peerinfo.c 22 * @file peerinfo-tool/gnunet-peerinfo.c
23 * @brief Print information about other known peers. 23 * @brief Print information about other known peers.
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -41,6 +41,8 @@ static struct GNUNET_SCHEDULER_Handle *sched;
41 41
42static const struct GNUNET_CONFIGURATION_Handle *cfg; 42static const struct GNUNET_CONFIGURATION_Handle *cfg;
43 43
44#define FIXME 0
45
44#if FIXME 46#if FIXME
45/** 47/**
46 * Function to call with a human-readable format of an address 48 * Function to call with a human-readable format of an address
@@ -56,7 +58,6 @@ print_resolved_address (void *cls,
56 once, otherwise we mix results... */ 58 once, otherwise we mix results... */
57 if (address == NULL) 59 if (address == NULL)
58 { 60 {
59 fprintf (stderr, "\n");
60 return; 61 return;
61 } 62 }
62 fprintf (stderr, " %s\n", address); 63 fprintf (stderr, " %s\n", address);
diff --git a/src/peerinfo/Makefile.am b/src/peerinfo/Makefile.am
index ea7ef1316..42396e3e7 100644
--- a/src/peerinfo/Makefile.am
+++ b/src/peerinfo/Makefile.am
@@ -23,15 +23,8 @@ libgnunetpeerinfo_la_LDFLAGS = \
23 23
24 24
25bin_PROGRAMS = \ 25bin_PROGRAMS = \
26 gnunet-peerinfo \
27 gnunet-service-peerinfo 26 gnunet-service-peerinfo
28 27
29gnunet_peerinfo_SOURCES = \
30 gnunet-peerinfo.c
31gnunet_peerinfo_LDADD = \
32 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
33 $(top_builddir)/src/util/libgnunetutil.la
34
35gnunet_service_peerinfo_SOURCES = \ 28gnunet_service_peerinfo_SOURCES = \
36 gnunet-service-peerinfo.c 29 gnunet-service-peerinfo.c
37gnunet_service_peerinfo_LDADD = \ 30gnunet_service_peerinfo_LDADD = \
@@ -54,6 +47,3 @@ test_peerinfo_api_LDADD = \
54 47
55EXTRA_DIST = \ 48EXTRA_DIST = \
56 test_peerinfo_api_data.conf 49 test_peerinfo_api_data.conf
57
58#check_SCRIPTS = \
59# test_gnunet_peerinfo.sh