Author: alanmc
Date: 2007-03-22 14:21:12 -0500 (Thu, 22 Mar 2007)
New Revision: 74828

Added:
   trunk/bitsharp/src/Makefile
   trunk/bitsharp/src/MonoTorrent.BEncoding/Makefile
   trunk/bitsharp/src/MonoTorrent.Client/Makefile
   trunk/bitsharp/src/MonoTorrent.Common/Makefile
   trunk/bitsharp/src/MonoTorrent.Tracker/Makefile
   trunk/bitsharp/src/MonoTorrent.TrackerApp/Makefile
   trunk/bitsharp/src/MonoTorrent/Makefile
Modified:
   trunk/bitsharp/src/MonoTorrent.Interface/src/Makefile
   trunk/bitsharp/src/README
Log:
Updated makefiles

Added: trunk/bitsharp/src/Makefile
===================================================================
--- trunk/bitsharp/src/Makefile 2007-03-22 19:19:21 UTC (rev 74827)
+++ trunk/bitsharp/src/Makefile 2007-03-22 19:21:12 UTC (rev 74828)
@@ -0,0 +1,22 @@
+all: bencoding common client tracker trackerapp testclient
+
+bencoding:
+       cd MonoTorrent.BEncoding && $(MAKE)
+
+common:
+       cd MonoTorrent.Common && $(MAKE)
+
+client: 
+       cd MonoTorrent.Client && $(MAKE)
+       
+tracker:
+       cd MonoTorrent.Tracker && $(MAKE)
+
+trackerapp:
+       cd MonoTorrent.TrackerApp && $(MAKE)
+
+testclient:
+       cd MonoTorrent && $(MAKE)
+
+interface:
+       cd MonoTorrent.Interface/src && $(MAKE)


Property changes on: trunk/bitsharp/src/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/bitsharp/src/MonoTorrent/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Makefile     2007-03-22 19:19:21 UTC (rev 
74827)
+++ trunk/bitsharp/src/MonoTorrent/Makefile     2007-03-22 19:21:12 UTC (rev 
74828)
@@ -0,0 +1,12 @@
+CSC=gmcs 
+OUT=../bin/MonoTorrent.exe
+REFERENCES=../bin/MonoTorrent.Common.dll,../bin/MonoTorrent.Client.dll,../bin/MonoTorrent.BEncoding.dll,../Libs/Upnp.dll
+SOURCES=main.cs \
+       Top10Listener.cs
+
+all: testclient
+
+testclient: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) $(SOURCES) -target:exe -d:DEBUG -out:$(OUT) -r:$(REFERENCES)
+       cp ../Libs/Upnp.dll ../bin/Upnp.dll
\ No newline at end of file


Property changes on: trunk/bitsharp/src/MonoTorrent/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/bitsharp/src/MonoTorrent.BEncoding/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.BEncoding/Makefile   2007-03-22 19:19:21 UTC 
(rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.BEncoding/Makefile   2007-03-22 19:21:12 UTC 
(rev 74828)
@@ -0,0 +1,18 @@
+CSC=gmcs 
+OUT=../bin/MonoTorrent.BEncoding.dll
+REFERENCES=System
+SOURCES=AssemblyInfo.cs \
+       BEncode.cs \
+       BEncodedDictionary.cs \
+       BEncodedList.cs \
+       BEncodedNumber.cs \
+       BEncodedString.cs \
+       BEncodingException.cs \
+       IBEncodedValue.cs
+
+
+all: bencoding
+
+bencoding: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) -r:$(REFERENCES) -target:library -d:DEBUG -out:$(OUT) $(SOURCES)


