summaryrefslogtreecommitdiff
path: root/auto_tests/Makefile.inc
blob: 6c59eebb9be3674ac9f752d2e467b0548d33dac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
if BUILD_TESTS

TESTS = messenger_autotest crypto_test network_test

check_PROGRAMS = messenger_autotest crypto_test network_test

messenger_autotest_SOURCES = \
                        ../auto_tests/messenger_test.c

messenger_autotest_CFLAGS = \
                        $(LIBSODIUM_CFLAGS) \
                        $(NACL_CFLAGS) \
                        $(CHECK_CFLAGS)

messenger_autotest_LDADD = \
                        $(LIBSODIUM_LDFLAGS) \
                        $(NACL_LDFLAGS) \
                        libtoxcore.la \
                        $(LIBSODIUM_LIBS) \
                        $(NACL_LIBS) \
                        $(CHECK_LIBS)


crypto_test_SOURCES =   ../auto_tests/crypto_test.c

crypto_test_CFLAGS =    $(LIBSODIUM_CFLAGS) \
                        $(NACL_CFLAGS) \
                        $(CHECK_CFLAGS)

crypto_test_LDADD =     $(LIBSODIUM_LDFLAGS) \
                        $(NACL_LDFLAGS) \
                        libtoxcore.la \
                        $(LIBSODIUM_LIBS) \
                        $(NACL_LIBS) \
                        $(CHECK_LIBS)

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)

endif

EXTRA_DIST +=           $(top_srcdir)/auto_tests/friends_test.c