37 lines
510 B
Makefile
37 lines
510 B
Makefile
AS = fasm
|
|
RM = rm -f
|
|
INSTALL = install
|
|
|
|
KERNEL = vmstupid.sys
|
|
SRCS = kernel.asm \
|
|
const.inc \
|
|
klog.inc \
|
|
dev/vga_console.inc \
|
|
mm/mm.inc \
|
|
mm/pmm.inc \
|
|
lock.inc \
|
|
gdt.inc \
|
|
isr.inc \
|
|
pic.inc
|
|
|
|
.PHONY: all
|
|
all: $(KERNEL)
|
|
|
|
PHONY: const.inc
|
|
const.inc: const.inc.in
|
|
sh $(TOOLSDIR)/version.sh $< $@
|
|
|
|
$(KERNEL): $(SRCS)
|
|
$(AS) kernel.asm $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) $(KERNEL)
|
|
|
|
.PHONY: install
|
|
install: $(KERNEL)
|
|
@ mkdir -p $(DESTDIR)
|
|
install $< $(DESTDIR)
|
|
|
|
.PHONY: all clean install
|