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




                                                  

                             
 




                                



                             
 
                                           



                                                                                                                                       




                                
#!/bin/sh

# Build the x86 and x64 versions of the TAP driver
# Requires the Windows DDK

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

amdtarget=""
if [ -z "$TAP_BIN_AMD64" ]; then
    amdtarget="fre AMD64 WNET"
fi

if [ -z "$DRVBINSRC" ] ; then
    cd tap-win32
    t=`pwd`
    cd ..

    for mode in "fre WNET" "$amdtarget"; do
	echo '**********' build TAP $mode
	cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
    done
fi

if [ -n "$TAP_BIN_AMD64" ]; then
    mkdir -p $t/amd64
    cp "$TAP_BIN_AMD64" $t/amd64
fi