aboutsummaryrefslogblamecommitdiff
path: root/install-win32/makeopenvpn
blob: e3aef48aecdf84de7b9ffa5e361c6f89a8804dce (plain) (tree)
1
2
3
4
5
6
7
8
9


                             
                  
 
                                                                                                               


                                                      
 


                                           


                                                
    
                                                                                                                                  
  
#!/bin/sh

# get version.nsi definitions
. autodefs/defs.sh

if gcc --version &>/dev/null && [ -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
    if [ -z "$NO_STRIP" ]; then
	strip $GENOUT/bin/$PRODUCT_UNIX_NAME.exe
    fi
else
    echo DID NOT BUILD openvpn.exe because one or more of gcc, OPENSSL_DIR, LZO_DIR, or PKCS11_HELPER_DIR directories were missing
fi