aboutsummaryrefslogtreecommitdiff
path: root/install-win32/maketapinstall
blob: 72b81b7819ca88fa095570cc7f8054b950a44cb6 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

# Build the x86 and x64 versions of the tapinstall tool
# Requires the Windows DDK.
# TISRC should be set to directory containing
# tapinstall source code.

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

if ! [ -d "$TISRC" ] ; then
    echo "$TISRC" NOT INSTALLED
    exit 1
fi

amdtarget=""
if [ -z "$TI_BIN_AMD64" ]; then
    amdtarget="fre AMD64 WLH"
fi

if [ -z "$DRVBINSRC" ] ; then
    rm -rf tapinstall
    cp -a "$TISRC" tapinstall

    cd tapinstall
    t=`pwd`
    cd ..

    for mode in "w2k f" "$amdtarget"; do
	if [ -n "$mode" ]; then
	    echo '**********' build TAPINSTALL $mode
	    cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd `perl install-win32/dosname.pl $t` && build -cef"
	fi
    done
fi

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

title openvpn &>/dev/null