rewrite makefile with no mercy if on SunOS and not GCC