Different directories for sourcefiles ?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want this:
root dir - sourcedir 1 (.c and .h)
- sourcedir 2
- obj dir ( .o and .lst)
makefile and projectfile
It drives me mad but i cannot get it work with a "normal " ( mFile generated ) makefile. If i specify the full path of the sources the linker cannot find the obj.
Must not be so difficult but i give up.
Who knows more?
Dig

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use the Mfile generated file but make the paths RELATIVE and not ABSOLUTE

In fact if you look at the Makefiles that AVR Studio generates you'll see it's doing this to but the intermediate files in a sub-dir called .\default

Cliff