StupidOS/kernel/Makefile

65 lines
1 KiB
Makefile
Raw Permalink Normal View History

2024-03-20 15:51:27 +00:00
AS = fasm
RM = rm -f
INSTALL = install
2024-07-19 07:53:03 +00:00
ASMINCS = sys/bootinfo.inc \
sys/coff.inc \
sys/cpu.inc \
sys/errno.inc \
sys/macro.inc \
sys/mmu.inc \
sys/process.inc \
sys/register.inc
2024-03-20 15:51:27 +00:00
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-18 09:28:07 +00:00
heap.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 \
2024-07-21 16:14:38 +00:00
dev/at/com.inc \
2024-07-22 15:31:24 +00:00
dev/at/ne2k.inc \
2024-07-22 21:43:35 +00:00
dev/at/ata.inc \
2024-07-16 06:29:16 +00:00
dev/at/floppy.inc \
2024-07-16 07:52:08 +00:00
dev/dev.inc \
2024-07-16 06:29:16 +00:00
fs/fat.inc \
fs/stpdfs.inc \
fs/xv6fs.inc \
2024-07-19 07:53:03 +00:00
vfs.inc \
proc.inc \
2024-07-23 05:50:35 +00:00
bio.inc \
2024-07-19 07:53:03 +00:00
$(ASMINCS)
2024-03-20 15:51:27 +00:00
.PHONY: all
all: $(KERNEL)
2024-07-22 15:32:12 +00:00
.PHONY: const.inc
2024-07-14 09:22:43 +00:00
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)
2024-07-19 07:53:03 +00:00
install $(KERNEL) $(DESTDIR)
@ mkdir -p $(DESTDIR)$(ASMDIR)/sys
install $(ASMINCS) $(DESTDIR)$(ASMDIR)/sys
2024-03-20 15:51:27 +00:00
.PHONY: all clean install