Added command-line client (for debug only).
[BoarSSL] / build.sh
1 #! /bin/sh
2
3 CSC=$(which mono-csc || which dmcs || which mcs || echo "none")
4
5 if [ $CSC = "none" ]; then
6 echo "Error: please install mono-devel."
7 exit 1
8 fi
9
10 set -e
11
12 echo "TestCrypto..."
13 $CSC /out:TestCrypto.exe /main:TestCrypto Tests/*.cs Asn1/*.cs Crypto/*.cs SSLTLS/*.cs X500/*.cs XKeys/*.cs ZInt/*.cs
14
15 echo "Client..."
16 $CSC /out:Client.exe /main:Client Asn1/*.cs Crypto/*.cs IO/*.cs SSLTLS/*.cs X500/*.cs XKeys/*.cs CLI/Client.cs
17
18 #echo "Server..."
19 #$CSC /out:Server.exe /main:Server Asn1/*.cs Crypto/*.cs SSLTLS/*.cs X500/*.cs XKeys/*.cs Server.cs
20
21 echo "Twrch..."
22 $CSC /out:Twrch.exe /main:Twrch Asn1/*.cs Crypto/*.cs IO/*.cs SSLTLS/*.cs X500/*.cs XKeys/*.cs Twrch/*.cs