#!/bin/bash -e # $File: run.sh # $Date: Wed Jan 04 10:56:12 2017 +0800 # $Author: jiakai cd $(dirname $0) MAKE="make -f Makefile.impl" $MAKE TARGET=main_prof CXXFLAGS=-DMIDOUT_PROFILING BUILD_DIR=build/prof rm -rf output mkdir -p output cd output ln -sv ../main_prof main if [ "$1" = "-i" ]; then cat <