summaryrefslogtreecommitdiffstats
path: root/install-win32/maketap
blob: 728bb854f2ee09fdef5cbbb94584c7613f9842b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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 WLH"
fi

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

    for mode in "w2k f" "$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

title openvpn &>/dev/null