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 (62 lines) | stat: -rw-r--r-- 1,619 bytes parent folder | download | duplicates (7)
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
57
58
59
60
61
62
TESTS = \
	test_compat \
	test_config-file \
	test_connection \
	test_onion \
	test_socks5 \
	test_utils \
	# 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) \
			-I$(top_srcdir)/src/lib \
			-DTORSOCKS_FIXTURE_PATH=\"`pwd`/fixtures/\"

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

LIBCOMMON=$(top_builddir)/src/common/libcommon.la

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

noinst_PROGRAMS = test_onion test_connection test_utils test_config-file test_socks5 test_compat

EXTRA_DIST = fixtures

test_onion_SOURCES = test_onion.c
test_onion_LDADD = $(LIBTAP) $(LIBCOMMON)

test_connection_SOURCES = test_connection.c
test_connection_LDADD = $(LIBTAP) $(LIBCOMMON)

test_utils_SOURCES = test_utils.c
test_utils_LDADD = $(LIBTAP) $(LIBCOMMON)

test_config_file_SOURCES = test_config-file.c
test_config_file_LDADD = $(LIBTAP) $(LIBCOMMON)

test_socks5_SOURCES = test_socks5.c
test_socks5_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBTORSOCKS)

test_compat_SOURCES = test_compat.c
test_compat_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBTORSOCKS)

all-local:
	@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
		for script in $(EXTRA_DIST); do \
			cp -rf $(srcdir)/$$script $(builddir); \
		done; \
	fi

# Force remove here so make sure EXTRA_DIST does not contain something like
# /usr. ;)
clean-local:
	@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
		for script in $(EXTRA_DIST); do \
			rm -rf $(builddir)/$$script; \
		done; \
	fi