@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 set djgpp_path=C:\mingw\bin rem Compile loader @echo on %nasm_path%\nasm.exe -f aout -o ./objects/%loader_name%.o %loader_name%.asm @echo off @echo. rem Compile main Kernel @echo on %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 @pause