2024-02-08 13:58:18 +00:00
|
|
|
AS = fasm
|
|
|
|
RM = rm
|
|
|
|
|
|
|
|
TARGET = bootsector.bin stpdboot.sys
|
|
|
|
|
|
|
|
STAGE0_SRCS = boot0.asm \
|
|
|
|
const.inc \
|
|
|
|
fat12.inc
|
|
|
|
|
|
|
|
STAGE1_SRCS = boot1.asm \
|
|
|
|
const.inc \
|
2024-03-03 15:38:35 +00:00
|
|
|
a20.inc \
|
|
|
|
multiboot.inc
|
2024-02-08 13:58:18 +00:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
bootsector.bin: $(STAGE0_SRCS)
|
|
|
|
$(AS) boot0.asm $@
|
|
|
|
|
|
|
|
stpdboot.sys: $(STAGE1_SRCS)
|
|
|
|
$(AS) boot1.asm $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) $(TARGET)
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: $(TARGET)
|
|
|
|
@ mkdir -p $(DESTDIR)
|
2024-03-03 15:38:35 +00:00
|
|
|
install stpdboot.sys $(DESTDIR)
|
|
|
|
|