diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-01 12:36:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-01 12:36:59 -0400 |
commit | e802199cb3a2ebb4c09eaf4949e279acd3b46fc8 (patch) | |
tree | dd7f9967cc185487620e34692611f3d0b7b88a4b /src/common/Makefile.nmake | |
parent | 9d77f24cf5032c4a1dbf64ec2e25d7debf3758ed (diff) | |
download | tor-e802199cb3a2ebb4c09eaf4949e279acd3b46fc8.tar.gz tor-e802199cb3a2ebb4c09eaf4949e279acd3b46fc8.zip |
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.
Diffstat (limited to 'src/common/Makefile.nmake')
-rw-r--r-- | src/common/Makefile.nmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/Makefile.nmake b/src/common/Makefile.nmake new file mode 100644 index 0000000000..c8b5988666 --- /dev/null +++ b/src/common/Makefile.nmake @@ -0,0 +1,20 @@ +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
|