build.sh revision b140ba61
18d51ab70SShuo Chen#!/bin/bash 28d51ab70SShuo Chen 38d51ab70SShuo Chenset -x 4b140ba61SShuo ChenCXXFLAGS="-Wall -Wextra -Wno-unused-parameter -I /usr/local/include/ -I $HOME/muduo -O2 -g" 5b140ba61SShuo ChenLDFLAGS="-L /usr/local/lib/ -l tls -l ssl -l crypto -lrt" 67db0aea6SShuo 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" 77db0aea6SShuo Chen 87db0aea6SShuo Cheng++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB server.cc -o server $LDFLAGS 98d51ab70SShuo Cheng++ $CXXFLAGS -iquote ../tpc/include -I../ -std=c++11 -pthread $LIB client.cc -o client $LDFLAGS 108d51ab70SShuo Chen 118d51ab70SShuo Cheng++ $CXXFLAGS benchmark-libressl.cc -o benchmark-libressl $LDFLAGS 12b140ba61SShuo Cheng++ -Wall -I $HOME/muduo -O2 -g benchmark-openssl.cc -o benchmark-openssl -lssl -lcrypto -lrt 13b140ba61SShuo Chen 14926c960eSShuo Cheng++ $CXXFLAGS loop-libressl.cc -o loop-libressl -iquote ../ -pthread $LDFLAGS ../thread/Thread.cc 15b140ba61SShuo Chen 16b140ba61SShuo Chen 17