2003-04-07 04:12:02 +02:00
|
|
|
TESTS = test
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2003-04-07 04:12:02 +02:00
|
|
|
noinst_PROGRAMS = test
|
2002-07-09 21:51:41 +02:00
|
|
|
|
2004-02-25 07:41:21 +01:00
|
|
|
bin_PROGRAMS = tor
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2004-05-13 09:24:49 +02:00
|
|
|
tor_SOURCES = buffers.c circuitbuild.c circuitlist.c \
|
|
|
|
circuituse.c command.c config.c \
|
2004-11-03 02:32:26 +01:00
|
|
|
connection.c connection_edge.c connection_or.c control.c \
|
2004-10-31 21:28:41 +01:00
|
|
|
cpuworker.c directory.c dirserv.c dns.c hibernate.c main.c \
|
2006-03-27 04:25:34 +02:00
|
|
|
onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
|
2004-05-10 19:30:51 +02:00
|
|
|
rendservice.c rephist.c router.c routerlist.c routerparse.c \
|
2007-03-05 03:40:58 +01:00
|
|
|
eventdns.c \
|
2004-03-31 23:35:23 +02:00
|
|
|
tor_main.c
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2007-04-11 18:28:44 +02:00
|
|
|
tor_LDADD = ../common/libor.a ../common/libor-crypto.a
|
2003-04-07 04:12:02 +02:00
|
|
|
|
2004-05-13 09:24:49 +02:00
|
|
|
test_SOURCES = buffers.c circuitbuild.c circuitlist.c \
|
|
|
|
circuituse.c command.c config.c \
|
2004-11-03 02:32:26 +01:00
|
|
|
connection.c connection_edge.c connection_or.c control.c \
|
2004-10-31 21:28:41 +01:00
|
|
|
cpuworker.c directory.c dirserv.c dns.c hibernate.c main.c \
|
2006-03-27 04:25:34 +02:00
|
|
|
onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
|
2004-05-10 19:30:51 +02:00
|
|
|
rendservice.c rephist.c router.c routerlist.c routerparse.c \
|
2007-03-05 03:40:58 +01:00
|
|
|
eventdns.c \
|
2004-03-31 23:35:23 +02:00
|
|
|
test.c
|
2002-07-09 21:51:41 +02:00
|
|
|
|
2007-04-11 18:28:44 +02:00
|
|
|
test_LDADD = ../common/libor.a ../common/libor-crypto.a
|
2002-07-09 21:51:41 +02:00
|
|
|
|
2007-03-05 03:40:58 +01:00
|
|
|
noinst_HEADERS = or.h eventdns.h eventdns_tor.h
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2007-04-17 01:56:31 +02:00
|
|
|
tor_main.o: micro-revision.i
|
|
|
|
|
|
|
|
micro-revision.i: FORCE
|
|
|
|
rm -f micro-revision.i; \
|
|
|
|
if test -d ../../.svn ; then \
|
|
|
|
svn info ../.. | \
|
|
|
|
sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.i \
|
|
|
|
|| true; \
|
|
|
|
fi; \
|
2007-04-17 23:16:40 +02:00
|
|
|
if test ! -f micro-revision.i -a x`which svk` != x; then\
|
|
|
|
location=../..; \
|
|
|
|
rev=x; \
|
|
|
|
while test x$$rev = xx; do \
|
|
|
|
x=`svk info $$location | \
|
|
|
|
sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \
|
|
|
|
if test x$$x != x; then \
|
|
|
|
rev=$$x; \
|
|
|
|
break; \
|
|
|
|
else \
|
|
|
|
loc=`svk info $$location | \
|
|
|
|
sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
|
|
|
|
if test x$$loc == x; then \
|
|
|
|
rev=""; \
|
|
|
|
break; \
|
|
|
|
else \
|
|
|
|
location=/$$loc; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
echo \"$$rev\" > micro-revision.i; \
|
|
|
|
fi; \
|
2007-04-17 01:56:31 +02:00
|
|
|
if test ! -f micro-revision.i; then \
|
|
|
|
echo '""' > micro-revision.i; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
FORCE:
|