| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# list-ext-objects $(top_builddir) <extra-dir> ... |
| 4 |
# |
| 5 |
# Gather list of object files in ext/ to be included in libgauche-static.a |
| 6 |
# |
| 7 |
# Directories under ext/ are scanned (via `make list-objects`) unconditionally. |
| 8 |
# Directories given in <extra-dir> are also scanned; they must be relative |
| 9 |
# to $top_builddir. The makefile in the directory must recognize |
| 10 |
# list-objects target. Currently it may be used to scan internal mbedtls |
| 11 |
# library. |
| 12 |
|
| 13 |
top_builddir=$1 |
| 14 |
|
| 15 |
(cd $top_builddir/ext && ${MAKE:=make} list-objects | grep '^/// ' | sed "sx/// xx") |
| 16 |
|
| 17 |
shift |
| 18 |
while [ $# -gt 0 ]; do |
| 19 |
(cd $top_builddir/$1 && ${MAKE:=make} list-objects | grep '^/// ' | sed "sx/// xx") |
| 20 |
shift |
| 21 |
done |