StupidOS/boot/bootsect/Makefile

31 lines
506 B
Makefile
Raw Normal View History

2024-04-04 10:13:02 +00:00
TARGET = boot_floppy1440.bin \
2024-04-14 05:35:43 +00:00
boot_floppy2880.bin \
boot_mbr.bin
FLOPPY_SRCS = floppy.asm \
../common/const.inc \
../common/fat12.inc
2024-04-14 05:35:43 +00:00
MBR_SRCS = mbr.asm \
../common/const.inc \
../common/fat12.inc
.PHONY: all
all: $(TARGET)
2024-04-04 10:13:02 +00:00
boot_floppy1440.bin: $(FLOPPY_SRCS)
$(AS) floppy.asm $@
2024-04-04 10:13:02 +00:00
boot_floppy2880.bin: $(FLOPPY_SRCS)
$(AS) -DFLOPPY_SIZE=FLOPPY_2880 floppy.asm $@
2024-04-14 05:35:43 +00:00
boot_mbr.bin: $(MBR_SRCS)
$(AS) mbr.asm $@
.PHONY: clean
clean:
$(RM) $(TARGET)
.PHONY: install
install: $(TARGET)