-
Notifications
You must be signed in to change notification settings - Fork 5
/
makerel.bat
63 lines (52 loc) · 1.57 KB
/
makerel.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
@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.exe del lnedit.exe
if exist lnedit.pdb del lnedit.pdb
if exist lnedit.ilk del lnedit.ilk
: -----------------------------------------
: assemble lnedit.asm into an OBJ file
: -----------------------------------------
Ml.exe /c /coff lnedit.asm
if errorlevel 1 goto errasm
: --------------------------------------------------
: link the main OBJ file with the resource OBJ file
: --------------------------------------------------
Link.exe /ltcg /SUBSYSTEM:WINDOWS /DEF:export.def uuid.lib msvcrt.lib msvcprt.lib oldnames.lib lnedit.obj lnrc.obj lnedit2.lib
if errorlevel 1 goto errlink
dir lnedit.*
copy lnedit.exe bin\lnedit.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.
echo.
goto TheEnd
:errasm
: -----------------------------------------------------
: display message if there is an error during assembly
: -----------------------------------------------------
echo.
echo There has been an error while assembling.
echo.
goto TheEnd
:errres
echo.
echo There has been an error while compiling the resource.
echo.
goto TheEnd
:TheEnd
pause