2024-03-24 08:03:03 +00:00
|
|
|
TARGET = stpdldr.sys
|
|
|
|
|
2025-01-29 11:46:46 +00:00
|
|
|
COMMON_DIR = ../common
|
|
|
|
SYS_DIR = ../../kernel/sys
|
|
|
|
|
|
|
|
COMMON_SRCS = const.inc \
|
|
|
|
bootinfo.inc
|
|
|
|
|
|
|
|
SYS_SRCS = bootinfo.inc \
|
|
|
|
register.inc
|
|
|
|
|
2024-03-24 08:03:03 +00:00
|
|
|
LOADER_SRCS = loader.asm \
|
2025-01-29 11:46:46 +00:00
|
|
|
$(addprefix $(COMMON_DIR)/, $(COMMON_SRCS)) \
|
|
|
|
$(addprefix $(SYS_DIR)/, $(SYS_SRCS)) \
|
2024-07-29 15:51:41 +00:00
|
|
|
fat.inc \
|
2024-04-28 06:41:36 +00:00
|
|
|
video.inc \
|
|
|
|
memory.inc \
|
|
|
|
logger.inc \
|
2024-03-24 08:03:03 +00:00
|
|
|
a20.inc \
|
2024-08-31 12:40:07 +00:00
|
|
|
multiboot.inc \
|
2024-09-01 09:53:44 +00:00
|
|
|
stpdfs.inc \
|
|
|
|
disk.inc
|
2024-03-24 08:03:03 +00:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2025-01-29 11:46:46 +00:00
|
|
|
%.inc: %.inc.in
|
|
|
|
sh $(TOOLSDIR)/version.sh $< $@
|
2024-03-24 08:03:03 +00:00
|
|
|
|
|
|
|
stpdldr.sys: $(LOADER_SRCS)
|
|
|
|
$(AS) loader.asm $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) $(TARGET)
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: $(TARGET)
|
|
|
|
@ mkdir -p $(DESTDIR)
|
|
|
|
install $(TARGET) $(DESTDIR)
|