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
|
|
|
|
2007-09-06 19:42:05 +02:00
|
|
|
if BUILD_NT_SERVICES
|
2007-09-15 20:06:23 +02:00
|
|
|
tor_platform_source=ntmain.c
|
2007-09-06 19:42:05 +02:00
|
|
|
else
|
2007-09-12 19:17:03 +02:00
|
|
|
tor_platform_source=
|
2007-09-06 19:42:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST=ntmain.c
|
|
|
|
|
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 \
|
2007-06-03 05:05:10 +02:00
|
|
|
cpuworker.c directory.c dirserv.c dirvote.c \
|
2007-09-12 19:17:03 +02:00
|
|
|
dns.c dnsserv.c hibernate.c main.c $(tor_platform_source) \
|
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-05-01 04:53:32 +02: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 04:12:02 +02:00
|
|
|
|
2007-05-01 04:53:32 +02: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 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 \
|
2007-06-03 05:05:10 +02:00
|
|
|
cpuworker.c directory.c dirserv.c dirvote.c \
|
2007-09-12 19:17:03 +02:00
|
|
|
dns.c dnsserv.c hibernate.c main.c $(tor_platform_source) \
|
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 \
|
2007-06-13 20:16:01 +02:00
|
|
|
test_data.c test.c
|
2002-07-09 21:51:41 +02:00
|
|
|
|
2007-04-30 22:50:09 +02:00
|
|
|
test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
|
2007-05-01 04:53:32 +02: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 21:51:41 +02:00
|
|
|
|
2007-04-18 21:28:47 +02:00
|
|
|
noinst_HEADERS = or.h eventdns.h eventdns_tor.h micro-revision.i
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2007-04-17 01:56:31 +02:00
|
|
|
tor_main.o: micro-revision.i
|
|
|
|
|
2007-08-14 15:34:41 +02:00
|
|
|
micro-revision.i: FORCE
|
2007-06-07 18:14:55 +02:00
|
|
|
@svkdir=$$SVKROOT; \
|
|
|
|
if test "x$$svkdir" = x ; then \
|
|
|
|
svkdir=$$HOME/.svk; \
|
|
|
|
fi; \
|
|
|
|
if test -d ../../.svn && test -x "`which svn 2>&1;true`" ; then \
|
2007-06-01 20:02:41 +02:00
|
|
|
svn info ../.. | \
|
2007-05-01 15:48:49 +02:00
|
|
|
sed -n 's/^Revision: \([0-9][0-9]*\).*/"\1"/p' > micro-revision.tmp \
|
2007-06-01 20:02:41 +02:00
|
|
|
|| true; \
|
2007-06-07 18:14:55 +02:00
|
|
|
elif test -x "`which svk 2>&1;true`" && test -d $$svkdir/local; then \
|
2007-06-01 20:02:41 +02:00
|
|
|
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 \
|
|
|
|
break; \
|
|
|
|
else \
|
|
|
|
location=/$$loc; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
2007-06-02 17:40:10 +02:00
|
|
|
if test x$$rev != xx; then \
|
2007-06-01 20:02:41 +02:00
|
|
|
echo \"$$rev\" > micro-revision.tmp; \
|
|
|
|
fi; \
|
|
|
|
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
|
2007-04-17 01:56:31 +02:00
|
|
|
|
2007-05-01 15:48:49 +02:00
|
|
|
#Dummy target to ensure that micro-revision.i _always_ gets built.
|
2007-04-17 01:56:31 +02:00
|
|
|
FORCE:
|