make hell

This commit is contained in:
spikey 2024-02-17 17:53:35 -05:00
parent c8ab919c11
commit 60d7e2d421
6 changed files with 11 additions and 16 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
*.o
obj

View File

@ -1,15 +1,9 @@
SRC=$(wildcard src/*.c)
BOOT=$(wildcard boot/*.s)
INCLUDE=include/
FLAGS=-g -Wall -Wextra -Ffreestanding -m32
BIN=boot.img
include sys/Makefile
CC=cc
all: boot
$(CC) $(FLAGS) $(SRC) -I $(INCLUDE) -o $(BIN)
boot:
nasm -Fl32
install: all
./installgrub.sh
all: vga.o
$(CC) sys/drv/vga/vga.o

1
sys/Makefile Normal file
View File

@ -0,0 +1 @@
include drv/vga/Makefile

View File

@ -3,7 +3,7 @@ FLAGS=-Wall -c -g -Wextra -ffreestanding -m32 -nostdlib
SRCS=$(wildcard *.c)
INCLUDE=include/
MAIN_INCLUDE=../../include/
BIN=vga.o
BIN=../../../obj/drv/vga.o
all:
$(CC) $(FLAGS) -I $(INCLUDE) -I $(MAIN_INCLUDE) $(SRCS) -o $(BIN)

Binary file not shown.

View File

@ -17,6 +17,6 @@ vga_write(s8 *sequence, s8 flags)
void vga_clearscreen() {
for (int i = 0; i <= SIZE; i++) {
VGA_START[i] = 0;
vga_vidmem[i] = 0;
}
}
}