mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-05 06:41:55 +03:00
13 lines
337 B
Batchfile
13 lines
337 B
Batchfile
|
Set NAME=main
|
||
|
Set BCC=bcc32
|
||
|
Set MSVC=link
|
||
|
Set LD=ld
|
||
|
Set SDK_DIR=../../../contrib/sdk
|
||
|
|
||
|
%BCC% -c %NAME%.c
|
||
|
%MSVC% -edit %NAME%.obj
|
||
|
%LD% -static -S -nostdlib -T %SDK_DIR%/sources/newlib/app.lds --image-base 0 -L%SDK_DIR%/lib --subsystem console -o %NAME%.kex %NAME%.obj -lgcc -lc.dll
|
||
|
|
||
|
if exist %NAME%.kex kpack %NAME%.kex
|
||
|
pause
|