# This requires the DLL tools to be installed (I used v2.8).
# Shared image and stubs are placed in sharedlib/ directory. Do make install
# to install them.
export JUMP_DIR=`pwd`/jump
export JUMP_LIB=libgrx
(cd src; make -f Makefile.shared ; cd ../)
cp lib/libgrx.a ./
mkstubs -f -a 0x63D00000 -l libgrx -v 1.0.1 -j 0x2000 -g 4096 -- libgrx
mkimage -f -a 0x63D00000 -l libgrx -v 1.0.1 -j 0x2000 -g 4096 -- libgrx.a -lgcc -lc -lm -lvga
verify-shlib -l libgrx.so.1.0.1 libgrx.sa
strip libgrx.so.1.0.1
mv -f libgrx.so.1.0.1 libs/libgrx.so.1.0.1
mv -f libgrx.sa libs/libgrx.sa
rm -f libgrx.a lib/libgrx.a verify.out


