-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
126 lines (110 loc) · 2.98 KB
/
Makefile.am
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
ACLOCAL_AMFLAGS = -I m4
WARNINGS = -Wall -Wwrite-strings -Werror
AM_CPPFLAGS = -I. -I$(srcdir)/src
AM_CFLAGS = $(WARNINGS) @libevent_CFLAGS@ @libcrypto_CFLAGS@
LDADD = libobfsproxy.a @libevent_LIBS@ @libcrypto_LIBS@ @ws32_LIBS@
bin_PROGRAMS = obfsproxy
noinst_LIBRARIES = libobfsproxy.a
noinst_PROGRAMS = unittests
libobfsproxy_a_SOURCES = \
src/container.c \
src/crypt.c \
src/external.c \
src/main.c \
src/managed.c \
src/network.c \
src/protocol.c \
src/socks.c \
src/status.c \
src/util.c \
src/protocols/dummy.c \
src/protocols/obfs2.c
if NEED_SHA256
libobfsproxy_a_SOURCES += src/sha256.c
endif
obfsproxy_SOURCES = src/obfs_main.c
unittests_SOURCES = \
src/test/tinytest.c \
src/test/unittest.c \
src/test/unittest_container.c \
src/test/unittest_crypt.c \
src/test/unittest_socks.c \
src/test/unittest_dummy.c \
src/test/unittest_managed.c \
src/test/unittest_obfs2.c \
src/test/unittest_util.c
noinst_HEADERS = \
src/container.h \
src/crypt.h \
src/external.h \
src/ht.h \
src/main.h \
src/managed.h \
src/network.h \
src/protocol.h \
src/sha256.h \
src/socks.h \
src/status.h \
src/util.h \
src/protocols/dummy.h \
src/protocols/obfs2.h \
src/test/tinytest.h \
src/test/tinytest_macros.h \
micro-revision.i
EXTRA_DIST = \
ChangeLog \
Doxyfile \
LICENSE \
README \
doc/HACKING \
doc/obfsproxy.1 \
doc/obfsproxy_architecture.txt \
doc/TODO \
doc/tor-obfs-howto.txt \
doc/obfs2/protocol-spec.txt \
doc/obfs2/threat-model.txt \
doc/obfs2/howto/README \
doc/obfs2/howto/client-external-howto.txt \
doc/obfs2/howto/client-managed-howto.txt \
doc/obfs2/howto/server-managed-howto.txt \
doc/obfs2/howto/server-external-howto.txt
TESTS = unittests
doxygen:
mkdir -p doc/doxygen
doxygen $(top_srcdir)/Doxyfile
$(MAKE) -C doc/doxygen/latex
if HAVE_PYTHON
TESTS += tester.py
noinst_PROGRAMS += tester.py
tester_py_SOURCES = src/test/tester.py.in
tester.py: src/test/tester.py.in Makefile
$(SED) -e 's,[@]PYTHON[@],$(PYTHON),' < $(top_srcdir)/src/test/tester.py.in > tester.py
chmod +x tester.py
endif
man_MANS = doc/obfsproxy.1
version:
@echo "obfsproxy @VERSION@"
@if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
echo -n "git: " ;\
(cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
fi
all: micro-revision.i
micro-revision.i: FORCE
@rm -f micro-revision.tmp; \
if test -d "$(top_srcdir)/.git" && \
test -x "`which git 2>&1;true`"; then \
HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
echo \"$$HASH\" > micro-revision.tmp; \
fi; \
if test ! -f micro-revision.tmp ; then \
if test ! -f micro-revision.i ; then \
echo '""' > micro-revision.i; \
fi; \
elif test ! -f micro-revision.i || \
test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
mv micro-revision.tmp micro-revision.i; \
fi; true
@rm -f micro-revision.tmp;
CLEANFILES = micro-revision.i
#Dummy target to ensure that micro-revision.i _always_ gets built.
FORCE: