ChangeLog \
INSTALL \
LICENSE \
+ Makefile.nmake \
README \
ReleaseNotes \
tor.spec \
--- /dev/null
+all:\r
+ cd src/common\r
+ $(MAKE) /F Makefile.nmake\r
+ cd ../../src/or\r
+ $(MAKE) /F Makefile.nmake\r
--- /dev/null
+ o Minor features (build compatibility):
+ - Limited, experimental support for building with nmake and MSVC.
+
noinst_LIBRARIES = libor.a libor-crypto.a libor-event.a
-EXTRA_DIST = common_sha1.i sha256.c
+EXTRA_DIST = common_sha1.i sha256.c Makefile.nmake
#CFLAGS = -Wall -Wpointer-arith -O2
--- /dev/null
+all: libor.lib libor-crypto.lib libor-event.lib\r
+\r
+CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include\r
+\r
+LIBOR_OBJECTS = address.obj compat.obj container.obj di_ops.obj \\r
+ log.obj memarea.obj mempool.obj procmon.obj util.obj \\r
+ util_codedigest.obj\r
+\r
+LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj torgzip.obj tortls.obj\r
+\r
+LIBOR_EVENT_OBJECTS = compat_libevent.obj\r
+\r
+libor.lib: $(LIBOR_OBJECTS)\r
+ lib $(LIBOR_OBJECTS) /out:libor.lib\r
+\r
+libor-crypto.lib: $(LIBOR_CRYPTO_OBJECTS)\r
+ lib $(LIBOR_CRYPTO_OBJECTS) /out:libor-crypto.lib\r
+\r
+libor-event.lib: $(LIBOR_EVENT_OBJECTS)\r
+ lib $(LIBOR_EVENT_OBJECTS) /out:libor-event.lib\r
#define off64_t int64_t
#endif
-#ifdef _MSC_VER
-#include "..\..\contrib\zlib\zlib.h"
-#else
#include <zlib.h>
-#endif
/** Set to 1 if zlib is a version that supports gzip; set to 0 if it doesn't;
* set to -1 if we haven't checked yet. */
#define _GNU_SOURCE
#include "orconfig.h"
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#define UTIL_PRIVATE
#include "util.h"
#include "torlog.h"
#ifdef HAVE_SYS_FCNTL_H
#include <sys/fcntl.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
tor_platform_source=
endif
-EXTRA_DIST=ntmain.c or_sha1.i
+EXTRA_DIST=ntmain.c or_sha1.i Makefile.nmake
if USE_EXTERNAL_EVDNS
evdns_source=
--- /dev/null
+all: tor.exe\r
+\r
+CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common\r
+\r
+LIBS = ..\..\..\build-alpha\lib\libevent.a \\r
+ ..\..\..\build-alpha\lib\libcrypto.a \\r
+ ..\..\..\build-alpha\lib\libssl.a \\r
+ ..\..\..\build-alpha\lib\libz.a \\r
+ ws2_32.lib advapi32.lib shell32.lib\r
+\r
+LIBTOR_OBJECTS = buffers.obj circuitbuild.obj circuitlist.obj circuituse.obj \\r
+ command.obj config.obj connection.obj connection_edge.obj \\r
+ connection_or.obj control.obj cpuworker.obj directory.obj \\r
+ dirserv.obj dirvote.obj dns.obj dnsserv.obj geoip.obj \\r
+ hibernate.obj main.obj microdesc.obj networkstatus.obj \\r
+ nodelist.obj onion.obj policies.obj reasons.obj relay.obj \\r
+ rendclient.obj rendcommon.obj rendmid.obj rendservice.obj \\r
+ rephist.obj router.obj routerlist.obj routerparse.obj status.obj \\r
+ config_codedigest.obj ntmain.obj\r
+\r
+libtor.lib: $(LIBTOR_OBJECTS)\r
+ lib $(LIBTOR_OBJECTS) /out:libtor.lib\r
+\r
+tor.exe: libtor.lib tor_main.obj\r
+ $(CC) $(CFLAGS) $(LIBS) libtor.lib ..\common\*.lib tor_main.obj\r
+\r
+clean:\r
+ del $(LIBTOR_OBJECTS) *.lib tor.exe\r
tor_memcmp(rs->identity_digest,
router->cache_info.identity_digest, DIGEST_LEN),
{
-#if 0
- /* We have no routerstatus for this router. Clear flags and skip it. */
- if (!authdir) {
- if (router->purpose == ROUTER_PURPOSE_GENERAL)
- router_clear_status_flags(router);
- }
-#endif
}) {
/* We have a routerstatus for this router. */
const char *digest = router->cache_info.identity_digest;
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
+
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H
/* Version number of package */
#define VERSION "0.2.3.2-alpha-dev"
+
+
+
+#define HAVE_STRUCT_SOCKADDR_IN6
+#define HAVE_STRUCT_IN6_ADDR
+#define RSHIFT_DOES_SIGN_EXTEND
+#define FLEXIBLE_ARRAY_MEMBER 0
+#define HAVE_EVENT2_EVENT_H
+#define SHARE_DATADIR ""