From bb59107bd06a6a252b3743f17e55e3c17896db35 Mon Sep 17 00:00:00 2001 From: EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> Date: Sun, 7 Jan 2024 03:19:28 -0500 Subject: moved kernel libc stuff to libs/libck/ --- kernel/makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'kernel/makefile') diff --git a/kernel/makefile b/kernel/makefile index 6c563b8..a9407bd 100644 --- a/kernel/makefile +++ b/kernel/makefile @@ -1,5 +1,4 @@ # Kernel makefile -#absolute hell ifndef GAS GAS = i686-elf-as @@ -29,7 +28,7 @@ ifndef SYSROOT endif -LIBS = -nostdlib -lgcc +LIBS = -nostdlib -lgcc -lck #Find all the source files C_SOURCES := $(shell find $(PWD)/kernel -type f -name '*.c') @@ -44,8 +43,8 @@ OBJECTS := $(patsubst %.c,%.o,$(C_SOURCES)) OBJECTS += $(patsubst %.cpp,%.o,$(CPP_SOURCES)) OBJECTS += $(patsubst %.asm,%.o,$(ASMFILES)) -DEPFILES := $(patsubst %.c,%.d,$(SRCFILES)) -DEPFILES += $(patsubst %.cpp,%.d,$(SRCFILES)) +DEPFILES := $(patsubst %.c,%.d,$(C_SOURCES)) +DEPFILES += $(patsubst %.cpp,%.d,$(CPP_SOURCES)) LINKLST := crti.o LINKLST += $(CRTBEGIN) @@ -87,4 +86,4 @@ install-headers: clean: $(info [INFO] Cleaning) - rm ${OBJECTS} ${DEPFILES} crti.o crtn.o \ No newline at end of file + $(RM) ${OBJECTS} $(DEPFILES) crti.o crtn.o \ No newline at end of file -- cgit v1.2.3-70-g09d2