- export C_INCLUDE_PATH=../include/
- CC=i686-pc-linux-gnu-gcc
- OBJECTS=boot.bin realmode.o loader.o high_loader.o
- all: $(OBJECTS)
- for i in `find . -iname "*.o"` ; do cp $$i ../build/ ; done
- boot.bin: boot.asm
- nasm -f bin boot.asm -o boot.bin
- loader.o: loader.asm
- nasm -f aout loader.asm -o loader.o
- realmode.o: realmode.asm
- nasm -f aout realmode.asm -o realmode.o
- clean:
- -rm boot.bin
- -rm *.o
- if [ -e .*swp ] ; then rm .*swp ; fi