Compiler output folder?

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

How can I get the compiler to put its output files in a different folder from the one where the source files are? I use make but I guess I could use a "studio" if that makes it easier.

I now get the .o, .d, .lst, .hex, etc. files in the same folder as my .c and .h files. I don't see any gcc option for specifying the output folder.

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

Using the makefile template provided in the 20060421 edition of WinAVR, the .o and .lst files are created in a "./obj" folder. The .d files are created in a "./.dep". Presumably that is also present in the 2007 release of WinAVR if that's what you're using.

I suppose you could use that template as a starting point to move the .elf and .hex files over there too.

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

Thanks. The makefile I was using was old as the hills. The new makefile did the trick.

I see the .d files are now .o.d files, but it works. Now I'm left to wonder why the dep folder is hidden.