Property changes on: trunk/bitsharp/src/MonoTorrent.BEncoding/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/bitsharp/src/MonoTorrent.Client/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Makefile      2007-03-22 19:19:21 UTC 
(rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.Client/Makefile      2007-03-22 19:21:12 UTC 
(rev 74828)
@@ -0,0 +1,89 @@
+CSC=gmcs 
+OUT=../bin/MonoTorrent.Client.dll
+REFERENCES=../bin/MonoTorrent.Common.dll,System.Web,Mono.Security.dll,../bin/Monotorrent.BEncoding.dll,../Libs/Upnp.dll
+SOURCES=BitField.cs \
+Block.cs \
+BufferedFileRead.cs \
+BufferedFileWrite.cs \
+ClientEngine.cs \
+ConnectionListener.cs \
+Logger.cs \
+PeerList.cs \
+PortMapper.cs \
+RateLimiter.cs \
+TransferType.cs \
+Encryption/EncryptedSocket.cs \
+Encryption/IEncryption.cs \
+Encryption/IEncryptor.cs \
+Encryption/ModuloCalculator.cs \
+Encryption/NoEncryption.cs \
+Encryption/NullEncryption.cs \
+Encryption/PeerAEncryption.cs \
+Encryption/PeerBEncryption.cs \
+Encryption/RC4.cs \
+EventArgs/MessageEventArgs.cs \
+EventArgs/PeerConnectionEventArgs.cs \
+EventArgs/PeersAddedEventArgs.cs \
+EventArgs/PieceEventArgs.cs \
+EventArgs/PieceHashedEventArgs.cs \
+EventArgs/TorrentStateChangedEventArgs.cs \
+EventArgs/TrackerStateChangedEventArgs.cs \
+Exceptions/ConnectionException.cs \
+Exceptions/MessageException.cs \
+Exceptions/ListenerException.cs \
+Exceptions/ProtocolException.cs \
+Exceptions/TorrentLoadException.cs \
+Peers/Peer.cs \
+PeerConnections/PeerConnectionId.cs \
+PeerConnections/PeerConnectionBase.cs \
+PeerConnections/TCPConnection.cs \
+PiecePicking/EndGamePicker.cs \
+PiecePicking/PiecePickerBase.cs \
+PiecePicking/StandardPicker.cs \
+Managers/BufferManager.cs \
+Managers/ConnectionManager.cs \
+Managers/ConnectionMonitor.cs \
+Managers/FileManager.cs \
+Managers/PieceManager.cs \
+Managers/TorrentManager.cs \
+Managers/TrackerManager.cs \
+PeerMessages/BitfieldMessage.cs \
+PeerMessages/CancelMessage.cs \
+PeerMessages/ChokeMessage.cs \
+PeerMessages/HandshakeMessage.cs \
+PeerMessages/HaveMessage.cs \
+PeerMessages/InterestedMessage.cs \
+PeerMessages/IPeerMessage.cs \
+PeerMessages/IPeerMessageInternal.cs \
+PeerMessages/KeepAliveMessage.cs \
+PeerMessages/NotInterestedMessage.cs \
+PeerMessages/PeerwireEncoder.cs \
+PeerMessages/PieceMessage.cs \
+PeerMessages/PortMessage.cs \
+PeerMessages/RequestMessage.cs \
+PeerMessages/UnchokeMessage.cs \
+PeerMessages/UnknownMessage.cs \
+PeerMessages/ExtendedMessages/ExtendedListMessage.cs \
+PeerMessages/FastPeerExtensions/AllowedFastMessage.cs \
+PeerMessages/FastPeerExtensions/HaveAllMessage.cs \
+PeerMessages/FastPeerExtensions/HaveNoneMessage.cs \
+PeerMessages/FastPeerExtensions/RejectRequestMessage.cs \
+PeerMessages/FastPeerExtensions/SuggestPieceMessage.cs \
+Settings/EngineSettings.cs \
+Settings/TorrentSettings.cs \
+Piece.cs \
+TrackerConnectionId.cs \
+AllowedFastAlgorithm.cs \
+Tracker.cs
+
+#Tests/BitFieldTest.cs \
+#Tests/FileManager.cs \
+#Tests/PeerMessagesTest.cs \
+#Tests/AllowedFastAlgorithmTest.cs \
+
+
+all: client
+
+client: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) -r:$(REFERENCES) -target:library -d:DEBUG -out:$(OUT) $(SOURCES)


Property changes on: trunk/bitsharp/src/MonoTorrent.Client/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/bitsharp/src/MonoTorrent.Common/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/Makefile      2007-03-22 19:19:21 UTC 
(rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.Common/Makefile      2007-03-22 19:21:12 UTC 
(rev 74828)
@@ -0,0 +1,31 @@
+CSC=gmcs 
+OUT=../bin/MonoTorrent.Common.dll
+REFERENCES=../bin/MonoTorrent.BEncoding.dll
+SOURCES=Enums.cs \
+       Hashes.cs \
+       Peer.cs \
+       PeerID.cs \
+       ToolBox.cs \
+       TorrentCreator.cs \
+       Torrent.cs \
+       TorrentFile.cs \
+       TorrentException.cs \
+       VersionInfo.cs \
+       TorrentWatchers/ITorrentWatcher.cs \
+       TorrentWatchers/TorrentFolderWatcher.cs \
+       TorrentWatchers/TorrentWatcherEventArgs.cs \
+       TorrentWatchers/TorrentWatchers.cs \
+#      Test/BEncodingTest.cs \
+#      Test/CatStreamReaderTest.cs \
+#      Test/TorrentCreatorSingleFileTest.cs \
+#      Test/TorrentCreatorTest.cs \
+#      Test/TorrentTest.cs
+
+
+
+all: common
+
+common: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) $(SOURCES) -target:library -d:DEBUG -out:$(OUT) -r:$(REFERENCES)
+       


