Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

Commit b98c6ca

Browse files
committed
πŸ€£πŸ•˜ Kernel Update, Shell
1 parent f681c47 commit b98c6ca

30 files changed

+254
-281
lines changed

β€ŽMakefileβ€Ž

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
C_SOURCES = $(wildcard os/kernel/*.c os/drivers/*.c os/cpu/*.c)
2-
HEADERS = $(wildcard os/kernel/*.h os/drivers/*.h os/cpu/*.h)
1+
C_SOURCES = $(wildcard os/kernel/*.c os/drivers/*.c os/cpu/*.c os/libc/*.c)
2+
HEADERS = $(wildcard os/kernel/*.h os/drivers/*.h os/cpu/*.h os/libc/*.h)
3+
# Nice syntax for file extension replacement
34
OBJ = ${C_SOURCES:.c=.o os/cpu/interrupt.o}
45

56
CC = /usr/local/i386elfgcc/bin/i386-elf-gcc
67
GDB = /usr/local/i386elfgcc/bin/i386-elf-gdb
78
LD = /usr/local/i386elfgcc/bin/i386-elf-ld
8-
CFLAGS = -g
99

10-
drippleos.bin: bin/bootsect.bin bin/kernel.bin
10+
CFLAGS = -g -m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs \
11+
-Wall -Wextra -Werror
12+
13+
drippleos.bin: bin/bootsect.bin kernel.bin
14+
mv kernel.bin bin/
1115
cat $^ > drippleos.bin
1216

1317
kernel.bin: bin/kernel_entry.o ${OBJ}
@@ -33,4 +37,4 @@ debug: drippleos.bin bin/kernel.elf
3337
nasm $< -f bin -o $@
3438

3539
clean:
36-
rm -rf bin/*.o bin/*.bin os/cpu/*.o *.o *.bin *.elf os/kernel/*.bin os/drivers/*.o drippleos.bin *.dis *.bin
40+
rm -rf bin/*.o bin/*.bin os/cpu/*.o *.o *.bin *.elf os/kernel/*.bin os/drivers/*.o drippleos.bin *.dis *.bin os/lib/*.o os/libc/*.o

β€Žbin/idt.oβ€Ž

40 Bytes
Binary file not shown.

β€Žbin/isr.oβ€Ž

260 Bytes
Binary file not shown.

β€Žbin/kernel.binβ€Ž

256 Bytes
Binary file not shown.

β€Žbin/kernel.oβ€Ž

632 Bytes
Binary file not shown.

β€Žbin/keyboard.oβ€Ž

-2.03 KB
Binary file not shown.

β€Žbin/mem.oβ€Ž

2.35 KB
Binary file not shown.

β€Žbin/ports.oβ€Ž

28 Bytes
Binary file not shown.

β€Žbin/screen.oβ€Ž

752 Bytes
Binary file not shown.

β€Žbin/string.oβ€Ž

3.2 KB
Binary file not shown.

0 commit comments

Comments
Β (0)