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,10 +1,11 @@
OBJS = shell.o fetch.o
VER := $(shell git rev-parse --short HEAD)
CC = x86_64-elf-gcc # cross-compiler
CFLAGS = -DDEFAULT_USER=root -DDEFAULT_HOSTNAME=vulcan -DVULCAN_VERSION=$(VER) -m32 -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
CC = i686-elf-gcc # cross-compiler
CFLAGS = -m32 -DDEFAULT_USER=root -DDEFAULT_HOSTNAME=vulcan -DVULCAN_VERSION=$(VER) -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
all:${OBJS}
%.o: %.c
$(CC) $(CFLAGS) $< -o $@
@$(CC) $(CFLAGS) $< -o $@
@echo [CC] Compiling $<...