chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
store ENV{key}="value" exported keys in the database
[elogind.git]
/
make_gcov.sh
diff --git
a/make_gcov.sh
b/make_gcov.sh
index 907c1ebd486bc39fdf0614b1a5abbdcd6700a809..e3ceb96d077c88b43a2b78096f7e131b693e0744 100644
(file)
--- a/
make_gcov.sh
+++ b/
make_gcov.sh
@@
-16,19
+16,19
@@
# clean up udev dir
clean_udev () {
# clean up udev dir
clean_udev () {
- find -name "*.da" -exec rm -f "{}" \;
- find -name "*.bb" -exec rm -f "{}" \;
- find -name "*.bbg" -exec rm -f "{}" \;
+ find -name "*.gcno" -exec rm -f "{}" \;
+ find -name "*.gcda" -exec rm -f "{}" \;
find -name "*.gcov" -exec rm -f "{}" \;
find -name "*.gcov" -exec rm -f "{}" \;
+ rm -f udev_gcov.txt
make clean
}
PWD=`pwd`
GCCINCDIR=`gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"`
make clean
}
PWD=`pwd`
GCCINCDIR=`gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"`
-LIBSYSFS="-I$PWD/libsysfs"
+LIBSYSFS="-I$PWD/libsysfs
/sysfs -I$PWD/libsysfs
"
WARNINGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
GCC="-I$GCCINCDIR"
WARNINGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
GCC="-I$GCCINCDIR"
-USE_LOG="-DLOG"
+USE_LOG="-D
USE_
LOG"
DEBUG="-D_GNU_SOURCE"
GCOV_FLAGS="-pipe -fprofile-arcs -ftest-coverage"
DEBUG="-D_GNU_SOURCE"
GCOV_FLAGS="-pipe -fprofile-arcs -ftest-coverage"
@@
-50,4
+50,4
@@
done
clean_udev
clean_udev
-make $* CFLAGS="$WARNINGS $GCOV_FLAGS $USE_LOG $DEBUG $GCC $LIBSYSFS"
+make $* CFLAGS="$WARNINGS $GCOV_FLAGS $USE_LOG $DEBUG $GCC $LIBSYSFS"
LDFLAGS="-Wl,-warn-common -fprofile-arcs"