-
Notifications
You must be signed in to change notification settings - Fork 5
/
makedbg.bat
64 lines (51 loc) · 1.58 KB
/
makedbg.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
call varsasm.bat
if %PATH_ERROR%==1 goto errpath
rc.exe /v lnrc.rc
if errorlevel 1 goto errres
cvtres.exe /machine:ix86 lnrc.res
if errorlevel 1 goto errres
if exist lnedit.obj del lnedit.obj
if exist lnedit.pdb del lnedit.pdb
if exist lnedit.ilk del lnedit.ilk
: -----------------------------------------
: assemble lnrc.asm into an OBJ file
: -----------------------------------------
Ml.exe /c /coff /Cp /Zi /D "_LN_DEBUG" lnedit.asm
if errorlevel 1 goto errasm
: --------------------------------------------------
: link the main OBJ file with the resource OBJ file
: --------------------------------------------------
Link.exe /ltcg /SUBSYSTEM:WINDOWS /DEBUG /DEBUGTYPE:CV /DEF:export.def uuid.lib msvcrt.lib msvcprt.lib oldnames.lib lnedit.obj lnrc.obj lnedit2.lib
if errorlevel 1 goto errlink
dir lnedit.*
incver.exe
goto TheEnd
:errpath
echo.
echo Please set the correct path in varsasm.bat!
echo.
goto TheEnd
:errlink
: ----------------------------------------------------
: display message if there is an error during linking
: ----------------------------------------------------
echo.
echo There has been an error while linking this lnedit.
echo.
goto TheEnd
:errasm
: -----------------------------------------------------
: display message if there is an error during assembly
: -----------------------------------------------------
echo.
echo There has been an error while assembling this lnedit.
echo.
goto TheEnd
:errres
echo.
echo There has been an error while compiling the resource.
echo.
goto TheEnd
:TheEnd
pause