From: Duje Mihanović <duje.mihanovic@skole.hr>
Date: Wed, 8 Sep 2021 08:04:10 +0000 (+0200)
Subject: Enable generation of debug symbols for C source files
X-Git-Tag: 0.1.0~23
X-Git-Url: http://git.dujemihanovic.xyz/img/html/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=9a7a5d850eae7445098e7c6af99e2a4009bb11b1;p=nameless-os.git

Enable generation of debug symbols for C source files
---

diff --git a/Makefile b/Makefile
index c895701..a4c88b3 100644
--- a/Makefile
+++ b/Makefile
@@ -20,10 +20,10 @@ kernel/entry.o: kernel/entry.s
 	$(AS) -f elf kernel/entry.s -o $@
 
 kernel/arch/x86/tty/tty.o: kernel/arch/x86/tty/tty.c
-	$(CC) -o $@ -ffreestanding -c kernel/arch/x86/tty/tty.c
+	$(CC) -g -o $@ -ffreestanding -c kernel/arch/x86/tty/tty.c
 
 kernel/kernel.o: kernel/kernel.c
-	$(CC) -o $@ -Iinclude/arch/x86 -ffreestanding -c kernel/kernel.c
+	$(CC) -g -o $@ -Iinclude/arch/x86 -ffreestanding -c kernel/kernel.c
 
 clean:
 	rm boot kernel/kernel.bin ${KERNEL_OBJ} boot.img