diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 00:48:52 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 00:48:52 +0000 |
commit | 98a90be5dbd92b2f1bd0f01ccf71a5700289e1c0 (patch) | |
tree | fe331f10282aafa294dc68cd15907213d62e577a /tools/gen-deps.sh | |
parent | ec7af73d06068f5517931ac6f510de50f2bbcd5b (diff) | |
download | execline-98a90be5dbd92b2f1bd0f01ccf71a5700289e1c0.tar.xz |
Test new make features
Diffstat (limited to 'tools/gen-deps.sh')
-rwxr-xr-x | tools/gen-deps.sh | 8 |
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 |