File: Makefile.am

package info (click to toggle)
torsocks 2.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: ansic: 7,437; sh: 1,038; makefile: 105
file content (38 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
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
SUBDIRS = utils unit

TESTS = \
	test_connect \
	test_socket \
	# end of TESTS

TAP_DRIVER = $(top_srcdir)/tests/tap-driver.sh
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(TAP_DRIVER)

AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils/ -I$(srcdir)

AM_TESTS_ENVIRONMENT = \
	## Enable (experimental) ipv6 support
	TORSOCKS_ENABLE_IPV6=1

LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la

LIBTORSOCKS=$(top_builddir)/src/lib/libtorsocks.la

HELPER_SOURCES = helpers.c helpers.h

noinst_PROGRAMS = test_dns test_socket test_connect test_fd_passing test_getpeername

test_dns_SOURCES = test_dns.c $(HELPER_SOURCES)
test_dns_LDADD = $(LIBTAP) $(LIBTORSOCKS)

test_socket_SOURCES = test_socket.c
test_socket_LDADD = $(LIBTAP) $(LIBTORSOCKS)

test_connect_SOURCES = test_connect.c
test_connect_LDADD = $(LIBTAP) $(LIBTORSOCKS)

test_fd_passing_SOURCES = test_fd_passing.c $(HELPER_SOURCES)
test_fd_passing_LDADD = $(LIBTAP) $(LIBTORSOCKS) -lpthread

test_getpeername_SOURCES = test_getpeername.c $(HELPER_SOURCES)
test_getpeername_LDADD = $(LIBTAP) $(LIBTORSOCKS)