StupidOS/kernel/Makefile

42 lines
602 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 \
mm/mm.inc \
2024-07-10 10:56:53 +00:00
mm/pmm.inc \
2024-07-13 07:43:27 +00:00
lock.inc \
gdt.inc \
2024-07-13 08:17:36 +00:00
isr.inc \
2024-07-14 13:11:28 +00:00
pic.inc \
idt.inc \
2024-07-14 16:48:36 +00:00
dev/console.inc \
2024-07-14 13:11:28 +00:00
dev/at/pit.inc \
dev/at/cga.inc \
2024-07-14 16:48:36 +00:00
dev/at/kbd.inc \
dev/at/floppy.inc
2024-03-20 15:51:27 +00:00
.PHONY: all
all: $(KERNEL)
2024-07-14 09:22:43 +00:00
PHONY: const.inc
const.inc: const.inc.in
sh $(TOOLSDIR)/version.sh $< $@
2024-03-20 15:51:27 +00:00
$(KERNEL): $(SRCS)
$(AS) kernel.asm $@
.PHONY: clean
clean:
$(RM) $(KERNEL)
.PHONY: install
install: $(KERNEL)
@ mkdir -p $(DESTDIR)
install $< $(DESTDIR)
.PHONY: all clean install