franta-hg@57: all: libdemo.so franta-hg@57: franta-hg@57: libdemo.so: demo.cpp franta-hg@57: g++ -g -shared -fPIC demo.cpp -o libdemo.so franta-hg@57: franta-hg@57: clean: franta-hg@57: rm -f libdemo.so franta-hg@57: franta-hg@57: run: libdemo.so franta-hg@57: echo "\ franta-hg@57: SELECT 'load_extension', load_extension('./libdemo.so'); \ franta-hg@57: SELECT 'get_pid', get_pid(); \ franta-hg@57: SELECT 'value_count', value_count(), value_count('a'), value_count('a', 'b'), value_count(1,2,3); \ franta-hg@57: SELECT 'multiply', multiply(2, 4); \ franta-hg@57: " | sqlite3 franta-hg@57: franta-hg@57: info: libdemo.so franta-hg@57: nm libdemo.so franta-hg@57: ldd libdemo.so franta-hg@57: file libdemo.so