aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/makefile')
-rw-r--r--kernel/makefile9
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