I am a newbie to the use of make files.
I have added a new module in project using make.inc
The structure of project is like:-
/Project/build.sh
/Project/make.inc
/Project/Module1/Makefile
/Project/Module2/Makefile
/Project/Module3/Makefile
/Project/Module4/Makefile
/Project/my_module/Makefile
Initially project the has 4 other modules each of which are compilable using make.inc
The module I have added till now is getting compiled with its own Makefile. Now I have included the make.inc path in this make file to reuse the CFLAGS already defined in make.inc as many flags are same for all modules. Now I am able to compile the whole project using build.sh using make.inc .
But when I compile my module alone with Makefile , its giving error as the the CFLAGS are defined in the make.inc and the Variable carrying the value of path of the module is also defined there.
How can I get that path when I run this make file only
I want to know How can make it compilable using both make file and make.inc
TIA