summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2026-05-24 15:57:33 +0000
committerAda Christine <adachristine18@gmail.com>2026-05-24 15:57:33 +0000
commitc77b8a02c8d338c85bf616a7428bdc51807c2963 (patch)
tree9a27a95d537c0a7fba9edb39c7bd339e4af50ee1
parentf5718812c5cb3ba00b43c67937e9e571da03f7cf (diff)
updatemain
-rw-r--r--loader/Makefile6
-rw-r--r--loader/main_efi.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/loader/Makefile b/loader/Makefile
index fd50330..1f8e003 100644
--- a/loader/Makefile
+++ b/loader/Makefile
@@ -1,11 +1,11 @@
include ../defaults.mk
include ../efi.mk
-VPATH := ../lib
+VPATH := ../lib ../lib/libc
IMAGE := loader.efi
-CPPFLAGS += -I../api -I../lib
+CPPFLAGS += -I../api -I../lib/api
CFLAGS += --target=$(GNUEFIARCH)-unknown-windows -fshort-wchar -mno-avx \
-mno-sse -mno-mmx -funsigned-char -Wno-pointer-sign -ggdb \
@@ -16,7 +16,7 @@ LDFLAGS := --target=$(GNUEFIARCH)-unknown-windows -nostdlib -ggdb \
all: $(IMAGE)
-OBJS := main_efi.o elf64.o memcmp.o memmove.o kprintf.o string.o memset.o \
+OBJS := main_efi.o elf64.o memcmp.o memmove.o printf.o string.o memset.o \
memcpy.o
DEPS := $(OBJS:.o=.d)
diff --git a/loader/main_efi.c b/loader/main_efi.c
index b3df593..1369891 100644
--- a/loader/main_efi.c
+++ b/loader/main_efi.c
@@ -9,8 +9,8 @@
#include <libc/stdio.h>
#include <libc/string.h>
-FILE *kstdout;
-FILE *kstderr;
+FILE *stdout;
+FILE *stderr;
static EFI_SYSTEM_TABLE *gST;
static EFI_BOOT_SERVICES *gBS;