@echo off rem NASM and DJGPP executable paths: set nasm_path=C:\nasm set djgpp_path=C:\DJGPP\bin set objpath=..\objects set incpath=../include goto build :error @echo. @echo There have been build errors. Building halted. @pause exit :build @echo Building Memory Manager... del %objpath%\mmngr.o del %objpath%\mmngr_ph.o @echo * Compiling Physical Memory Manager... %nasm_path%\nasm.exe -f aout -o %objpath%/mmngr.o mmngr.asm %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/mmngr_ph.o mmngr_ph.c @echo * Compiling Virtual Memory Manager... %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/mmngr_vi.o mmngr_vi.c %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/mmngr_de.o lib/pde.c %djgpp_path%\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer -nostdinc -fno-builtin -I%incpath% -c -o %objpath%/mmngr_te.o lib/pte.c :check if not exist %objpath%\mmngr_vi.o goto error if not exist %objpath%\mmngr_de.o goto error if not exist %objpath%\mmngr_te.o goto error if not exist %objpath%\mmngr.o goto error if not exist %objpath%\mmngr_ph.o goto error