Pass parameter from a child make to a parent

Hello,

I have the following problem:
I have makefileproj and makefilemod in a build process for a complex project - from makefileproj I call the makefilemod.
In makefilemod I generate a list containing objects eg,: "../../../25_Build/Results/Objects/FBL/Fls.o ../../../25_Build/Results/Objects/FBL/Fls_Ac.o ../../../
25_Build/Results/Objects/FBL/Fls_PBcfg.o"

In makefileproj I need the list of object to tell the linker what to link, but I can't find a solution to access this object list.
Please help me!!!
Thanks for any idea you might give me...

Are you sourcing the subshell makefilemod?

If variable exporting is not working the way it does on your command line: try setting the SHELL variable to the shell you start out using by default. Some shells use

var=something; export var

instead of

export var=something

Variables exported in makefileproj are readable in makefilemod but not the other way around which is exactly what I need. :frowning:
Another think that I tried was to print the object list (from mkmod) to a file obj.mk but I don't know how to return it's content in a variable in mkproj

p.s. thanks for helping

I guess I need to start from the beginning

Are you defining shell variables in the subscript, or is the subscript strictly a makefile?

What is the exact line in your file that calls the subscript?

This is how I call the Makefile_Module.mk from Makefile_Project.mk
........
/usr/bin/make obj -f Makefile_Modules.mk
..........
so yes, the subscript is strictly a Makefile