diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..4c47e20 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +include ../${ARCH}/toolchain.mk +include ../rules.mk + +CCFLAGS += -I. -I../grub/include -I../${ARCH} -I../lib -I.. + +all: kernel.a + +kernel,SRCS = multiboot2.c mmap.c kernel.c isr.c mem/vmm.c +kernel,OBJS = $(kernel,SRCS:%.c=%.o) +kernel.a: conf.h ${kernel,OBJS} + @echo ' AR $@' + @${AR} ${ARFLAGS} $@ ${kernel,OBJS} + +conf.h: conf.h.in + cp conf.h.in conf.h + +clean: + @rm -rf ${kernel,OBJS} + |