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"
|
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})'"
|
||||||
|
@ -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})'"
|
||||||
|
Loading…
Reference in New Issue
Block a user