bulebule icon indicating copy to clipboard operation
bulebule copied to clipboard

Separate source and dependency files.

Open cua-cua opened this issue 8 years ago • 5 comments

Take out dependencies and objects of compilation from src folder to a new one. Create a new folder obj and modify makefile.

cua-cua avatar Nov 30 '17 19:11 cua-cua

What structure do you propose?

Peque avatar Nov 30 '17 20:11 Peque

At least -> include: with headers (.h) obj: with files from compilation ( .o and .d )

cua-cua avatar Nov 30 '17 20:11 cua-cua

I think it is more common to name the obj directory as build?

Peque avatar Nov 30 '17 21:11 Peque

With your proposal of build folder I realized ... what about .map and .elf files? So, ok for me with build for .o and .d files and .map, .elf and makefile ones outside these folders? (To compile and flash from the same directory?)

cua-cua avatar Nov 30 '17 21:11 cua-cua

I think they should all go in build, modifying the Makefile accordingly (don't know how :joy:).

Maybe we could create a top-level Makefile? To handle all tasks. In example:

  • make: by default compiles the C sources.
  • make flash: flashes the robot.
  • make sim: compiles and runs client simulator.
  • make docs: builds documentation and maybe even builds a local Python virtual environment with all dependencies if not already built. pipenv? :smile:
  • make ...: other things maybe?

Peque avatar Nov 30 '17 22:11 Peque