76 lines
1.3 KiB
Makefile
76 lines
1.3 KiB
Makefile
include stpd.base.mk
|
|
|
|
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
|
|
|
|
KERNEL = vmstupid
|
|
|
|
MM_SRCS = bootstrap.inc \
|
|
mm.inc \
|
|
pmm.inc \
|
|
vmem.inc
|
|
|
|
SRCS = kernel.asm \
|
|
const.inc \
|
|
klog.inc \
|
|
$(addprefix mm/, $(MM_SRCS)) \
|
|
lock.inc \
|
|
gdt.inc \
|
|
isr.inc \
|
|
pic.inc \
|
|
idt.inc \
|
|
heap.inc \
|
|
queue.inc \
|
|
dev/console.inc \
|
|
dev/at/pit.inc \
|
|
dev/at/cga.inc \
|
|
dev/at/kbd.inc \
|
|
dev/at/com.inc \
|
|
dev/at/ne2k.inc \
|
|
dev/at/ata.inc \
|
|
dev/at/floppy.inc \
|
|
dev/dev.inc \
|
|
fs/fat.inc \
|
|
fs/stpdfs.inc \
|
|
fs/xv6fs.inc \
|
|
vfs.inc \
|
|
proc.inc \
|
|
bio.inc \
|
|
$(ASMINCS)
|
|
|
|
.PHONY: all
|
|
all: $(KERNEL).sys $(KERNEL).sym
|
|
|
|
.PHONY: const.inc
|
|
const.inc: const.inc.in
|
|
@$(VERSION_SH)
|
|
|
|
$(KERNEL).sys $(KERNEL).fas &: $(SRCS)
|
|
$(MSG_BUILD)
|
|
@$(FASM) -s $(KERNEL).fas kernel.asm $(KERNEL).sys >/dev/null
|
|
|
|
$(KERNEL).sym: $(KERNEL).fas
|
|
$(MSG_CREATE)
|
|
@$(FAS2SYM) -o $@ $<
|
|
|
|
.PHONY: install
|
|
install: $(DESTDIR)/$(KERNEL).sys $(SYMSDIR)/$(KERNEL).sym
|
|
|
|
$(DESTDIR)/$(KERNEL).sys: $(KERNEL).sys
|
|
$(MSG_INSTALL)
|
|
@install -D $< $@
|
|
|
|
$(SYMSDIR)/$(KERNEL).sym: $(KERNEL).sym
|
|
$(MSG_INSTALL)
|
|
@install -D $< $@
|
|
|
|
CLEANFILES = $(KERNEL).sys $(KERNEL).fas $(KERNEL).sys const.inc
|
|
|
|
include stpd.clean.mk
|
|
include stpd.inc.mk
|