diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-12-11 16:46:35 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-12-11 16:46:35 +0200 |
commit | c5ca4bd8a8e03a1b72d1270a4e2203ecf64838b8 (patch) | |
tree | a1b6698958c43ed73df53ef1bb875be43ec50491 /src | |
parent | Rewrite drivers/uart and drivers/vga in cpp (diff) | |
download | kernel-c5ca4bd8a8e03a1b72d1270a4e2203ecf64838b8.tar.xz |
Move symlink target to leaf makefiles
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 637f9a1..8f7c47c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,21 @@ include ../Makefile.config kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c -kernel.OBJS := conf.h +kernel.OBJS := include conf.h include ../rules.mk conf.h: conf.h.in + @echo ' GEN $@' @cp conf.h.in conf.h @sed -i 's/@VERSION@/$(shell git describe)/' conf.h @sed -i 's/@CC@/$(shell ${CC} --version | head -n1)/' conf.h +include: + mkdir -p $@ + ln -sTf ../../grub $@/grub + ln -sTf ../../${ARCH} $@/arch + ln -sTf ../../${ARCH}/sys $@/sys + ln -sTf ../../devices $@/devices + ln -sTf ../../lib $@/lib + |