summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2016-01-01 01:17:19 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2016-01-01 20:28:48 -0500
commitd89fdb230b9160ea7b09cb29f2e7789025a32ee6 (patch)
tree535fcd71ba7e5893d1d33e2cf79842c69f47f093 /other/bootstrap_daemon/src
parentda76da6c95fedf6014b69ed475cce074ad0afda9 (diff)
Fix include paths
They are relative to the Makefile instead of the source file itself, which is unintuitive and is messing with my IDE.
Diffstat (limited to 'other/bootstrap_daemon/src')
-rw-r--r--other/bootstrap_daemon/src/Makefile.inc38
-rw-r--r--other/bootstrap_daemon/src/tox-bootstrapd.c12
2 files changed, 45 insertions, 5 deletions
diff --git a/other/bootstrap_daemon/src/Makefile.inc b/other/bootstrap_daemon/src/Makefile.inc
new file mode 100644
index 00000000..a0d75fa0
--- /dev/null
+++ b/other/bootstrap_daemon/src/Makefile.inc
@@ -0,0 +1,38 @@
1if BUILD_DHT_BOOTSTRAP_DAEMON
2
3bin_PROGRAMS += tox-bootstrapd
4
5tox_bootstrapd_SOURCES = \
6 ../other/bootstrap_daemon/src/command_line_arguments.c \
7 ../other/bootstrap_daemon/src/command_line_arguments.h \
8 ../other/bootstrap_daemon/src/config.c \
9 ../other/bootstrap_daemon/src/config_defaults.h \
10 ../other/bootstrap_daemon/src/config.h \
11 ../other/bootstrap_daemon/src/log.c \
12 ../other/bootstrap_daemon/src/log.h \
13 ../other/bootstrap_daemon/src/tox-bootstrapd.c \
14 ../other/bootstrap_node_packets.c \
15 ../other/bootstrap_node_packets.h
16
17
18tox_bootstrapd_CFLAGS = \
19 -I$(top_srcdir)/other/bootstrap_daemon \
20 $(LIBSODIUM_CFLAGS) \
21 $(NACL_CFLAGS) \
22 $(LIBCONFIG_CFLAGS)
23
24tox_bootstrapd_LDADD = \
25 $(LIBSODIUM_LDFLAGS) \
26 $(NACL_LDFLAGS) \
27 libtoxcore.la \
28 $(LIBCONFIG_LIBS) \
29 $(LIBSODIUM_LIBS) \
30 $(NACL_LIBS)
31
32endif
33
34EXTRA_DIST += \
35 $(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.conf \
36 $(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.service \
37 $(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.sh
38
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c
index 45b7add0..4883f885 100644
--- a/other/bootstrap_daemon/src/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/src/tox-bootstrapd.c
@@ -30,19 +30,21 @@
30#include <string.h> 30#include <string.h>
31 31
32// toxcore 32// toxcore
33#include "../../toxcore/LAN_discovery.h" 33#include "../../../toxcore/LAN_discovery.h"
34#include "../../toxcore/onion_announce.h" 34#include "../../../toxcore/onion_announce.h"
35#include "../../toxcore/TCP_server.h" 35#include "../../../toxcore/TCP_server.h"
36#include "../../toxcore/util.h" 36#include "../../../toxcore/util.h"
37
37 38
38// misc 39// misc
39#include "../bootstrap_node_packets.h" 40#include "../../bootstrap_node_packets.h"
40 41
41#include "command_line_arguments.h" 42#include "command_line_arguments.h"
42#include "config.h" 43#include "config.h"
43#include "global.h" 44#include "global.h"
44#include "log.h" 45#include "log.h"
45 46
47
46#define SLEEP_MILLISECONDS(MS) usleep(1000*MS) 48#define SLEEP_MILLISECONDS(MS) usleep(1000*MS)
47 49
48// Uses the already existing key or creates one if it didn't exist 50// Uses the already existing key or creates one if it didn't exist