diff options
Diffstat (limited to 'auto_tests/Makefile.inc')
-rw-r--r-- | auto_tests/Makefile.inc | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/auto_tests/Makefile.inc b/auto_tests/Makefile.inc index 6c59eebb..9c06bc78 100644 --- a/auto_tests/Makefile.inc +++ b/auto_tests/Makefile.inc | |||
@@ -4,15 +4,12 @@ TESTS = messenger_autotest crypto_test network_test | |||
4 | 4 | ||
5 | check_PROGRAMS = messenger_autotest crypto_test network_test | 5 | check_PROGRAMS = messenger_autotest crypto_test network_test |
6 | 6 | ||
7 | messenger_autotest_SOURCES = \ | 7 | AUTOTEST_CFLAGS = \ |
8 | ../auto_tests/messenger_test.c | 8 | $(LIBSODIUM_CFLAGS) \ |
9 | 9 | $(NACL_CFLAGS) \ | |
10 | messenger_autotest_CFLAGS = \ | 10 | $(CHECK_CFLAGS) |
11 | $(LIBSODIUM_CFLAGS) \ | 11 | |
12 | $(NACL_CFLAGS) \ | 12 | AUTOTEST_LDADD = \ |
13 | $(CHECK_CFLAGS) | ||
14 | |||
15 | messenger_autotest_LDADD = \ | ||
16 | $(LIBSODIUM_LDFLAGS) \ | 13 | $(LIBSODIUM_LDFLAGS) \ |
17 | $(NACL_LDFLAGS) \ | 14 | $(NACL_LDFLAGS) \ |
18 | libtoxcore.la \ | 15 | libtoxcore.la \ |
@@ -20,35 +17,26 @@ messenger_autotest_LDADD = \ | |||
20 | $(NACL_LIBS) \ | 17 | $(NACL_LIBS) \ |
21 | $(CHECK_LIBS) | 18 | $(CHECK_LIBS) |
22 | 19 | ||
20 | messenger_autotest_SOURCES = ../auto_tests/messenger_test.c | ||
21 | |||
22 | messenger_autotest_CFLAGS = $(AUTOTEST_CFLAGS) | ||
23 | |||
24 | messenger_autotest_LDADD = $(AUTOTEST_LDADD) | ||
25 | |||
23 | 26 | ||
24 | crypto_test_SOURCES = ../auto_tests/crypto_test.c | 27 | crypto_test_SOURCES = ../auto_tests/crypto_test.c |
25 | 28 | ||
26 | crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \ | 29 | crypto_test_CFLAGS = $(AUTOTEST_CFLAGS) |
27 | $(NACL_CFLAGS) \ | ||
28 | $(CHECK_CFLAGS) | ||
29 | 30 | ||
30 | crypto_test_LDADD = $(LIBSODIUM_LDFLAGS) \ | 31 | crypto_test_LDADD = $(AUTOTEST_LDADD) |
31 | $(NACL_LDFLAGS) \ | ||
32 | libtoxcore.la \ | ||
33 | $(LIBSODIUM_LIBS) \ | ||
34 | $(NACL_LIBS) \ | ||
35 | $(CHECK_LIBS) | ||
36 | 32 | ||
37 | network_test_SOURCES = \ | ||
38 | ../auto_tests/network_test.c | ||
39 | 33 | ||
40 | network_test_CFLAGS = \ | 34 | network_test_SOURCES = ../auto_tests/network_test.c |
41 | $(LIBSODIUM_CFLAGS) \ | 35 | |
42 | $(NACL_CFLAGS) \ | 36 | network_test_CFLAGS = $(AUTOTEST_CFLAGS) |
43 | $(CHECK_CFLAGS) | 37 | |
38 | network_test_LDADD = $(AUTOTEST_LDADD) | ||
44 | 39 | ||
45 | network_test_LDADD = \ | ||
46 | $(LIBSODIUM_LDFLAGS) \ | ||
47 | $(NACL_LDFLAGS) \ | ||
48 | libtoxcore.la \ | ||
49 | $(LIBSODIUM_LIBS) \ | ||
50 | $(NACL_LIBS) \ | ||
51 | $(CHECK_LIBS) | ||
52 | 40 | ||
53 | endif | 41 | endif |
54 | 42 | ||