Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show more details about libs #30

Open
mehrdad2000 opened this issue Feb 21, 2021 · 2 comments
Open

show more details about libs #30

mehrdad2000 opened this issue Feb 21, 2021 · 2 comments

Comments

@mehrdad2000
Copy link

mehrdad2000 commented Feb 21, 2021

Hi
I try to use makefile2graph but have some issues:
1-instead of CMAKE I create script that manually go through path and run "make files" here is the script: (when each module make refer to some other till project make completely):

for MODULE in \
src/module1 \
src/module2 \
src/module3 \
src/app/module4 \
...
src/app4/moduleN \
do
cd $MODULE; echo
make clean;make
done 

I run below command to generate graph in each module path:
/usr/bin/make -Bnd | ${GDIR}/make2graph | dot -Tpng -o /tmp/test.png

but how can I run this on root of project? (there is no global make file that exist on top of project, script make them one by one)

2-how can I see each module use which lib, now when I run it on each module path it only show that module refer to lib and won't show use which lib!
image


Any idea?
Thanks,

@lindenb
Copy link
Owner

lindenb commented Feb 21, 2021

1-instead of CMAKE

why do you speak of cmake ?

but how can I run this on root of project?

if I understand what you meant this tool doesn't work with recursive makefile

@mehrdad2000
Copy link
Author

1-I don’t use CMAKE just clarify.
2-i have make file in each path like below, how can i get top level graph?

src/module1
src/module2
src/module3
src/app/module4
...
src/app4/moduleN \

3-the main question is how can get graph that show which lib call?

thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants