Shared Library with metis-5.0.pre

I want to use metis into a code using shared librairies, but I can't figure out how to make easily a shared library from metis-5.0.pre.
I tried to change the libname into .so, add LDFLAGS=-shared and CFLAGS =-fPIC but it doesn't work (doesn't even compile). But I'm sure
there is an easy to make a shared library out of metis. It's a pitty because
this new version of metis looks great !

Does anyone have an idea to help me ?
Thanks a lot !