mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
ce8271f5d4
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>
19 lines
575 B
Plaintext
Executable File
19 lines
575 B
Plaintext
Executable File
#
|
|
# Build an OpenVPN plugin module on Windows/MinGW.
|
|
# 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
|
|
INCLUDE="-I../../../include"
|
|
|
|
CC_FLAGS="-O2 -Wall"
|
|
|
|
gcc -DBUILD_DLL $CC_FLAGS $INCLUDE -c $1.c
|
|
gcc --disable-stdcall-fixup -mdll -DBUILD_DLL -o junk.tmp -Wl,--base-file,base.tmp $1.o
|
|
rm junk.tmp
|
|
dlltool --dllname $1.dll --base-file base.tmp --output-exp temp.exp --input-def $1.def
|
|
rm base.tmp
|
|
gcc --enable-stdcall-fixup -mdll -DBUILD_DLL -o $1.dll $1.o -Wl,temp.exp
|
|
rm temp.exp
|