#! /bin/sh

make distclean

CFLAGS='-Wall -Werror -W' ./configure

# Replace version with the version
. build/makearch.info
sed "s/@@VERS@@/${VERS}/g" Makefile > Makefile.new && cat Makefile.new > Makefile
rm -f Makefile.new

make
strip -x tclpkcs11.so
