mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-02-03 20:39:40 -05:00
As disucssed[1], keep plugins in repository. 1, Proper automake/libtool build. 2. Move example plugins to samples/sample-plugins. 3. Plugins are installed at LIBDIR/openvpn/plugins. [1] http://comments.gmane.org/gmane.network.openvpn.devel/6436 Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1337035323-27465-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6591 Signed-off-by: David Sommerseth <davids@redhat.com>
15 lines
395 B
Bash
Executable file
15 lines
395 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#
|
|
# Build an OpenVPN plugin module on *nix. The argument should
|
|
# be the base name of the C source file (without the .c).
|
|
#
|
|
|
|
# This directory is where we will look for openvpn-plugin.h
|
|
CPPFLAGS="${CPPFLAGS:--I../../..}"
|
|
|
|
CC="${CC:-gcc}"
|
|
CFLAGS="${CFLAGS:--O2 -Wall -g}"
|
|
|
|
$CC $CPPFLAGS $CFLAGS -fPIC -c $1.c && \
|
|
$CC $CFLAGS -fPIC -shared $LDFLAGS -Wl,-soname,$1.so -o $1.so $1.o -lc
|