diff -r 813b44590d07 -r 1b21c78d8706 c++/sqlite-demo-modul/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c++/sqlite-demo-modul/Makefile Fri May 08 00:02:05 2020 +0200 @@ -0,0 +1,20 @@ +all: libdemo.so + +libdemo.so: demo.cpp + g++ -g -shared -fPIC demo.cpp -o libdemo.so + +clean: + rm -f libdemo.so + +run: libdemo.so + echo "\ + SELECT 'load_extension', load_extension('./libdemo.so'); \ + SELECT 'get_pid', get_pid(); \ + SELECT 'value_count', value_count(), value_count('a'), value_count('a', 'b'), value_count(1,2,3); \ + SELECT 'multiply', multiply(2, 4); \ + " | sqlite3 + +info: libdemo.so + nm libdemo.so + ldd libdemo.so + file libdemo.so