build.sh revision 7db0aea6
18d51ab70SShuo Chen#!/bin/bash 28d51ab70SShuo Chen 38d51ab70SShuo Chenset -x 47db0aea6SShuo ChenCXXFLAGS="-Wall -Wextra -Wno-unused-parameter -I /usr/local/include/ -I $HOME/muduo" 58d51ab70SShuo ChenLDFLAGS="-L /usr/local/lib/ -l tls -l ssl -l crypto" 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 loop-libressl.cc -o loop-libressl $LDFLAGS 128d51ab70SShuo Cheng++ $CXXFLAGS benchmark-libressl.cc -o benchmark-libressl $LDFLAGS 13