#!/bin/bash -e # $File: run.sh # $Date: Wed Feb 15 23:13:39 2017 +0800 # $Author: jiakai cd $(dirname $0) MAKE="make -f Makefile.impl" if [ "$1" = "--clean" ]; then rm -rf build main* echo "clean finished" exit 0 fi $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 <