Reverted to x86, refactored Makefile sysstem.

This commit is contained in:
Marco Cetica
2021-02-04 15:27:55 +01:00
parent 634393b141
commit 8b96940519
15 changed files with 123 additions and 251 deletions

View File

@@ -1,9 +1,10 @@
OBJS = paging.o kheap.o ordered_array.o
CC = x86_64-elf-gcc # cross-compiler
CC = i686-elf-gcc # cross-compiler
CFLAGS = -m32 -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
all:${OBJS}
%.o: %.c
${CC} ${CFLAGS} $< -o $@
@${CC} ${CFLAGS} $< -o $@
@echo [CC] Compiling $<...