From fd1b4220be8238f9cba2f74648c9d8f66ee8b7fd Mon Sep 17 00:00:00 2001 From: fslongjin Date: Mon, 1 Aug 2022 19:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=86screen=20manager?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- kernel/Makefile | 2 +- kernel/lib/Makefile | 12 ++++++++++++ kernel/lib/libUI/Makefile | 7 +++++++ kernel/lib/libUI/screen_manager.c | 1 + kernel/lib/libUI/screen_manager.h | 1 + 6 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 kernel/lib/Makefile create mode 100644 kernel/lib/libUI/Makefile create mode 100644 kernel/lib/libUI/screen_manager.c create mode 100644 kernel/lib/libUI/screen_manager.h diff --git a/.vscode/settings.json b/.vscode/settings.json index c450b567..71e50afa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -113,7 +113,8 @@ "ia64_msi.h": "c", "errno.h": "c", "bug.h": "c", - "apic_timer.h": "c" + "apic_timer.h": "c", + "sched.h": "c" }, "C_Cpp.errorSquiggles": "Enabled", "esbonio.sphinx.confDir": "" diff --git a/kernel/Makefile b/kernel/Makefile index c813e863..ccded971 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -17,7 +17,7 @@ export ASFLAGS := --64 LD_LIST := head.o -kernel_subdirs := common driver process debug filesystem time arch exception mm smp sched syscall ktest +kernel_subdirs := common driver process debug filesystem time arch exception mm smp sched syscall ktest lib diff --git a/kernel/lib/Makefile b/kernel/lib/Makefile new file mode 100644 index 00000000..4c0f3b6c --- /dev/null +++ b/kernel/lib/Makefile @@ -0,0 +1,12 @@ + +CFLAGS += -I . + +kernel_lib_subdirs:= libUI + +ECHO: + @echo "$@" + +$(kernel_lib_subdirs): ECHO + $(MAKE) -C $@ all CFLAGS="$(CFLAGS)" ASFLAGS="$(ASFLAGS)" PIC="$(PIC)" + +all: $(kernel_lib_subdirs) diff --git a/kernel/lib/libUI/Makefile b/kernel/lib/libUI/Makefile new file mode 100644 index 00000000..35fbd5ac --- /dev/null +++ b/kernel/lib/libUI/Makefile @@ -0,0 +1,7 @@ + +all: screen_manager.o + +CFLAGS += -I . + +screen_manager.o: screen_manager.c + gcc $(CFLAGS) -c screen_manager.c -o screen_manager.o \ No newline at end of file diff --git a/kernel/lib/libUI/screen_manager.c b/kernel/lib/libUI/screen_manager.c new file mode 100644 index 00000000..f4933f8c --- /dev/null +++ b/kernel/lib/libUI/screen_manager.c @@ -0,0 +1 @@ +#include "screen_manager.h" \ No newline at end of file diff --git a/kernel/lib/libUI/screen_manager.h b/kernel/lib/libUI/screen_manager.h new file mode 100644 index 00000000..1a370f19 --- /dev/null +++ b/kernel/lib/libUI/screen_manager.h @@ -0,0 +1 @@ +#pragma once \ No newline at end of file