forked from elchs/LetoDBf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_vc.bat
executable file
·65 lines (52 loc) · 1.66 KB
/
make_vc.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
@echo off
REM
REM check file "Readme.txt", chapter: 2.1 -- this file is commonly not what you want
REM
REM SET PATH=F:\MsVc8\VC\bin;F:\MsVc8\SDK\v2.0\bin;f:\HbVc8\bin
REM SET PATH=F:\MsVc9\VC\bin;F:\MsVc9\SDK\v3.5\bin;f:\HbVc9\bin
REM SET HB_PATH=F:\HbVc8
SET HB_PATH=C:\xharbour
@echo off
if "%1" == "clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
if not exist lib md lib
if not exist obj md obj
if not exist obj\vc md obj\vc
if not exist obj\api md obj\api
REM SET VSINSTALLDIR=F:\MsVc8
REM SET VCINSTALLDIR=F:\MsVc8\VC
REM SET PATH=F:\MsVc8\VC\BIN;F:\MsVc8\Common7\IDE;F:\MsVc8\Common7\Tools;F:\MsVc8\SDK\v2.0\bin;%PATH%
REM SET INCLUDE=F:\MsVc8\VC\include;F:\MsVc8\SDK\v2.0\include
REM SET LIB=F:\MsVc8\VC\lib;F:\MsVc8\SDK\v2.0\lib
REM SET LIBPATH=F:\MsVc8\VC\lib;F:\MsVc8\SDK\v2.0\lib
REM SET VSINSTALLDIR=F:\MsVc9
REM SET VCINSTALLDIR=F:\MsVc9\VC
REM SET PATH=F:\MsVc9\VC\BIN;F:\MsVc9\Common7\IDE;F:\MsVc9\Common7\Tools;F:\MsVc9\SDK\v3.5\bin;%PATH%
REM SET INCLUDE=F:\MsVc9\VC\include;F:\MsVc9\SDK\v3.5\include
REM SET LIB=F:\MsVc9\VC\lib;F:\MsVc9\SDK\v3.5\lib
REM SET LIBPATH=F:\MsVc9\VC\lib;F:\MsVc9\SDK\v3.5\lib
:BUILD
nmake /I /Fmakefile.vc %1 %2 %3 > make_vc.log 2> make_vc.err
if errorlevel 1 goto BUILD_ERR
if "%1" == "full" (
copy lib\rddleto.lib %HB_PATH%\lib\rddleto.lib
copy include\leto_std.ch %HB_PATH%\include
copy include\letofile.ch %HB_PATH%\include
copy include\rddleto.ch %HB_PATH%\include
) ELSE (
copy lib\leto.lib %HB_PATH%\lib\leto.lib
)
goto BUILD_OK
:BUILD_OK
goto EXIT
:BUILD_ERR
notepad make_vc.log
goto EXIT
:CLEAN
del lib\*.lib
del obj\vc\*.obj
del obj\vc\*.c
del obj\api\*.obj
del make_vc.log
goto EXIT
:EXIT