Makefile cleanup and improvement

Dear Mr Omapconf,

Here are some cleanup, fix and change to allow omapconf to be built using shared library to reduce the size in a buildroot environment.
The size will go down from 2.5 MB to 1.8 MB.

Regards,
Benoit