2021-02-03 15:59:42 +01:00
|
|
|
OBJS = kernel_main.o
|
|
|
|
|
2021-02-04 15:27:55 +01:00
|
|
|
CC = i686-elf-gcc # cross-compiler
|
2021-02-03 15:59:42 +01:00
|
|
|
CFLAGS = -m32 -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
|
|
|
|
|
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
|
|
|
|
%.o: %.c
|
2021-02-04 15:27:55 +01:00
|
|
|
@$(CC) $(CFLAGS) $< -o $@
|
|
|
|
@echo [CC] Compiling $<...
|