King, I have made baba ghanoush and eggplant is the main ingredient.
To do that, you roast the eggplant first. It's pretty simple. Poke some holes in the eggplant with a fork. Then put it on the top rack in the oven, with a pan below to catch what falls from it and broil it. I'll roast it for 45 minutes to an hour usually. The skin will be a little blackened and the eggplant will shrink. When you take it out, cut off the ends and peel the skin away. The skin should peel away easily if the eggplant is cooked enough. Then just dice the inside of the eggplant into cubes. In the case of baba ghanoush, you add other things (lemon juice, garlic, tahini, olive oil), so I have never just tried this with eggplant. ... but for what you want, all you have to do is take the cubes of eggplant you cut and put them in a blender or food processor and depending on the consistency you want give it anywhere from a whirl or two to make it sort of "mashed" or give it a good blending to make it smooth.