Because some errors in SmartOS I have made some changes (/opt/local/bin/n[255]: local: not found [No such file or directory])
- add a new VAR do Makefile to let choose the installation dir - in SMartOS is /opt/local instead of /usr/local
- SmartOS appears to have the lack of "local" declaration for variables in shell (I'm not a expert), for this I'm checking
the OS and if is a SunOS (SmartOS) will use "typeset" - LOCAL=typeset, for the rest using LOCAL=local, this appears weird but runs (just I say I'm not a expert in shell script)

1- when install can use "prefix" to install where you want ex: make install prefix=/opt/local (don't use /opt/local/ - remove the last /)
2- remove not needed to pass the prefix ex: make uninstall