hi all,
i want to get the dependancy graph from the make file or make rules.

please if anyone can, help me to do this

If you are using the GNU tools, you can say: gmake -n -p to print the internal database used to compile without actually compiling anything.

Also, you can get the GNU compiler to give you dependency information about a specific file: gcc -MM foo.c prints all the non-system files that "foo.c" depends on. To get the system files also, use one M.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.