2013-08-14 02:55:32 +08:00
|
|
|
if BUILD_TESTS
|
|
|
|
|
2013-09-16 05:39:09 +08:00
|
|
|
TESTS = messenger_autotest crypto_test network_test
|
2013-08-14 02:55:32 +08:00
|
|
|
|
2013-09-16 05:39:09 +08:00
|
|
|
check_PROGRAMS = messenger_autotest crypto_test network_test
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
messenger_autotest_SOURCES = \
|
2013-08-30 18:35:48 +08:00
|
|
|
../auto_tests/messenger_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
messenger_autotest_CFLAGS = \
|
|
|
|
$(LIBSODIUM_CFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_CFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(CHECK_CFLAGS)
|
|
|
|
|
|
|
|
messenger_autotest_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) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LIBS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(CHECK_LIBS)
|
|
|
|
|
|
|
|
|
2013-08-30 18:35:48 +08:00
|
|
|
crypto_test_SOURCES = ../auto_tests/crypto_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|
|
|
|
crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_CFLAGS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(CHECK_CFLAGS)
|
|
|
|
|
|
|
|
crypto_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) \
|
2013-09-05 18:02:26 +08:00
|
|
|
$(NACL_LIBS) \
|
2013-08-14 02:55:32 +08:00
|
|
|
$(CHECK_LIBS)
|
|
|
|
|
2013-09-16 05:39:09 +08:00
|
|
|
network_test_SOURCES = \
|
|
|
|
../auto_tests/network_test.c
|
|
|
|
|
|
|
|
network_test_CFLAGS = \
|
|
|
|
$(LIBSODIUM_CFLAGS) \
|
|
|
|
$(NACL_CFLAGS) \
|
|
|
|
$(CHECK_CFLAGS)
|
|
|
|
|
|
|
|
network_test_LDADD = \
|
|
|
|
$(LIBSODIUM_LDFLAGS) \
|
|
|
|
$(NACL_LDFLAGS) \
|
|
|
|
libtoxcore.la \
|
|
|
|
$(LIBSODIUM_LIBS) \
|
|
|
|
$(NACL_LIBS) \
|
|
|
|
$(CHECK_LIBS)
|
|
|
|
|
2013-08-14 02:55:32 +08:00
|
|
|
endif
|
|
|
|
|
2013-08-24 08:36:43 +08:00
|
|
|
EXTRA_DIST += $(top_srcdir)/auto_tests/friends_test.c
|
2013-08-14 02:55:32 +08:00
|
|
|
|