2003-04-07 02:12:02 +00:00
|
|
|
TESTS = test
|
2002-06-28 23:26:42 +00:00
|
|
|
|
2003-04-07 02:12:02 +00:00
|
|
|
noinst_PROGRAMS = test
|
2002-07-09 19:51:41 +00:00
|
|
|
|
2004-02-25 06:41:21 +00:00
|
|
|
bin_PROGRAMS = tor
|
2002-06-28 23:26:42 +00:00
|
|
|
|
2004-05-13 07:24:49 +00:00
|
|
|
tor_SOURCES = buffers.c circuitbuild.c circuitlist.c \
|
|
|
|
circuituse.c command.c config.c \
|
2004-11-03 01:32:26 +00:00
|
|
|
connection.c connection_edge.c connection_or.c control.c \
|
2007-05-24 20:31:30 +00:00
|
|
|
cpuworker.c directory.c dirserv.c dns.c dnsserv.c hibernate.c main.c \
|
2006-03-27 02:25:34 +00:00
|
|
|
onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
|
2004-05-10 17:30:51 +00:00
|
|
|
rendservice.c rephist.c router.c routerlist.c routerparse.c \
|
2007-03-05 02:40:58 +00:00
|
|
|
eventdns.c \
|
2004-03-31 21:35:23 +00:00
|
|
|
tor_main.c
|
2002-06-28 23:26:42 +00:00
|
|
|
|
2007-05-01 02:53:32 +00:00
|
|
|
# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
|
|
|
|
# This seems to matter nowhere but on windows, but I assure you that it
|
|
|
|
# matters a lot there, and is quite hard to debug if you forget to do it.
|
2003-04-07 02:12:02 +00:00
|
|
|
|
2007-05-01 02:53:32 +00:00
|
|
|
tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
|
|
|
tor_LDADD = ../common/libor.a ../common/libor-crypto.a \
|
|
|
|
-lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
|
2004-05-13 07:24:49 +00:00
|
|
|
test_SOURCES = buffers.c circuitbuild.c circuitlist.c \
|
|
|
|
circuituse.c command.c config.c \
|
2004-11-03 01:32:26 +00:00
|
|
|
connection.c connection_edge.c connection_or.c control.c \
|
2007-05-24 20:31:30 +00:00
|
|
|
cpuworker.c directory.c dirserv.c dns.c dnsserv.c hibernate.c main.c \
|
2006-03-27 02:25:34 +00:00
|
|
|
onion.c policies.c relay.c rendcommon.c rendclient.c rendmid.c \
|
2004-05-10 17:30:51 +00:00
|
|
|
rendservice.c rephist.c router.c routerlist.c routerparse.c \
|
2007-03-05 02:40:58 +00:00
|
|
|
eventdns.c \
|
2004-03-31 21:35:23 +00:00
|
|
|
test.c
|
2002-07-09 19:51:41 +00:00
|
|
|
|
2007-04-30 20:50:09 +00:00
|
|
|
test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
|
2007-05-01 02:53:32 +00:00
|
|
|
@TOR_LDFLAGS_libevent@
|
|
|
|
test_LDADD = ../common/libor.a ../common/libor-crypto.a \
|
|
|
|
-lz -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
|
2002-07-09 19:51:41 +00:00
|
|
|
|
2007-04-18 19:28:47 +00:00
|
|
|
noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
|
2002-06-28 23:26:42 +00:00
|
|
|
|
2007-04-16 23:56:31 +00:00
|
|
|
tor_main.o: micro-revision.i
|
|
|
|
|
|
|
|
micro-revision.i: FORCE
|
2007-06-01 10:20:37 +00:00
|
|
|
@if test -d ../../.svn && test x`which svn` != x ; then \
|
2007-04-16 23:56:31 +00:00
|
|
|
svn info ../.. | \
|
2007-05-01 13:48:49 +00:00
|
|
|
sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \
|
2007-04-18 19:28:47 +00:00
|
|
|
|| true; \
|
2007-06-01 10:20:37 +00:00
|
|
|
elif test x`which svk` != x && test -d ~/.svk/local; then \
|
2007-04-17 21:16:40 +00:00
|
|
|
location=../..; \
|
|
|
|
rev=x; \
|
2007-04-18 19:28:47 +00:00
|
|
|
while test x$$rev = xx; do \
|
|
|
|
x=`svk info $$location | \
|
2007-04-17 21:16:40 +00:00
|
|
|
sed -n 's/^Mirrored From:.*, Rev\. \([0-9][0-9]*\)/\1/p'`; \
|
2007-04-18 19:28:47 +00:00
|
|
|
if test x$$x != x; then \
|
|
|
|
rev=$$x; \
|
2007-04-17 21:16:40 +00:00
|
|
|
break; \
|
|
|
|
else \
|
2007-04-18 19:28:47 +00:00
|
|
|
loc=`svk info $$location | \
|
2007-04-17 21:16:40 +00:00
|
|
|
sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
|
2007-04-18 19:28:47 +00:00
|
|
|
if test x$$loc = x; then \
|
2007-04-17 21:16:40 +00:00
|
|
|
break; \
|
|
|
|
else \
|
2007-04-18 19:28:47 +00:00
|
|
|
location=/$$loc; \
|
2007-04-17 21:16:40 +00:00
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
2007-04-18 19:28:47 +00:00
|
|
|
if test x$$rev != x; then \
|
2007-05-01 13:48:49 +00:00
|
|
|
echo \"$$rev\" > micro-revision.tmp; \
|
2007-04-18 19:28:47 +00:00
|
|
|
fi; \
|
2007-04-17 21:16:40 +00:00
|
|
|
fi; \
|
2007-05-07 17:11:53 +00:00
|
|
|
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 || \
|
2007-06-01 10:20:37 +00:00
|
|
|
test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
|
2007-05-01 13:48:49 +00:00
|
|
|
mv micro-revision.tmp micro-revision.i; \
|
2007-04-16 23:56:31 +00:00
|
|
|
fi
|
|
|
|
|
2007-05-01 13:48:49 +00:00
|
|
|
#Dummy target to ensure that micro-revision.i _always_ gets built.
|
2007-04-16 23:56:31 +00:00
|
|
|
FORCE:
|