2004-02-25 07:41:21 +01:00
|
|
|
bin_PROGRAMS = tor
|
2009-09-22 18:31:15 +02:00
|
|
|
noinst_LIBRARIES = libtor.a
|
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
|
|
|
|
|
2011-08-01 18:36:59 +02:00
|
|
|
EXTRA_DIST=ntmain.c or_sha1.i Makefile.nmake
|
2007-09-06 19:42:05 +02:00
|
|
|
|
2009-06-04 07:05:23 +02:00
|
|
|
if USE_EXTERNAL_EVDNS
|
|
|
|
evdns_source=
|
|
|
|
else
|
|
|
|
evdns_source=eventdns.c
|
|
|
|
endif
|
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
libtor_a_SOURCES = \
|
|
|
|
buffers.c \
|
|
|
|
circuitbuild.c \
|
|
|
|
circuitlist.c \
|
|
|
|
circuituse.c \
|
|
|
|
command.c \
|
|
|
|
config.c \
|
|
|
|
connection.c \
|
|
|
|
connection_edge.c \
|
|
|
|
connection_or.c \
|
|
|
|
control.c \
|
|
|
|
cpuworker.c \
|
|
|
|
directory.c \
|
|
|
|
dirserv.c \
|
|
|
|
dirvote.c \
|
|
|
|
dns.c \
|
|
|
|
dnsserv.c \
|
|
|
|
geoip.c \
|
|
|
|
hibernate.c \
|
|
|
|
main.c \
|
|
|
|
microdesc.c \
|
|
|
|
networkstatus.c \
|
|
|
|
nodelist.c \
|
|
|
|
onion.c \
|
2011-07-18 02:33:31 +02:00
|
|
|
transports.c \
|
2010-11-11 20:22:48 +01:00
|
|
|
policies.c \
|
|
|
|
reasons.c \
|
|
|
|
relay.c \
|
|
|
|
rendclient.c \
|
|
|
|
rendcommon.c \
|
|
|
|
rendmid.c \
|
|
|
|
rendservice.c \
|
|
|
|
rephist.c \
|
|
|
|
router.c \
|
|
|
|
routerlist.c \
|
|
|
|
routerparse.c \
|
2010-12-01 02:32:42 +01:00
|
|
|
status.c \
|
2010-11-11 20:22:48 +01:00
|
|
|
$(evdns_source) \
|
|
|
|
$(tor_platform_source) \
|
2010-12-01 02:32:42 +01:00
|
|
|
config_codedigest.c
|
2009-06-04 07:05:23 +02:00
|
|
|
|
2009-09-22 18:31:15 +02:00
|
|
|
#libtor_a_LIBADD = ../common/libor.a ../common/libor-crypto.a \
|
|
|
|
# ../common/libor-event.a
|
|
|
|
|
|
|
|
|
|
|
|
tor_SOURCES = tor_main.c
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2007-11-04 21:49:02 +01:00
|
|
|
AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
|
|
|
|
-DLOCALSTATEDIR="\"$(localstatedir)\"" \
|
|
|
|
-DBINDIR="\"$(bindir)\""
|
|
|
|
|
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
|
|
|
|
2010-03-09 05:24:24 +01:00
|
|
|
|
2007-05-01 04:53:32 +02:00
|
|
|
tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@
|
2009-09-22 18:31:15 +02:00
|
|
|
tor_LDADD = ./libtor.a ../common/libor.a ../common/libor-crypto.a \
|
2009-06-04 07:05:23 +02:00
|
|
|
../common/libor-event.a \
|
2011-12-17 14:30:41 +01:00
|
|
|
@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
2011-05-06 15:34:00 +02:00
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@
|
2009-08-14 20:34:16 +02:00
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
noinst_HEADERS = \
|
|
|
|
buffers.h \
|
|
|
|
circuitbuild.h \
|
|
|
|
circuitlist.h \
|
|
|
|
circuituse.h \
|
|
|
|
command.h \
|
|
|
|
config.h \
|
|
|
|
connection.h \
|
|
|
|
connection_edge.h \
|
|
|
|
connection_or.h \
|
|
|
|
control.h \
|
|
|
|
cpuworker.h \
|
|
|
|
directory.h \
|
|
|
|
dirserv.h \
|
|
|
|
dirvote.h \
|
|
|
|
dns.h \
|
|
|
|
dnsserv.h \
|
|
|
|
eventdns.h \
|
|
|
|
eventdns_tor.h \
|
|
|
|
geoip.h \
|
|
|
|
hibernate.h \
|
|
|
|
main.h \
|
|
|
|
microdesc.h \
|
|
|
|
networkstatus.h \
|
|
|
|
nodelist.h \
|
|
|
|
ntmain.h \
|
|
|
|
onion.h \
|
|
|
|
or.h \
|
2011-07-18 02:33:31 +02:00
|
|
|
transports.h \
|
2010-11-11 20:22:48 +01:00
|
|
|
policies.h \
|
|
|
|
reasons.h \
|
|
|
|
relay.h \
|
|
|
|
rendclient.h \
|
|
|
|
rendcommon.h \
|
|
|
|
rendmid.h \
|
|
|
|
rendservice.h \
|
|
|
|
rephist.h \
|
|
|
|
router.h \
|
|
|
|
routerlist.h \
|
|
|
|
routerparse.h \
|
2010-12-01 02:32:42 +01:00
|
|
|
status.h \
|
|
|
|
micro-revision.i
|
2002-06-29 01:26:42 +02:00
|
|
|
|
2009-05-08 18:35:36 +02:00
|
|
|
config_codedigest.o: or_sha1.i
|
2009-01-04 03:43:05 +01: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
|
2009-06-12 19:38:37 +02:00
|
|
|
@rm -f micro-revision.tmp; \
|
2011-09-07 18:04:45 +02:00
|
|
|
if test -d "$(top_srcdir)/.git" && \
|
|
|
|
test -x "`which git 2>&1;true`"; then \
|
|
|
|
HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
|
2009-06-12 19:38:37 +02:00
|
|
|
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 || \
|
2007-06-01 20:02:41 +02:00
|
|
|
test x"`cat micro-revision.tmp`" != x"`cat micro-revision.i`"; then \
|
2009-06-12 19:38:37 +02:00
|
|
|
mv micro-revision.tmp micro-revision.i; \
|
2007-06-01 20:02:41 +02:00
|
|
|
fi; true
|
2007-04-17 01:56:31 +02:00
|
|
|
|
2011-06-18 09:54:04 +02:00
|
|
|
or_sha1.i: $(tor_SOURCES) $(libtor_a_SOURCES)
|
2009-01-04 03:43:05 +01:00
|
|
|
if test "@SHA1SUM@" != none; then \
|
2011-09-07 18:04:45 +02:00
|
|
|
(cd "$(srcdir)" && @SHA1SUM@ $(tor_SOURCES) $(libtor_a_SOURCES)) | \
|
2011-06-18 09:54:04 +02:00
|
|
|
@SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > or_sha1.i; \
|
2009-01-04 03:43:05 +01:00
|
|
|
elif test "@OPENSSL@" != none; then \
|
2011-09-07 18:04:45 +02:00
|
|
|
(cd "$(srcdir)" && @OPENSSL@ sha1 $(tor_SOURCES) $(libtor_a_SOURCES)) | \
|
2011-06-18 09:54:04 +02:00
|
|
|
@SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > or_sha1.i; \
|
2009-01-04 03:43:05 +01:00
|
|
|
else \
|
|
|
|
rm or_sha1.i; \
|
|
|
|
touch or_sha1.i; \
|
|
|
|
fi
|
|
|
|
|
2010-08-03 00:48:59 +02:00
|
|
|
CLEANFILES = micro-revision.i
|
|
|
|
|
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:
|