summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJon Oberheide <jon@oberheide.org>2011-11-01 13:16:36 -0400
committerJon Oberheide <jon@oberheide.org>2011-11-01 13:16:36 -0400
commitc25ef04f318142fc5f0f37035b1d1a954aebe29f (patch)
treefa0578f1b29aa857dfda7b90f1df23c9d12dcece /Makefile
parentd0bee24da4f193b0b570055e363147f50ba84a16 (diff)
downloadopenvpn-duo-plugin-c25ef04f318142fc5f0f37035b1d1a954aebe29f.tar.gz
openvpn-duo-plugin-c25ef04f318142fc5f0f37035b1d1a954aebe29f.zip
add c plugin wrapper to allow deferred plugin responses
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c63932f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+
+all: duo_openvpn.so
+
+duo_openvpn.o: duo_openvpn.c
+ gcc -fPIC -c duo_openvpn.c
+
+duo_openvpn.so: duo_openvpn.o
+ gcc -fPIC -shared -Wl,-soname,duo_openvpn.so -o duo_openvpn.so duo_openvpn.o -lc
+
+install: duo_openvpn.so
+ mkdir -p /opt/duo
+ cp duo_openvpn.so /opt/duo
+ cp duo_openvpn.py /opt/duo
+ chmod 755 /opt/duo/duo_openvpn.so
+ chmod 755 /opt/duo/duo_openvpn.py
+
+uninstall:
+ rm -rf /opt/duo
+
+clean:
+ rm -f *.so *.o