ref: 95e6f8be0c1c450fc3800b6dd57e7d63212ea42c
parent: 6666cce6159b438418bb744daabe8f450f756938
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue May 25 02:11:54 EDT 2021
mkfile: use $O in #pragma lib
--- a/mkfile
+++ b/mkfile
@@ -21,13 +21,12 @@
echo '#ifndef _soundpipe_h_'
echo '#define _soundpipe_h_'
echo
- echo '#pragma lib' "^$PWD^/modules/libspmodules.a^$O^"
- echo '#pragma lib' "^$PWD^/lib/dr_wav/libdr_wav.a^$O^"
- echo '#pragma lib' "^$PWD^/lib/inih/libinih.a^$O^"
- echo '#pragma lib' "^$PWD^/lib/kissfft/libkissfft.a^$O^"
- echo '#pragma lib' "^$PWD^/lib/openlpc/libopenlpc.a^$O^"
- echo '#pragma lib' "^$PWD^/lib/spa/libspa.a^$O^"
- echo '#pragma lib' "^$PWD^/tangled/libtangled.a^$O^"
+ for(d in \
+ modules/libspmodules \
+ lib/dr_wav/libdr_wav lib/inih/libinih lib/kissfft/libkissfft \
+ lib/openlpc/libopenlpc lib/spa/libspa tangled/libtangled){
+ echo '#pragma lib' "^$PWD^/^$d^'.a$O"'
+ }
echo
for(f in $HFILES){
echo '#include' "^`{basename $f}^"