2021-09-14 15:29:04 +00:00
|
|
|
@echo off
|
|
|
|
rem The name of the loader assembly file (without extension, must be .asm):
|
|
|
|
set loader_name=loader
|
|
|
|
|
|
|
|
rem NASM and DJGPP executable paths:
|
|
|
|
set nasm_path=C:\nasm
|
2021-09-14 15:46:50 +00:00
|
|
|
set djgpp_path=C:\mingw\bin
|
2021-09-14 15:29:04 +00:00
|
|
|
|
|
|
|
rem Compile loader
|
2021-09-14 15:34:14 +00:00
|
|
|
@echo on
|
|
|
|
%nasm_path%\nasm.exe -f aout -o ./objects/%loader_name%.o %loader_name%.asm
|
|
|
|
@echo off
|
|
|
|
@echo.
|
2021-09-14 15:29:04 +00:00
|
|
|
rem Compile main Kernel
|
|
|
|
@echo on
|
2021-09-14 15:34:14 +00:00
|
|
|
%djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I./include -c -o ./objects/main.o main.c
|
|
|
|
@echo off
|
|
|
|
rem OTHER GCC/NASM SOURCES GO HERE
|
2021-09-14 15:29:04 +00:00
|
|
|
|
|
|
|
@pause
|