2022-04-20 12:37:32 +02:00
|
|
|
#!/bin/bash
|
2022-03-20 23:46:24 +01:00
|
|
|
|
2022-04-20 12:37:32 +02:00
|
|
|
module_list="libnode.c datastruct.c"
|
|
|
|
main_list="drummer.c lv2_plugin.c"
|
|
|
|
|
|
|
|
for module in ${module_list} ${main_list}
|
|
|
|
do
|
|
|
|
cmd="gcc -g -c -I. -I/usr/include/libxml2 -o ${module//.c/.o} -fPIC ${module}"
|
|
|
|
|
|
|
|
echo ${cmd}
|
|
|
|
eval ${cmd}
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-27 23:13:33 +02:00
|
|
|
cmd="gcc -g -o drummer ${module_list//.c/.o} drummer.o -fPIC -ldl -lpthread -lxml2 -lz -llzma -lm -lsndfile -lsamplerate"
|
2022-03-20 23:46:24 +01:00
|
|
|
|
2022-04-20 12:37:32 +02:00
|
|
|
echo ${cmd}
|
|
|
|
eval ${cmd}
|
|
|
|
|
|
|
|
cmd="gcc -g -o drummer.so ${module_list//.c/.o} lv2_plugin.o -shared -fPIC -ldl -lxml2 -lz -llzma -lm -lsndfile -lsamplerate"
|
|
|
|
|
|
|
|
echo ${cmd}
|
|
|
|
eval ${cmd}
|
|
|
|
|
|
|
|
cmd="./drummer-mkttl"
|
|
|
|
|
|
|
|
#echo ${cmd}
|
|
|
|
#eval ${cmd}
|
|
|
|
#gcc -g -I . -L . -shared -o drummer.so -fPIC drummer.c
|
2022-03-20 23:46:24 +01:00
|
|
|
#gcc -g -I. -I/usr/include/libxml2 -o xpath -fPIC -ldl -lxml2 -lz -llzma -lm xpath.c
|