Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 333 Bytes
rm -rf lib/libospi.so lib/libospi.so.1.0.1 build
mkdir build logs
gcc -fPIC -g -c -Wall src/ospijs.c -o build/ospijs.o
gcc -shared -Wl,-soname,libospi.so -o libospi.so.1.0.1 build/ospijs.o -lc
mv libospi.so.1.0.1 lib
cd lib
ln -s libospi.so.1.0.1 libospi.so
cd ../
gcc -L./lib -Wall examples/ospi.c -o build/ospi -lospi -lwiringPi