forked from torproject/tor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
9d77f24
commit e802199
Showing
11 changed files
with
72 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ EXTRA_DIST = \ | |
ChangeLog \ | ||
INSTALL \ | ||
LICENSE \ | ||
Makefile.nmake \ | ||
README \ | ||
ReleaseNotes \ | ||
tor.spec \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
all: | ||
cd src/common | ||
$(MAKE) /F Makefile.nmake | ||
cd ../../src/or | ||
$(MAKE) /F Makefile.nmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
o Minor features (build compatibility): | ||
- Limited, experimental support for building with nmake and MSVC. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
all: tor.exe | ||
|
||
CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common | ||
|
||
LIBS = ..\..\..\build-alpha\lib\libevent.a \ | ||
..\..\..\build-alpha\lib\libcrypto.a \ | ||
..\..\..\build-alpha\lib\libssl.a \ | ||
..\..\..\build-alpha\lib\libz.a \ | ||
ws2_32.lib advapi32.lib shell32.lib | ||
|
||
LIBTOR_OBJECTS = buffers.obj circuitbuild.obj circuitlist.obj circuituse.obj \ | ||
command.obj config.obj connection.obj connection_edge.obj \ | ||
connection_or.obj control.obj cpuworker.obj directory.obj \ | ||
dirserv.obj dirvote.obj dns.obj dnsserv.obj geoip.obj \ | ||
hibernate.obj main.obj microdesc.obj networkstatus.obj \ | ||
nodelist.obj onion.obj policies.obj reasons.obj relay.obj \ | ||
rendclient.obj rendcommon.obj rendmid.obj rendservice.obj \ | ||
rephist.obj router.obj routerlist.obj routerparse.obj status.obj \ | ||
config_codedigest.obj ntmain.obj | ||
|
||
libtor.lib: $(LIBTOR_OBJECTS) | ||
lib $(LIBTOR_OBJECTS) /out:libtor.lib | ||
|
||
tor.exe: libtor.lib tor_main.obj | ||
$(CC) $(CFLAGS) $(LIBS) libtor.lib ..\common\*.lib tor_main.obj | ||
|
||
clean: | ||
del $(LIBTOR_OBJECTS) *.lib tor.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters