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