use LIBDPLIBS+= not =.
don't set LIBDPLIBS in libpam/modules/Makefile - it is not necessaryand it interferes with the compat lib build. don't use LIB_ROOT_DIR.
Add an S/Key PAM module.