diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-07 03:19:28 -0500 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-07 03:19:28 -0500 |
| commit | bb59107bd06a6a252b3743f17e55e3c17896db35 (patch) | |
| tree | cb8ad8bbd25fe7d5db6cf734c33f4777843876b9 /kernel/makefile | |
| parent | b7b97d32cbb6fbc928078ebe3a00714cbbebea86 (diff) | |
moved kernel libc stuff to libs/libck/
Diffstat (limited to 'kernel/makefile')
| -rw-r--r-- | kernel/makefile | 9 |
1 files changed, 4 insertions, 5 deletions
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 |
