StupidOS/boot/bootsect/Makefile

31 lines
506 B
Makefile

TARGET = boot_floppy1440.bin \
boot_floppy2880.bin \
boot_mbr.bin
FLOPPY_SRCS = floppy.asm \
../common/const.inc \
../common/fat12.inc
MBR_SRCS = mbr.asm \
../common/const.inc \
../common/fat12.inc
.PHONY: all
all: $(TARGET)
boot_floppy1440.bin: $(FLOPPY_SRCS)
$(AS) floppy.asm $@
boot_floppy2880.bin: $(FLOPPY_SRCS)
$(AS) -DFLOPPY_SIZE=FLOPPY_2880 floppy.asm $@
boot_mbr.bin: $(MBR_SRCS)
$(AS) mbr.asm $@
.PHONY: clean
clean:
$(RM) $(TARGET)
.PHONY: install
install: $(TARGET)