dimanche 29 mars 2015

How to create the makefiles for a c project comprised of several folders with code?


Here is the deal. I have a folder structure with several building blocks of code and I can't figure out how to create the necessary makefiles to compile the project.


I tried to make the following but it didn't work:


I created the project with the wizard in order to let eclipse to create the makefiles automatically and it compiled correctly.


I observed that the makefiles automatically created by eclipse are created in the workspace folder but I want them in my project folders.


What I did as a test was basically to replicate all the .mk files and the main makefile in my folder structure exactly as eclipse did in the workspace and create a new project with the create empty makefile option from the wizard but but it doesn't compile.


I don't know what else should I do or configure to make it work.


Thanks for helping.




Aucun commentaire:

Enregistrer un commentaire