2022-06-17 00:44:56 +02:00
|
|
|
# CONFIG #
|
|
|
|
|
2022-06-20 14:17:13 +02:00
|
|
|
OS_VERSION = "\"dev\""
|
|
|
|
|
2022-06-17 00:44:56 +02:00
|
|
|
BUILD_DIR ?= $(abspath build/)
|
|
|
|
|
|
|
|
TARGET = i686-elf
|
|
|
|
TARGET_ASM = nasm
|
|
|
|
TARGET_ASMFLAGS =
|
2022-06-20 14:17:13 +02:00
|
|
|
TARGET_CFLAGS = -std=c99 -g -DOS_VERSION=$(OS_VERSION)
|
2022-06-17 00:44:56 +02:00
|
|
|
TARGET_CC = $(TARGET)-gcc
|
|
|
|
TARGET_CXX = $(TARGET)-g++
|
|
|
|
TARGET_LD = $(TARGET)-gcc
|
|
|
|
TARGET_LINKFLAGS =
|
|
|
|
TARGET_LIBS =
|
|
|
|
|
|
|
|
BINUTILS_VERSION = 2.37
|
|
|
|
BINUTILS_URL = https://ftp.gnu.org/gnu/binutils/binutils-$(BINUTILS_VERSION).tar.xz
|
|
|
|
GCC_VERSION = 11.1.0
|
|
|
|
GCC_URL = https://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/gcc-$(GCC_VERSION).tar.gz
|
|
|
|
|
|
|
|
ARROW = "\x1b[32m-->\x1b[0m"
|