mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-15 03:38:06 +11:00
b3e865d0fb
Much faster!
28 lines
470 B
Makefile
28 lines
470 B
Makefile
TARGET = disk.bin
|
|
BASEDIR = ../..
|
|
CDIR = $(BASEDIR)/cvm
|
|
STAGE = $(CDIR)/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 > $@
|
|
dd if=$(CDIR)/blkfs of=$@ bs=512 seek=16
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(CDIR) stage
|
|
|
|
.PHONY: emul
|
|
emul: $(TARGET)
|
|
qemu-system-i386 -drive file=$(TARGET),if=floppy,format=raw
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm *.bin
|