]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Clean up the MVSC nmake files so they work again.
authorNick Mathewson <nickm@torproject.org>
Tue, 9 Sep 2014 14:27:05 +0000 (10:27 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 9 Sep 2014 14:27:05 +0000 (10:27 -0400)
Fixes bug 13081; bugfix on 0.2.5.1-alpha. Patch from "NewEraCracker."

Makefile.nmake
changes/bug13081 [new file with mode: 0644]
src/common/Makefile.nmake
src/ext/Makefile.nmake [new file with mode: 0644]
src/or/Makefile.nmake
src/win32/orconfig.h

index a0a11ebdb9023c9830c85ef5ae73ad74cb3bd939..32401b50b73aae0215148a5878b0b6b379acd01c 100644 (file)
@@ -1,6 +1,8 @@
 all:\r
        cd src/common\r
        $(MAKE) /F Makefile.nmake\r
+       cd ../../src/ext\r
+       $(MAKE) /F Makefile.nmake\r
        cd ../../src/or\r
        $(MAKE) /F Makefile.nmake\r
        cd ../../src/test\r
@@ -9,6 +11,8 @@ all:
 clean:\r
        cd src/common\r
        $(MAKE) /F Makefile.nmake clean\r
+       cd ../../src/ext\r
+       $(MAKE) /F Makefile.nmake clean\r
        cd ../../src/or\r
        $(MAKE) /F Makefile.nmake clean\r
        cd ../../src/test\r
diff --git a/changes/bug13081 b/changes/bug13081
new file mode 100644 (file)
index 0000000..154f73f
--- /dev/null
@@ -0,0 +1,3 @@
+  o Compilation fixes:
+    - Make the nmake make files work again. Fixes bug 13081. Bugfix on 0.2.5.1-alpha. Patch
+      from "NewEraCracker".
index 0ebeaaaf7174de084395b78d413e5d55bcd98a18..b8c5dd4fea2cbd48ac35b78624288ad037c03093 100644 (file)
@@ -1,12 +1,13 @@
 all: libor.lib libor-crypto.lib libor-event.lib
 
-CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\ext
+CFLAGS = /O2 /MT /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common \
+    /I ..\ext
 
-LIBOR_OBJECTS = address.obj compat.obj container.obj di_ops.obj \
-       log.obj memarea.obj mempool.obj procmon.obj util.obj \
+LIBOR_OBJECTS = address.obj backtrace.obj compat.obj container.obj di_ops.obj \
+       log.obj memarea.obj mempool.obj procmon.obj sandbox.obj util.obj \
        util_codedigest.obj
 
-LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj torgzip.obj tortls.obj \
+LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj crypto_format.obj torgzip.obj tortls.obj \
        crypto_curve25519.obj curve25519-donna.obj
 
 LIBOR_EVENT_OBJECTS = compat_libevent.obj
diff --git a/src/ext/Makefile.nmake b/src/ext/Makefile.nmake
new file mode 100644 (file)
index 0000000..d02d03b
--- /dev/null
@@ -0,0 +1,12 @@
+all: csiphash.lib
+
+CFLAGS = /O2 /MT /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common \
+    /I ..\ext
+
+CSIPHASH_OBJECTS = csiphash.obj
+
+csiphash.lib: $(CSIPHASH_OBJECTS)
+       lib $(CSIPHASH_OBJECTS) $(CURVE25519_DONNA_OBJECTS) /out:csiphash.lib
+
+clean:
+       del *.obj *.lib
index 3b627b1d0600dde315a1591f4577252c733a9ea5..523bf3306b6a7d1b701eea8cd09932cf72e6be58 100644 (file)
@@ -1,6 +1,6 @@
 all: tor.exe
 
-CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common \
+CFLAGS = /O2 /MT /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common \
     /I ..\ext
 
 LIBS = ..\..\..\build-alpha\lib\libevent.lib \
@@ -15,6 +15,7 @@ LIBTOR_OBJECTS = \
   buffers.obj \
   channel.obj \
   channeltls.obj \
+  circpathbias.obj \
   circuitbuild.obj \
   circuitlist.obj \
   circuitmux.obj \
@@ -35,6 +36,7 @@ LIBTOR_OBJECTS = \
   dirvote.obj \
   dns.obj \
   dnsserv.obj \
+  ext_orport.obj \
   fp_pair.obj \
   entrynodes.obj \
   geoip.obj \
@@ -69,7 +71,7 @@ libtor.lib: $(LIBTOR_OBJECTS)
        lib $(LIBTOR_OBJECTS) /out:$@
 
 tor.exe: libtor.lib tor_main.obj
-       $(CC) $(CFLAGS) $(LIBS) libtor.lib ..\common\*.lib tor_main.obj /Fe$@
+       $(CC) $(CFLAGS) $(LIBS) libtor.lib ..\common\*.lib ..\ext\*.lib tor_main.obj /Fe$@
 
 clean:
-       del $(LIBTOR_OBJECTS) *.lib tor.exe
+       del $(LIBTOR_OBJECTS) tor_main.obj *.lib tor.exe
index 8c2472c323324626985b79cd571d32760045b954..9873955a31a34add4764bd574cfa70461e4591ef 100644 (file)
 #define USE_CURVE25519_DONNA
 
 #define ENUM_VALS_ARE_SIGNED 1
+
+#ifndef STDOUT_FILENO
+#define STDOUT_FILENO 1
+#endif
+
+#ifndef STDERR_FILENO
+#define STDERR_FILENO 2
+#endif