csmgsarma -6 Newbie Poster

Hi all,

My directory setup is follows.

* My project folder is dev/.
* All source files are in src/ with respective names, i.e. buzzer.c in buzzer/, led.c in led/ , lcd.c in lcd/ ...

* All headers are in inc/.

* All compiled objects are in obj/.
* The startup files are in startup/.

I am trying to make a makefile which can identify changes in any dependency, i.e. dependencies in some other directory and update my target file.

A sample of my directory setup is here:
http://rapidshare.com/files/376788297/dev.zip
The makefile I wrote is here:
http://pastebin.com/nMiQDc42

I am not able to add the search path for the source files not in pwd. So my make creates objects for files in PWD and ends.

Any suggestions would be greatly appreciated.

cheers,
Sarma