Slice the eggplant and tofu into bite-sized pieces.
Add olive oil to a pan and grill the eggplant until golden brown.
Remove excess moisture from the tofu with a paper towel, then mash it.
In a bowl, combine the eggplant, tofu, tomato sauce, salt, and pepper and mix well.
Transfer the mixture to an oven-safe dish and top with cheese.
Bake in a preheated oven at 180°C (356°F) for 15 minutes.