#! /usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1
mkdir ../win || exit 1
./makefile-vc ../win
cd ../win || exit 1

sed 's|@srcdir@|..|g;s|@GEN_DH_PARAMS_ARGS@|fallback|g' < ../Makefile.in > Makefile
make tls.tcl.h dh_params.h
rm -f Makefile
