make hell
This commit is contained in:
parent
c8ab919c11
commit
60d7e2d421
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
*.o
|
||||
obj
|
||||
|
18
Makefile
18
Makefile
@ -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
1
sys/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include drv/vga/Makefile
|
@ -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.
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user