18d51ab70SShuo Chen#!/bin/bash 28d51ab70SShuo Chen 38d51ab70SShuo Chenset -x 4cc4062ffSShuo ChenLIBRESSL=$HOME/code/libressl-2.5.1/install 5cc4062ffSShuo ChenCXXFLAGS="-Wall -Wextra -Wno-unused-parameter -I $LIBRESSL/include/ -I $HOME/muduo -O2 -g" 6cc4062ffSShuo ChenLDFLAGS="-L $LIBRESSL/lib/ -l tls -l ssl -l crypto -lrt" 77db0aea6SShuo ChenLIB="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" 87db0aea6SShuo Chen 97db0aea6SShuo Cheng++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB server.cc -o server $LDFLAGS 108d51ab70SShuo Cheng++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB client.cc -o client $LDFLAGS 118d51ab70SShuo Chen 12cc4062ffSShuo Cheng++ $CXXFLAGS benchmark-libressl.cc -o benchmark-libressl $LDFLAGS -pthread 13116e48deSShuo Cheng++ -Wall -O2 -g benchmark-openssl.cc -o benchmark-openssl -lssl -lcrypto -lrt 14116e48deSShuo Chen 15116e48deSShuo Cheng++ -Wall -Wno-deprecated-declarations -O2 -g footprint-openssl.cc -o footprint-openssl -lssl -lcrypto -lrt 16cc4062ffSShuo Cheng++ -Wall -Wno-deprecated-declarations -O2 -g footprint-openssl2.cc -o footprint-openssl2 -lssl -lcrypto -lrt 17b140ba61SShuo Chen 18926c960eSShuo Cheng++ $CXXFLAGS loop-libressl.cc -o loop-libressl -iquote ../ -pthread $LDFLAGS ../thread/Thread.cc 19b140ba61SShuo Chen 20b140ba61SShuo Chen 21