mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
if BUILD_TESTING
|
|
|
|
noinst_PROGRAMS += DHT_test \
|
|
Messenger_test
|
|
|
|
DHT_test_SOURCES = ../testing/DHT_test.c
|
|
|
|
DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
Messenger_test_SOURCES = \
|
|
../testing/Messenger_test.c
|
|
|
|
Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
|
|
|
|
if !WIN32
|
|
|
|
noinst_PROGRAMS += tox_shell
|
|
|
|
tox_shell_SOURCES = ../testing/tox_shell.c
|
|
|
|
tox_shell_CFLAGS = $(LIBSODIUM_CFLAGS) \
|
|
$(NACL_CFLAGS)
|
|
|
|
tox_shell_LDADD = $(LIBSODIUM_LDFLAGS) \
|
|
$(NACL_LDFLAGS) \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
-lutil
|
|
|
|
|
|
endif
|
|
|
|
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
|
|
|
|
endif
|