From 8fa3f22e388b75276737466e984a49545cb8a108 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 5 Feb 2023 11:16:42 +0200 Subject: Remove makefile include targets --- src/Makefile | 14 +++++--------- src/kernel.cpp | 12 ++++++------ src/mem/vmm.c | 2 +- src/mmap.h | 2 +- 4 files changed, 13 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index c3e4931..1aa8617 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,11 @@ include ../Makefile.config +INCLUDES := -isystem../grub -I../${ARCH} -I../devices +CFLAGS += ${INCLUDES} +CXXFLAGS += ${INCLUDES} + kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c -kernel.OBJS := include conf.h +kernel.OBJS := conf.h TESTS += tst/test_taskqueue tst/test_roundrobin @@ -13,11 +17,3 @@ conf.h: conf.h.in @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 - diff --git a/src/kernel.cpp b/src/kernel.cpp index 751bcb0..063fe11 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -7,15 +7,15 @@ extern "C" { #include "conf.h" #include "mem.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include } -#include -#include +#include +#include FILE *stdin; FILE *stdout; diff --git a/src/mem/vmm.c b/src/mem/vmm.c index 3d34a0a..77b06a8 100644 --- a/src/mem/vmm.c +++ b/src/mem/vmm.c @@ -1,5 +1,5 @@ #include "../mem.h" -#include +#include extern struct DirectoryEntry k_pagedir[1024]; extern struct TableEntry k_ptable0x300[1024]; diff --git a/src/mmap.h b/src/mmap.h index 2bf42c4..13f40f2 100644 --- a/src/mmap.h +++ b/src/mmap.h @@ -1,7 +1,7 @@ #pragma once #include "boot.h" -#include +#include __attribute__((section(".multiboot.text"))) unsigned multiboot2_mmap(const struct multiboot_mmap_entry entries[], unsigned entry_count, unsigned bitmap[1024 * 32]); -- cgit v1.2.1