Merged changes from others' own tools/graph.sh
This commit is contained in:
parent
680eee5973
commit
ccefa6e8b1
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2010-2014 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2010-2015 Pierre Pronchery <khorben@defora.org>
|
||||||
#This file is part of DeforaOS Unix utils
|
#This file is part of DeforaOS Unix utils
|
||||||
#This program is free software: you can redistribute it and/or modify
|
#This program is free software: you can redistribute it and/or modify
|
||||||
#it under the terms of the GNU General Public License as published by
|
#it under the terms of the GNU General Public License as published by
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
CC="../../../../../Devel/src/C99/C99-git/src/c99"
|
CC="../../../../../Devel/src/C99/C99-git/src/c99 -M graph"
|
||||||
DOT="dot -Tpng:cairo:gd"
|
DOT="dot -Tpng:cairo:gd"
|
||||||
MAKE="make -k"
|
MAKE="make -k"
|
||||||
RM="rm -f"
|
RM="rm -f"
|
||||||
|
@ -26,9 +26,13 @@ VIEW="view"
|
||||||
|
|
||||||
#functions
|
#functions
|
||||||
#main
|
#main
|
||||||
$RM ../src/*.o.png
|
$RM -- ../src/*.o.png
|
||||||
(cd '../src' && $MAKE CC="$CC" CPPFLAGS="-M graph -D__ELF__ -D__i386__" CFLAGS= distclean all)
|
#FIXME force the i386 architecture for the moment
|
||||||
|
#arch=$(uname -m)
|
||||||
|
arch="i386"
|
||||||
|
os=$(uname -s)
|
||||||
|
(cd "../src" && $MAKE CC="$CC" CPPFLAGS="-D __${os}__=1 -D __${arch}__=1 -D __ELF__=1" CFLAGS= distclean all)
|
||||||
for i in ../src/*.o; do
|
for i in ../src/*.o; do
|
||||||
$DOT -o "$i.png" "$i"
|
$DOT -o "$i.png" "$i"
|
||||||
done
|
done
|
||||||
$VIEW ../src/*.o.png
|
$VIEW -- ../src/*.o.png
|
||||||
|
|
Loading…
Reference in New Issue
Block a user