Browse Source

创建了screen manager文件

fslongjin 2 years ago
parent
commit
fd1b4220be

+ 2 - 1
.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": ""

+ 1 - 1
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
 	
 
 

+ 12 - 0
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)

+ 7 - 0
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

+ 1 - 0
kernel/lib/libUI/screen_manager.c

@@ -0,0 +1 @@
+#include "screen_manager.h"

+ 1 - 0
kernel/lib/libUI/screen_manager.h

@@ -0,0 +1 @@
+#pragma once