reorganize

This commit is contained in:
rami 2024-05-26 15:54:00 -04:00
parent 997eb2582e
commit 99ed9c37db
16 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
CC = i686-elf-gcc CC = i686-elf-gcc
INCLUDE = -I./include -I./lib INCLUDE = -I./include -I./lib
CFLAGS = -Wall -Wextra -Werror -ffreestanding $(INCLUDE) CFLAGS = -Wall -Wextra -Werror -ffreestanding $(INCLUDE)
LDFLAGS = -T kernel/kernel.ld -ffreestanding -O3 -nostdlib -lgcc LDFLAGS = -T src/kernel.ld -ffreestanding -O3 -nostdlib -lgcc
BUILDDIR = build BUILDDIR = build
KERNELSRC := $(shell find ./kernel -name '*.c' -o -name '*.asm') KERNELSRC := $(shell find ./src -name '*.c' -o -name '*.asm')
KERNELOBJ := $(addprefix $(BUILDDIR)/, \ KERNELOBJ := $(addprefix $(BUILDDIR)/, \
$(notdir \ $(notdir \
$(patsubst %.c,%.o,\ $(patsubst %.c,%.o,\