StupidOS/kernel/Makefile

28 lines
366 B
Makefile
Raw Normal View History

2024-03-20 15:51:27 +00:00
AS = fasm
RM = rm -f
INSTALL = install
KERNEL = vmstupid.sys
SRCS = kernel.asm \
const.inc \
2024-07-05 12:23:58 +00:00
klog.inc \
dev/vga_console.inc \
2024-03-20 15:51:27 +00:00
mm/mm.inc
.PHONY: all
all: $(KERNEL)
$(KERNEL): $(SRCS)
$(AS) kernel.asm $@
.PHONY: clean
clean:
$(RM) $(KERNEL)
.PHONY: install
install: $(KERNEL)
@ mkdir -p $(DESTDIR)
install $< $(DESTDIR)
.PHONY: all clean install