1 of 1 people found this helpful
1. The three make files objects.mk, subdir.mk and sources.mk are included in 'makefile'.
You can see the following statements in the 'make' file:
During build process, objects.mk determines what libraries are to be included and subdir.mk; sources.mk determines the input and output files.
a. The libraries to be used in a build can be changed in the project settings in the following location (using eclipse IDE):
Project Properties -> C/C++ General -> Paths and Symbols -> Libraries
b. New .c/.h files can directly be pasted into the project source files folder or by doing File->New
When either of these/both are performed the content of the objects.mk and sourecs.mk automatically gets updated when you build the project.
That is the reason these files are regenerated for each build.
Thanks for the details, I still have 3 questions:
1. Could you tell me more about relationship between makefiles. I can see three makefiles in a project, as below screenshot, one in Debug folder, one in top level, the other one not shown is in Release folder. What's the relationship between these three makefiles.
2. Tried updating makefiles in Debug and Release folders with more objects to delete for job clean. But if I run 'Clean Project' and 'Build Project', makefile inside Release folder will be reset to original content. Is there a way to prevent this.
3. For top level makefile FX3FWROOT is pointing to SDK install path?
Yes you are right. When 'Generate Make files automatically' is unchecked, the make files in debug/release folder will not update automatically.
But, when you add more source files to your project which is in your Workspace, then those files will not be included while build process.
You would have to manually modify the make file accordingly.
Thanks for confirming the behaviour.
I definitely want the auto update project feature and also want to delete*.img. I guess maybe there is a makefile "template" saved somewhere. How can we modify the default makefile behaviour?
Can you use the following way:
In the 'Make Target' folder of eclipse as shown below:
You can see your project. Right click on the 'Debug' folder of your project and a window as below appears:
Then, the following can be changed in the window which appears:
Then under the debug folder, your new make target appears as below:
So, after you perform usual 'clean project', you can run this make target to delete *img file.
In this way, you can modify your custom_clean as required.