Commit e802199c authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Initial patch to build Tor with msvc and nmake

We'll still need to tweak it so that it looks for includes and
libraries somewhere more sensible than "where we happened to find
them on Erinn's system"; so that tests and tools get built too;
so that it's a bit documented; and so that we actually try running
the output.

Work done with Erinn Clark.
parent 9d77f24c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ EXTRA_DIST = \
	ChangeLog					\
	INSTALL						\
	LICENSE						\
	Makefile.nmake					\
	README						\
	ReleaseNotes					\
	tor.spec					\

Makefile.nmake

0 → 100644
+5 −0
Original line number Diff line number Diff line
all:
	cd src/common
	$(MAKE) /F Makefile.nmake
	cd ../../src/or
	$(MAKE) /F Makefile.nmake

changes/nmake

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor features (build compatibility):
    - Limited, experimental support for building with nmake and MSVC.
+1 −1
Original line number Diff line number Diff line

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

+20 −0
Original line number Diff line number Diff line
all: libor.lib libor-crypto.lib libor-event.lib

CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include

LIBOR_OBJECTS = address.obj compat.obj container.obj di_ops.obj \
	log.obj memarea.obj mempool.obj procmon.obj util.obj \
	util_codedigest.obj

LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj torgzip.obj tortls.obj

LIBOR_EVENT_OBJECTS = compat_libevent.obj

libor.lib: $(LIBOR_OBJECTS)
	lib $(LIBOR_OBJECTS) /out:libor.lib

libor-crypto.lib: $(LIBOR_CRYPTO_OBJECTS)
	lib $(LIBOR_CRYPTO_OBJECTS) /out:libor-crypto.lib

libor-event.lib:  $(LIBOR_EVENT_OBJECTS)
	lib $(LIBOR_EVENT_OBJECTS) /out:libor-event.lib
Loading