Static and shared C libs: allow writing "depends[x]=$(ls src/*.h)".
This commit is contained in:
parent
b3c1b42704
commit
3177b525a0
@ -5,7 +5,8 @@ function sharedlib.build {
|
||||
write -n " ${i%.*}.o"
|
||||
done
|
||||
for i in ${depends[@]}; do
|
||||
write -n " ${i}"
|
||||
v="$(echo ${i} | tr '\n' ' ' )"
|
||||
write -n " ${v}"
|
||||
done
|
||||
write " ${depends[$target]} $(dirdep $target)"
|
||||
write "\t@echo '$(LD ${target})'"
|
||||
|
@ -5,7 +5,8 @@ function staticlib.build {
|
||||
write -n " ${i%.c}.o"
|
||||
done
|
||||
for i in ${depends[@]}; do
|
||||
write -n " ${i}"
|
||||
v="$(echo ${i} | tr '\n' ' ' )"
|
||||
write -n " ${v}"
|
||||
done
|
||||
write " ${depends[$target]} $(dirdep $target)"
|
||||
write "\t@echo '$(LD ${target})'"
|
||||
|
Loading…
Reference in New Issue
Block a user