mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 19:48:05 +11:00
07e50313c7
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
|