leave -O (optimize) off by default to simplify debugging.  use custom make rules in future, for either compile or link step as apporpriate