summaryrefslogtreecommitdiff
path: root/tools/gen-deps.sh
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-16 02:48:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-16 02:48:24 +0000
commite49bbf96619d5ae33bbc651ba15b4e68f283ee80 (patch)
tree5c3bae567f7e00cab1040219341133875de1b7ba /tools/gen-deps.sh
parent70240e92a10d87b8d2ad14812190f123a30652f0 (diff)
downloads6-networking-e49bbf96619d5ae33bbc651ba15b4e68f283ee80.tar.xz
Update gen-deps.sh and deps.mak
Diffstat (limited to 'tools/gen-deps.sh')
-rwxr-xr-xtools/gen-deps.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gen-deps.sh b/tools/gen-deps.sh
index af31259..66f6d3e 100755
--- a/tools/gen-deps.sh
+++ b/tools/gen-deps.sh
@@ -68,12 +68,18 @@ for dir in $(ls -1 src | grep -v ^include) ; do
for file in $(ls -1 src/$dir/deps-exe) ; do
deps=
+ libs=
while read dep ; do
if echo $dep | grep -q -- \\.o$ ; then
dep="src/$dir/$dep"
fi
- deps="$deps $dep"
+ if echo $dep | grep -q ^\\\$ ; then
+ libs="$libs $dep"
+ else
+ deps="$deps $dep"
+ fi
done < src/$dir/deps-exe/$file
+ echo "$file: private EXTRA_LIBS :=$libs"
echo "$file: src/$dir/$file.o$deps"
done
done