luxos/SysCore/video/compile.bat
2021-09-14 18:46:50 +03:00

24 lines
596 B
Batchfile

@echo off
rem NASM and DJGPP executable paths:
set nasm_path=C:\nasm
set djgpp_path=C:\mingw\bin
set objpath=..\objects\video
set incpath=../include
@echo Building Video Drivers...
goto build
:error
@echo.
@echo There have been build errors. Building halted.
@pause
exit
:build
@echo * Compiling Text Mode 0x03 video driver ...
%djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o vga03h.o vga03h.c
if not exist vga03h.o goto error
xcopy /Y *.o %objpath% >nul
del *.o