VZEditor/SRC/LK.BAT
Yoshihiko Hyodo 6f06b9514a first commit
2024-11-18 22:21:26 +09:00

36 lines
606 B
Batchfile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo off
rem ------- Link VZ, other tools -------
rem usage: lk [vmap, etc.]
rem
rem %LNK% :linker name cap (t, ) ex. set lnk=t
if not "%1"=="" goto link_tool
set LNKFILE=@vz.lnk
set LNKCOM=vz%HARD%
goto start
:link_tool
set LNKFILE=%1
set LNKCOM=%1
:start
if "%LNK%"=="t" goto tlink
:mslink
link /m /noi %LNKFILE%,%LNKCOM%,%LNKCOM%;
exe2bin %LNKCOM%.exe %LNKCOM%.com
del %LNKCOM%.exe
goto done
:tlink
tlink /c /m /t %LNKFILE%,%LNKCOM%,%LNKCOM%;
if errorlevel 1 goto end
:done
if exist %LNKCOM%.sym del %LNKCOM%.sym
dir %LNKCOM%.com
:end
set LNKFILE=
set LNKCOM=