]> git.dujemihanovic.xyz Git - nameless-os.git/commitdiff
Enable generation of debug symbols for C source files
authorDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 8 Sep 2021 08:04:10 +0000 (10:04 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 8 Sep 2021 08:04:10 +0000 (10:04 +0200)
Makefile

index c895701d2b911f6517b90be5d4b4fd8cbea6cfcb..a4c88b392be52822dea6e890cacc9b200b7acdcd 100644 (file)
--- 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