mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 12:38:46 +10:00
MBR code now strictly loads OS code into memory and jumps into it. Now, I've got to consolidate my assembler code, modrm logic is messed up.
27 lines
401 B
Makefile
27 lines
401 B
Makefile
TARGET = disk.bin
|
|
BASEDIR = ../..
|
|
EDIR = $(BASEDIR)/emul
|
|
STAGE = $(EDIR)/stage
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
mbr.bin: mbr.fs $(STAGE)
|
|
cat mbr.fs | $(STAGE) > $@
|
|
|
|
os.bin: xcomp.fs $(STAGE)
|
|
cat xcomp.fs | $(STAGE) > $@
|
|
|
|
disk.bin: mbr.bin os.bin
|
|
cat mbr.bin os.bin > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(EDIR) stage
|
|
|
|
.PHONY: emul
|
|
emul: $(TARGET)
|
|
qemu-system-i386 -fda $(TARGET)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm *.bin
|