2013-10-07 07:58:57 +08:00
|
|
|
if BUILD_TESTING
|
|
|
|
|
2013-08-14 02:55:32 +08:00
|
|
|
noinst_PROGRAMS += DHT_test \
|
2017-12-29 08:29:14 +08:00
|
|
|
Messenger_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)
|
|
|
|
|
|
|
|
|
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
|