diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-01-19 01:23:34 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-01-19 01:23:34 -0700 |
commit | 082202c409cab376f0f0623635dc19e8468baafc (patch) | |
tree | ec14202aed02a871280421eb554c46465a2e45a8 /build.bat | |
parent | 16b49fa63ad28aab44cde5096a706e6cc7520b1f (diff) | |
download | alpine-082202c409cab376f0f0623635dc19e8468baafc.tar.xz |
* Creating w32 port for compilation of Alpine. This is intended for old
machines that cannot be updated. Long story short: Always use the
command "build wnt" to build Alpine. If that does not work, try
"build w32", which is for machines that are too old and do not have
any way to use modern encryption protocols such as TLSv1.2.
The version of Alpine built in modern machines will be called
alpine.exe, and the binary built with the port w32 will be called
alpine32 in the repository. All other binaries can be downloaded from
the main web site, and they will not have the suffix "32" there.
Diffstat (limited to 'build.bat')
-rwxr-xr-x | build.bat | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -13,6 +13,7 @@ rem ======================================================================== if "%1"=="" goto blank if "%1"=="wnt" goto wnt +if "%1"=="w32" goto w32 if "%1"=="w2k" goto w2k if "%1"=="clean" goto clean echo Unknown build command: %1 %2 %3 %4 @@ -23,11 +24,23 @@ echo Must specify build command! echo usage: BUILD cmd echo where "cmd" is one of either: echo wnt -- Windows +echo w32 -- Windows 32 bits (e.g. XP) echo w2k -- Windows with Win2k Kerb echo clean -- to remove obj, lib, and exe files from source goto fini +:w32 +set CRYPTO_VERSION=41 +set SSL_VERSION=43 +set TLS_VERSION=15 +set BIT=32 +goto wntbuild :wnt +set CRYPTO_VERSION=45 +set SSL_VERSION=47 +set TLS_VERSION=19 +set BIT=64 +:wntbuild echo PC-Alpine for Windows/Winsock (Win32) build sequence set cclntmake=makefile.nt set alpinemake=makefile.wnt @@ -40,8 +53,8 @@ set libresslextralibes="crypt32.lib" goto ldapincludewnt :yeslibresslwnt echo including LIBRESSL functionality -set libresslflags=-I\"%ALPINE_LIBRESSL%\"\include -I\"%ALPINE_LIBRESSL%\"\include\openssl -DENABLE_WINDOWS_LIBRESSL -set libressllibes=\"%ALPINE_LIBRESSL%\"\x86\libcrypto-45.lib \"%ALPINE_LIBRESSL%\"\x86\libssl-47.lib \"%ALPINE_LIBRESSL%\"\x86\libtls-19.lib +set libresslflags=-I\"%ALPINE_LIBRESSL%\"\include\"%BIT%\" -I\"%ALPINE_LIBRESSL%\"\include\"%BIT%\"\openssl -DENABLE_WINDOWS_LIBRESSL +set libressllibes=\"%ALPINE_LIBRESSL%\"\x86\libcrypto-%CRYPTO_VERSION%.lib \"%ALPINE_LIBRESSL%\"\x86\libssl-%SSL_VERSION%.lib \"%ALPINE_LIBRESSL%\"\x86\libtls-%TLS_VERSION%.lib set libresslextralibes= :ldapincludewnt if not defined ALPINE_LDAP set ALPINE_LDAP=%cd%\ldap |