diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2012-02-29 22:11:44 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-03-22 22:06:52 +0100 |
commit | 5c2922c4593b7eedc3f9c93958285d67afeb0d37 (patch) | |
tree | 60427c07b9697374627b2f52cb4328383ead17b1 /plugins/auth-pam/Makefile | |
parent | ce3862789e5443758441c905569703577e67525a (diff) | |
download | openvpn-5c2922c4593b7eedc3f9c93958285d67afeb0d37.tar.gz openvpn-5c2922c4593b7eedc3f9c93958285d67afeb0d37.tar.xz openvpn-5c2922c4593b7eedc3f9c93958285d67afeb0d37.zip |
build: rename plugin directory to plugins
This to avoid conflit with plugin.c rules
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
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..e69fe3f --- /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=0 + +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 |