-
Notifications
You must be signed in to change notification settings - Fork 3
/
BuildForWindows.bat
34 lines (30 loc) · 1.24 KB
/
BuildForWindows.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
@ECHO OFF
CLS
REM ;==========================================================================
REM ;
REM ; UASM64 Library for Windows
REM ;
REM ; https://github.com/mrfearless/UASM64-Library
REM ;
REM ;==========================================================================
REM For manually the building UASM64 Library for Linux from the command line
ECHO ==========================================================================
ECHO.
ECHO UASM64 Library for Windows
ECHO.
ECHO https://github.com/mrfearless/UASM64-Library
ECHO.
ECHO ==========================================================================
ECHO.
:TIDYUP
REM ;==========================================================================
REM ; Delete older UASM64.lib library and *.obj object files
REM ;==========================================================================
REM
IF EXIST UASM64.a DEL /Q UASM64.lib
for /f "delims=" %%a in ('dir *.obj /b /a-d') do DEL /Q "%%a"
for /f "delims=" %%a in ('dir *.err /b /a-d') do DEL /Q "%%a"
\UASM\BIN\UASM64.EXE /c /coff /Cp /nologo -Zp8 -win64 /win64 /D_WIN64 /I"\UASM64\Include" *.asm
\UASM\BIN\LIB *.obj /out:UASM64.lib
for /f "delims=" %%a in ('dir *.obj /b /a-d') do DEL /Q "%%a"
for /f "delims=" %%a in ('dir *.err /b /a-d') do DEL /Q "%%a"