forked from davidrg/ckwin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkzinc.bat
79 lines (61 loc) · 1.64 KB
/
mkzinc.bat
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
REM
REM Builds OpenZinc using customised makefiles from kermit\zinc-build
REM
REM TODO: Detect compiler and set zinc_build accordingly, exiting if no suitable makefiles exist
REM In ui_env.hpp, uncomment #define ZIL_WIND0W_CTL3D
REM -> read up about ctl3dv2.dll - who, what, when, where, why (msdn)
REM
if "%ZINCBUILD%" NEQ "" goto :build
echo.
echo No OpenZinc build configuration available for this compiler! Set the
echo ZINCBUILD environment variable to the basename of the OpenZinc configuration
echo to use (eg, set ZINCBUILD=mvcpp400mt to use the mvcpp400mt.mak makefiles)
echo and try again.
echo.
goto :end
:build
cd %root%\zinc
if not exist source\%zincbuild%.mak call copymak.bat %zincbuild%.mak %root%\kermit\zinc-build
cd source
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd design
cd service
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd direct
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd storage
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd stredit
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd i18n
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
nmake -f %ZINCBUILD%.mak winnt || goto :error
cd ..
cd ..
set CKF_ZINC=yes
set CK_HAVE_ZINC_NT=yes
if "%BUILD_ZINC%"=="no" goto :built
set lib=%lib%;%ck_zinc_lib%
set include=%include%;%ck_zinc_include%
set BUILD_ZINC=no
:built
echo.
echo.
echo OpenZinc built successfully - you can now build the C-Kermit for Windows Dialer!
echo.
goto :end
:error
echo OpenZinc build failed.
echo.
echo If you've previously built OpenZinc with a different compiler, run cleanall.bat
echo in the zinc subdirectory and try again.
echo.
:end
cd %root%