forked from nidud/asmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asmc-2.34.cmd
66 lines (55 loc) · 1.01 KB
/
asmc-2.34.cmd
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
@echo off
%~d0
cd %~dp0
if not exist %~dp0bin\envars32.bat %~dp0bin\make.exe -install
call %~dp0bin\envars32.bat
echo.
asmc -logo
echo.
echo AsmcDir: %AsmcDir%
if not exist %~dp0lib\x86\user32.lib (
choice /c YN /M "32-bit Import Libraries Missing: Build them now"
if not errorlevel 2 call :ImportLibraries32
)
if not exist %~dp0lib\x86\libc.lib (
choice /c YN /M "Runtime Library Missing: Build it now"
if not errorlevel 2 call :BuildCRT
)
if not exist %~dp0lib\x64\user32.lib (
choice /c YN /M "64-bit Import Libraries Missing: Build them now"
if not errorlevel 2 call :ImportLibraries64
)
cls
if exist %AsmcDir%\bin\dz.ini (
dz -nologo
) else (
echo Esc toggles panels
echo.
dz -cmd -nologo
)
goto end
:BuildCRT
cd %AsmcDir%\source\libc
make win32
make
cd %AsmcDir%
echo.
goto end
:BuildUUID
cd %AsmcDir%\source\libs\uuid
make
cd %AsmcDir%
echo.
goto end
:ImportLibraries32
cd %AsmcDir%\lib\x86
make
cd %AsmcDir%
echo.
goto end
:ImportLibraries64
cd %AsmcDir%\lib\x64
make
cd %AsmcDir%
echo.
:end