Static and shared C libs: allow writing "depends[x]=$(ls src/*.h)".

This commit is contained in:
Philippe PITTOLI 2020-04-27 02:50:43 +02:00
parent b3c1b42704
commit 3177b525a0
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ function sharedlib.build {
write -n " ${i%.*}.o" write -n " ${i%.*}.o"
done done
for i in ${depends[@]}; do for i in ${depends[@]}; do
write -n " ${i}" v="$(echo ${i} | tr '\n' ' ' )"
write -n " ${v}"
done done
write " ${depends[$target]} $(dirdep $target)" write " ${depends[$target]} $(dirdep $target)"
write "\t@echo '$(LD ${target})'" write "\t@echo '$(LD ${target})'"

View File

@ -5,7 +5,8 @@ function staticlib.build {
write -n " ${i%.c}.o" write -n " ${i%.c}.o"
done done
for i in ${depends[@]}; do for i in ${depends[@]}; do
write -n " ${i}" v="$(echo ${i} | tr '\n' ' ' )"
write -n " ${v}"
done done
write " ${depends[$target]} $(dirdep $target)" write " ${depends[$target]} $(dirdep $target)"
write "\t@echo '$(LD ${target})'" write "\t@echo '$(LD ${target})'"