aboutsummaryrefslogtreecommitdiff
path: root/install-win32/makeopenvpn
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-02-01 19:44:53 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-02-01 19:44:53 +0000
commitba865c55a61b4dd3bcf3e2c6bb2632e38d07cd2a (patch)
treeed84e82bd50f62fc8b431036d4aa2d0eff66abbe /install-win32/makeopenvpn
parentChanges to Windows build system to make it easier to do (diff)
downloadopenvpn-ba865c55a61b4dd3bcf3e2c6bb2632e38d07cd2a.tar.xz
Changes to Windows build system: added GENOUT_PREBUILT mode
to allow building an OpenVPN installer with a reduced set of prerequisites. See comments in domake-win for more info. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2711 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'install-win32/makeopenvpn')
-rw-r--r--install-win32/makeopenvpn18
1 files changed, 11 insertions, 7 deletions
diff --git a/install-win32/makeopenvpn b/install-win32/makeopenvpn
index 31df604..be43fdc 100644
--- a/install-win32/makeopenvpn
+++ b/install-win32/makeopenvpn
@@ -3,11 +3,15 @@
# get version.nsi definitions
. autodefs/defs.sh
-# build OpenVPN binary
-[ "$CLEAN" = "yes" ] && make -f makefile.w32 clean
-make -f makefile.w32 -j $MAKE_JOBS
+if [ -d "$OPENSSL_DIR" ] && [ -d "$LZO_DIR" ] && [ -d "$PKCS11_HELPER_DIR" ]; then
+ # build OpenVPN binary
+ [ "$CLEAN" = "yes" ] && make -f makefile.w32 clean
+ make -f makefile.w32 -j $MAKE_JOBS
-# copy OpenVPN executable to GENOUT/bin
-mkdir -p $GENOUT/bin &>/dev/null
-cp $PRODUCT_UNIX_NAME.exe $GENOUT/bin
-strip $GENOUT/bin/$PRODUCT_UNIX_NAME.exe
+ # copy OpenVPN executable to GENOUT/bin
+ mkdir -p $GENOUT/bin &>/dev/null
+ cp $PRODUCT_UNIX_NAME.exe $GENOUT/bin
+ strip $GENOUT/bin/$PRODUCT_UNIX_NAME.exe
+else
+ echo DID NOT BUILD openvpn.exe because one or more of OPENSSL_DIR, LZO_DIR, or PKCS11_HELPER_DIR directories were missing
+fi