build.sh revision 116e48de
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 12116e48deSShuo Cheng++ -Wall -O2 -g benchmark-openssl.cc -o benchmark-openssl -lssl -lcrypto -lrt 13116e48deSShuo Chen 14116e48deSShuo Cheng++ -Wall -Wno-deprecated-declarations -O2 -g footprint-openssl.cc -o footprint-openssl -lssl -lcrypto -lrt 15b140ba61SShuo Chen 16926c960eSShuo Cheng++ $CXXFLAGS loop-libressl.cc -o loop-libressl -iquote ../ -pthread $LDFLAGS ../thread/Thread.cc 17b140ba61SShuo Chen 18b140ba61SShuo Chen 19