From c3410b755e8e3eff46e4954aa5ae4bbc8ab30d76 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Fri, 11 Dec 2020 16:43:44 +0000 Subject: [PATCH] Add bat script to bcc32 newlib example git-svn-id: svn://kolibrios.org@8366 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/bcc32/newlib_example/build.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 programs/bcc32/newlib_example/build.bat diff --git a/programs/bcc32/newlib_example/build.bat b/programs/bcc32/newlib_example/build.bat new file mode 100755 index 0000000000..88136aa1db --- /dev/null +++ b/programs/bcc32/newlib_example/build.bat @@ -0,0 +1,12 @@ +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