@echo off rem NASM and DJGPP executable paths: set nasm_path=C:\nasm set djgpp_path=C:\mingw\bin set objpath=..\objects set incpath=../include @echo Building Kernel Standard Libraries... del %objpath%\system.o del %objpath%\string.o del %objpath%\conio.o del %objpath%\stdlib.o del %objpath%\time.o del %objpath%\ctype.o goto build :error @echo. @echo There have been build errors. Building halted. @pause exit :build @echo * Compiling SYSTEM.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/system.o system.c @echo * Compiling STRING.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/string.o string.c @echo * Compiling CONIO.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/conio.o conio.c @echo * Compiling CTYPE.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/ctype.o ctype.c @echo * Compiling STDLIB.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/stdlib.o stdlib.c @echo * Compiling TIME.C ... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/time.o time.c :check if not exist %objpath%\system.o goto error if not exist %objpath%\string.o goto error if not exist %objpath%\conio.o goto error if not exist %objpath%\ctype.o goto error if not exist %objpath%\stdlib.o goto error if not exist %objpath%\time.o goto error