StupidOS/boot/loader/Makefile

27 lines
393 B
Makefile
Raw Normal View History

TARGET = stpdldr.sys
LOADER_SRCS = loader.asm \
../common/const.inc \
../common/bootinfo.inc \
2024-04-28 06:41:36 +00:00
video.inc \
memory.inc \
logger.inc \
a20.inc \
multiboot.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)