-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMake.bat
More file actions
37 lines (31 loc) · 804 Bytes
/
Copy pathMake.bat
File metadata and controls
37 lines (31 loc) · 804 Bytes
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
@echo off
REM create obj and bin folders if non exiting, since
REM the development tools will not create them themselves
if not exist obj mkdir obj
if not exist bin mkdir bin
echo.
echo Compile the C code
echo --------------------------
compile Worm.c -o obj\Worm.asm || goto :failed
echo.
echo Assemble the ASM code
echo --------------------------
assemble obj\Worm.asm -o obj\Worm.vbin || goto :failed
echo.
echo Convert the PNG textures
echo --------------------------
png2vircon libs\TextFonts\TextureFont22x32.png -o obj\TextureFont22x32.vtex || goto :failed
echo.
echo Pack the ROM
echo --------------------------
packrom Worm.xml -o "bin\Worm.v32" || goto :failed
goto :succeeded
:failed
echo.
echo BUILD FAILED
exit /b %errorlevel%
:succeeded
echo.
echo BUILD SUCCESSFUL
exit /b
@echo on