Currently I have 15 module folders, each module had C code, also Makefile in each folder, also build script to create shared lib for each module. Each of this Makefile had CFLAGS defined inside, basically -g option enabled in all Makefile, there is a separate line ion each Makefile for CFLAGS, but at the root, I have single build_all script which calls each build script to compile each module and create each shared lib. can I pass this CFLAGS info from top, to bottom to all the scripts, this way I can have define CFLAGS at one placem this way I can control -g option, any idea how can I do that?.
each Makefile had line like this, I want to define this CFLAGS at once instead in each Makefile and propage this from top when I call "build_all" to create all.
CFLAGS= -Wall -g -O2
each Makefile had line like this, I want to define this CFLAGS at once instead in each Makefile and propage this from top when I call "build_all" to create all.
CFLAGS= -Wall -g -O2
Comment