StupidOS/boot/loader/Makefile

32 lines
511 B
Makefile
Raw Permalink Normal View History

TARGET = stpdldr.sys
LOADER_SRCS = loader.asm \
../common/const.inc \
../common/bootinfo.inc \
2024-07-07 13:48:22 +00:00
../../kernel/sys/bootinfo.inc \
../../kernel/sys/register.inc \
fat.inc \
2024-04-28 06:41:36 +00:00
video.inc \
memory.inc \
logger.inc \
a20.inc \
2024-08-31 12:40:07 +00:00
multiboot.inc \
stpdfs.inc \
disk.inc
.PHONY: all
all: $(TARGET)
stpdldr.sys: $(LOADER_SRCS)
$(AS) loader.asm $@
.PHONY: clean
clean:
$(RM) $(TARGET)
.PHONY: install
install: $(TARGET)
@ mkdir -p $(DESTDIR)
install $(TARGET) $(DESTDIR)