To Compile source code: 1. install libpam-dev package in linux: ex for ubuntu: sudo apt-get install -y libpam-dev 2. edit Pam.c and comment //#include "net_sf_jpam_Pam.h" 3. Define JAVA_HOME using export JAVA_HOME=path of your jdk 4. go to src where make file is defined. 5. make <target> use your target, you can view makefile to see all targets.</target>
I am compiling the libjpam.so from linux machine: [root@mymachine c]#make libjpam.x86 gcc -fPIC -Wall -g -c -I/include -I/include/linux Pam.c Pam.c:73:10: fatal error: net_sf_jpam_Pam.h: No such file or directory #include "net_sf_jpam_Pam.h" ^~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [makefile:52: libjpam.x86] Error 1