Property changes on: trunk/bitsharp/src/MonoTorrent.Common/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/bitsharp/src/MonoTorrent.Interface/src/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Interface/src/Makefile       2007-03-22 
19:19:21 UTC (rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.Interface/src/Makefile       2007-03-22 
19:21:12 UTC (rev 74828)
@@ -1,5 +1,5 @@
 CSC=gmcs
-OUT=../../MonoTorrent.Interface.exe
+OUT=../../bin/MonoTorrent.Interface.exe
 SOURCES=MonoTorrent.Interface/Program.cs \
        MonoTorrent.Interface/PathConstants.cs \
        MonoTorrent.Interface/Model/TorrentsList.cs \
@@ -28,7 +28,8 @@
        MonoTorrent.Interface/Settings/Configuration.cs \
        AssemblyInfo.cs
 REFERENCES=../../Client.dll \
-       ../../Common.dll
+       ../../Common.dll \
+       
 RESOURCES=../res/ui.xml \
        ../COPYING
 
@@ -38,4 +39,5 @@
 all: interface
 
 interface: $(SOURCES)
-       $(CSC) $(SOURCES) $(RESOURCE_B) $(REFERENCES_B) -target:winexe -d:DEBUG 
-out:$(OUT)
\ No newline at end of file
+       mkdir -p ../bin
+       $(CSC) $(SOURCES) $(RESOURCE_B) $(REFERENCES_B) -pkg:gtk-sharp 
-target:winexe -d:DEBUG -out:$(OUT)
\ No newline at end of file

Added: trunk/bitsharp/src/MonoTorrent.Tracker/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Tracker/Makefile     2007-03-22 19:19:21 UTC 
(rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.Tracker/Makefile     2007-03-22 19:21:12 UTC 
(rev 74828)
@@ -0,0 +1,28 @@
+CSC=gmcs 
+OUT=../bin/MonoTorrent.Tracker.dll
+REFERENCES=../bin/MonoTorrent.Common.dll,System.Web,../bin/MonoTorrent.BEncoding.dll
+SOURCES=Frontend/AnnounceHandler.cs \
+       Frontend/AnnounceParameterParser.cs \
+       Frontend/AnnounceParameters.cs \
+       Frontend/global.asax.cs \
+       Frontend/InternalHttpServer.cs \
+       Frontend/ParameterParser.cs \
+       Frontend/ScrapeHandler.cs \
+       Frontend/ScrapeParameterParser.cs \
+       Frontend/ScrapeParameters.cs \
+       Frontend/TestHandler.cs \
+       IIntervalAlgorithm.cs \
+       ITorrentManager.cs \
+       Peer.cs \
+       PeerManager.cs \
+       SimpleTorrentManager.cs \
+       StaticIntervalAlgorithm.cs \
+       Tracker.cs \
+       TrackerEngine.cs 
+
+
+all: tracker
+
+tracker: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) $(SOURCES) -target:library -out:$(OUT) -r:$(REFERENCES)


Property changes on: trunk/bitsharp/src/MonoTorrent.Tracker/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/bitsharp/src/MonoTorrent.TrackerApp/Makefile
===================================================================
--- trunk/bitsharp/src/MonoTorrent.TrackerApp/Makefile  2007-03-22 19:19:21 UTC 
(rev 74827)
+++ trunk/bitsharp/src/MonoTorrent.TrackerApp/Makefile  2007-03-22 19:21:12 UTC 
(rev 74828)
@@ -0,0 +1,10 @@
+CSC=gmcs 
+OUT=../TrackerApp.exe
+REFERENCES=../bin/MonoTorrent.Common.dll,../bin/MonoTorrent.Tracker.dll
+SOURCES=Main.cs AssemblyInfo.cs
+
+all: trackerapp
+
+trackerapp: $(SOURCES)
+       mkdir -p ../bin
+       $(CSC) $(SOURCES) -target:exe -out:$(OUT) -r:$(REFERENCES)


Property changes on: trunk/bitsharp/src/MonoTorrent.TrackerApp/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/bitsharp/src/README
===================================================================
--- trunk/bitsharp/src/README   2007-03-22 19:19:21 UTC (rev 74827)
+++ trunk/bitsharp/src/README   2007-03-22 19:21:12 UTC (rev 74828)
@@ -4,8 +4,14 @@
 
 
 Build:
+MakeFiles:
+To build using the makefiles, just enter the src directory and run "make". 
Everything except the interface will be built and stored in a directory called 
"bin".
+
+To build the interface just execute: "make interface". This requires GTK# to 
be available.
+
+Project Files:
 To build the project, go into the "BuildScripts" directory and execute the 
required script for the type
-build file you want to create (VisualStudio/SharpDevelop/MonoDevelop or 
Autotools for makefiles).
+build file you want to create (VisualStudio/SharpDevelop/MonoDevelop)
 
 [The Tracker]
 ============

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to