makefiles for library and user