StupidOS/boot/bootsect/Makefile

39 lines
638 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 \
2024-05-28 04:54:10 +00:00
boot_mbr.bin \
boot_hdd.bin
FLOPPY_SRCS = floppy.asm \
../common/const.inc \
../common/fat12.inc
2024-05-28 04:54:10 +00:00
HDD_SRCS = hdd.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 $@
2024-05-28 04:54:10 +00:00
boot_hdd.bin: $(HDD_SRCS)
$(AS) hdd.asm $@
.PHONY: clean
clean:
$(RM) $(TARGET)
.PHONY: install
install: $(TARGET)