summaryrefslogtreecommitdiff
path: root/auto_tests/Makefile.inc
diff options
context:
space:
mode:
authorJin^eLD <jin@mediatomb.cc>2013-09-05 13:02:26 +0300
committerJin^eLD <jin@mediatomb.cc>2013-09-06 22:54:45 +0300
commite092eee869ee4bb78974985321b55a3235c32b4d (patch)
tree8732ff254fa4fa157e1752e3ec1f6a0dfb01b251 /auto_tests/Makefile.inc
parent64570a1b12d308449aa0d688f7f513847d1dc0f7 (diff)
Allow to build vs nacl instead of libsodium
By default libsodium is used. Only if --enable-nacl is specified, then nacl will be used instead of libsodium. Pass locations of nacl headers and libraries by using the following options: --with-nacl-headers=/home/me/somewhere/nacl-20110221/build/469/include/amd64/ --with-nacl-libs=/home/me/somewhere/nacl-20110221/build/469/lib/amd64/
Diffstat (limited to 'auto_tests/Makefile.inc')
-rw-r--r--auto_tests/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/auto_tests/Makefile.inc b/auto_tests/Makefile.inc
index 199b61e9..4930a798 100644
--- a/auto_tests/Makefile.inc
+++ b/auto_tests/Makefile.inc
@@ -9,23 +9,29 @@ messenger_autotest_SOURCES = \
9 9
10messenger_autotest_CFLAGS = \ 10messenger_autotest_CFLAGS = \
11 $(LIBSODIUM_CFLAGS) \ 11 $(LIBSODIUM_CFLAGS) \
12 $(NACL_CFLAGS) \
12 $(CHECK_CFLAGS) 13 $(CHECK_CFLAGS)
13 14
14messenger_autotest_LDADD = \ 15messenger_autotest_LDADD = \
15 $(LIBSODIUM_LDFLAGS) \ 16 $(LIBSODIUM_LDFLAGS) \
17 $(NACL_LDFLAGS) \
16 libtoxcore.la \ 18 libtoxcore.la \
17 $(LIBSODIUM_LIBS) \ 19 $(LIBSODIUM_LIBS) \
20 $(NACL_LIBS) \
18 $(CHECK_LIBS) 21 $(CHECK_LIBS)
19 22
20 23
21crypto_test_SOURCES = ../auto_tests/crypto_test.c 24crypto_test_SOURCES = ../auto_tests/crypto_test.c
22 25
23crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \ 26crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
27 $(NACL_CFLAGS) \
24 $(CHECK_CFLAGS) 28 $(CHECK_CFLAGS)
25 29
26crypto_test_LDADD = $(LIBSODIUM_LDFLAGS) \ 30crypto_test_LDADD = $(LIBSODIUM_LDFLAGS) \
31 $(NACL_LDFLAGS) \
27 libtoxcore.la \ 32 libtoxcore.la \
28 $(LIBSODIUM_LIBS) \ 33 $(LIBSODIUM_LIBS) \
34 $(NACL_LIBS) \
29 $(CHECK_LIBS) 35 $(CHECK_LIBS)
30 36
31endif 37endif