Has anyone use Berkeley DB in Embedded system?

I want to use Berkeley DB in my MIPS patform, but i don’t kown how to start.
I just don’t how to change the Makefile inorder to eliminate the unnecessary part of BDB and how to corss compile it.
Can anyone here help me?