1#!/bin/bash 2 3set -x 4LIBRESSL=$HOME/code/libressl-2.5.1/install 5CXXFLAGS="-Wall -Wextra -Wno-unused-parameter -I $LIBRESSL/include/ -I $HOME/muduo -O2 -g" 6LDFLAGS="-L $LIBRESSL/lib/ -l tls -l ssl -l crypto -lrt" 7LIB="TlsAcceptor.cc TlsConfig.cc TlsStream.cc ../tpc/lib/InetAddress.cc ../tpc/lib/Socket.cc ../logging/Logging.cc ../logging/LogStream.cc ../datetime/Timestamp.cc ../thread/Thread.cc" 8 9g++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB server.cc -o server $LDFLAGS 10g++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB client.cc -o client $LDFLAGS 11 12g++ $CXXFLAGS benchmark-libressl.cc -o benchmark-libressl $LDFLAGS -pthread 13g++ -Wall -O2 -g benchmark-openssl.cc -o benchmark-openssl -lssl -lcrypto -lrt 14 15g++ -Wall -Wno-deprecated-declarations -O2 -g footprint-openssl.cc -o footprint-openssl -lssl -lcrypto -lrt 16g++ -Wall -Wno-deprecated-declarations -O2 -g footprint-openssl2.cc -o footprint-openssl2 -lssl -lcrypto -lrt 17 18g++ $CXXFLAGS loop-libressl.cc -o loop-libressl -iquote ../ -pthread $LDFLAGS ../thread/Thread.cc 19 20 21