mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
7245ac11ef
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
if BUILD_TESTS
|
|
TEST_LIB = misc_tools
|
|
endif
|
|
if BUILD_TESTING
|
|
TEST_LIB = misc_tools
|
|
endif
|
|
|
|
noinst_LTLIBRARIES += libmisc_tools.la
|
|
libmisc_tools_la_SOURCES = ../testing/misc_tools.c ../testing/misc_tools.h
|
|
|
|
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) \
|
|
libmisc_tools.la \
|
|
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) \
|
|
libmisc_tools.la \
|
|
libtoxcore.la \
|
|
$(LIBSODIUM_LIBS) \
|
|
$(NACL_OBJECTS) \
|
|
$(NACL_LIBS) \
|
|
$(WINSOCK2_LIBS)
|
|
|
|
endif
|