2013-08-14 02:55:32 +08:00
|
|
|
if BUILD_NTOX
|
|
|
|
|
|
|
|
bin_PROGRAMS += nTox
|
|
|
|
|
2013-08-30 18:35:48 +08:00
|
|
|
nTox_SOURCES = ../testing/nTox.h \
|
|
|
|
../testing/nTox.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_CFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(NCURSES_CFLAGS)
|
|
|
|
|
|
|
|
nTox_LDADD = $(LIBSODIUM_LDFLAGS) \
|
2014-05-31 01:20:36 +08:00
|
|
|
$(NAC_LDFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
2014-05-31 01:20:36 +08:00
|
|
|
$(NACL_OBJECTS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LIBS) \
|
2013-08-27 19:06:19 +08:00
|
|
|
$(NCURSES_LIBS) \
|
|
|
|
$(WINSOCK2_LIBS)
|
2013-08-14 02:55:32 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2013-10-07 07:58:57 +08:00
|
|
|
if BUILD_TESTING
|
|
|
|
|
2013-08-14 02:55:32 +08:00
|
|
|
noinst_PROGRAMS += DHT_test \
|
|
|
|
Messenger_test \
|
2014-06-14 23:31:56 +08:00
|
|
|
dns3_test
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2013-08-30 18:35:48 +08:00
|
|
|
DHT_test_SOURCES = ../testing/DHT_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2013-09-05 18:02:26 +08:00
|
|
|
DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS)
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LDFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
2014-03-23 09:01:45 +08:00
|
|
|
$(NACL_OBJECTS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LIBS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
Messenger_test_SOURCES = \
|
2013-08-30 18:35:48 +08:00
|
|
|
../testing/Messenger_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2013-09-05 18:02:26 +08:00
|
|
|
Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS)
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LDFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
2014-03-23 09:01:45 +08:00
|
|
|
$(NACL_OBJECTS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LIBS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
|
|
|
2014-06-14 23:31:56 +08:00
|
|
|
|
|
|
|
dns3_test_SOURCES = \
|
|
|
|
../testing/dns3_test.c
|
|
|
|
|
|
|
|
dns3_test_CFLAGS = \
|
|
|
|
$(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS)
|
|
|
|
|
|
|
|
dns3_test_LDADD = \
|
|
|
|
$(LIBSODIUM_LDFLAGS) \
|
|
|
|
$(NACL_LDFLAGS) \
|
|
|
|
libtoxdns.la \
|
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
|
|
|
$(NACL_OBJECTS) \
|
|
|
|
$(NACL_LIBS) \
|
|
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
2013-10-16 23:42:00 +08:00
|
|
|
if !WIN32
|
2013-10-05 23:14:06 +08:00
|
|
|
|
2013-10-16 23:42:00 +08:00
|
|
|
noinst_PROGRAMS += tox_sync
|
|
|
|
|
|
|
|
tox_sync_SOURCES = ../testing/tox_sync.c
|
|
|
|
|
|
|
|
tox_sync_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
2013-10-05 23:14:06 +08:00
|
|
|
$(NACL_CFLAGS)
|
|
|
|
|
2013-10-16 23:42:00 +08:00
|
|
|
tox_sync_LDADD = $(LIBSODIUM_LDFLAGS) \
|
2014-08-20 07:01:18 +08:00
|
|
|
$(NACL_LDFLAGS) \
|
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
|
|
|
$(NACL_OBJECTS) \
|
|
|
|
$(NACL_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS += tox_shell
|
|
|
|
|
|
|
|
tox_shell_SOURCES = ../testing/tox_shell.c
|
|
|
|
|
|
|
|
tox_shell_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS)
|
|
|
|
|
|
|
|
tox_shell_LDADD = $(LIBSODIUM_LDFLAGS) \
|
2013-10-05 23:14:06 +08:00
|
|
|
$(NACL_LDFLAGS) \
|
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
2014-03-23 09:01:45 +08:00
|
|
|
$(NACL_OBJECTS) \
|
2013-10-05 23:14:06 +08:00
|
|
|
$(NACL_LIBS) \
|
2014-08-20 07:01:18 +08:00
|
|
|
-lutil
|
|
|
|
|
2014-08-31 03:43:07 +08:00
|
|
|
|
2014-10-15 07:49:29 +08:00
|
|
|
noinst_PROGRAMS += irc_syncbot
|
|
|
|
|
|
|
|
irc_syncbot_SOURCES = ../testing/irc_syncbot.c
|
|
|
|
|
|
|
|
irc_syncbot_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS)
|
|
|
|
|
|
|
|
irc_syncbot_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
|
|
$(NACL_LDFLAGS) \
|
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
|
|
|
$(NACL_OBJECTS) \
|
|
|
|
$(NACL_LIBS)
|
2013-10-16 23:42:00 +08:00
|
|
|
endif
|
2013-10-05 23:14:06 +08:00
|
|
|
|
2013-09-02 02:44:26 +08:00
|
|
|
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
|
2013-10-07 07:58:57 +08:00
|
|
|
|
|
|
|
endif
|