Shared library may or may not be provided. If it is not, that means your platform probably does not support it or I don't know how to make it. Take a look at mkconfig.h to see how to make the shared library. One other platforms, it was compiled using mesa. All changes should be made to mkconfig.h and they will propagate to other makefiles.
Type make to generate all the executables.
If you're using the shared lib, you don't need to have -lXpm to compile as it is stuffed inside the shared lib. Remember your message will be sent to many people.