I have a folder called UnitTest. I have several .c files in it. All files contain function 'main'.

Using makefile, I want to compile all .c files of that folder together.
But these files have dependency on other C files which are in different folder.

How can I write make file for this?

eg.
Common\\*.c - generate object file
App\\*.c - generate object file. - refers to *.o files of Common directory
UnitTest\*.c - these files should be compiled as executables. Refer \*.o from directory App and Common.

Update:
Header files are in seperate directory called \Include

I need a single makefile for this. Please help.