diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-13 04:08:20 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-13 04:08:20 +0000 |
commit | cecc5e657bb38c03f80747eab40073bc6ded9631 (patch) | |
tree | 01ade4571a8db916a2966cee89f4f09e1f8403b3 /plugins/auth-pam/Makefile | |
parent | Makefile.am needs to do a rm -rf on .svn directories (diff) | |
download | openvpn-cecc5e657bb38c03f80747eab40073bc6ded9631.tar.xz |
Renamed plugin to plugins to work around
strange automake issue.
2.1_beta2
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@603 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'plugins/auth-pam/Makefile')
-rwxr-xr-x | plugins/auth-pam/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/auth-pam/Makefile b/plugins/auth-pam/Makefile new file mode 100755 index 0000000..3e7c6ce --- /dev/null +++ b/plugins/auth-pam/Makefile @@ -0,0 +1,30 @@ +# +# Build the OpenVPN auth-pam plugin module. +# + +# If PAM modules are not linked against libpam.so, set DLOPEN_PAM to 1. This +# must be done on SUSE 9.1, at least. +DLOPEN_PAM=1 + +ifeq ($(DLOPEN_PAM),1) + LIBPAM=-ldl +else + LIBPAM=-lpam +endif + +# This directory is where we will look for openvpn-plugin.h +INCLUDE=-I../.. + +CC_FLAGS=-O2 -Wall -DDLOPEN_PAM=$(DLOPEN_PAM) + +openvpn-auth-pam.so : auth-pam.o pamdl.o + gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.o pamdl.o -lc $(LIBPAM) + +auth-pam.o : auth-pam.c pamdl.h + gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} auth-pam.c + +pamdl.o : pamdl.c pamdl.h + gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} pamdl.c + +clean : + rm -f *.o *.so |