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:
RapidShare: 1-CLICK Web hosting - Easy Filehosting

The makefile I wrote is here:

Make | HEX = main.hex TAR=debug - CSMG Sarma - nMiQDc42 - Pastebin.com

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