aboutsummaryrefslogtreecommitdiff
path: root/i686/toolchain.mk
blob: 1c0d922a916071ebbab9a79aac06fc382dfd2dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ARCH=i686

# define compiler, linker, archiver and strip and their flags
#
AS      := i686-elf-as
CC      := i686-elf-gcc
CCFLAGS := -Wall -Wextra -Wpedantic -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only
CCFLAGS += $(shell echo ${CONFIG_CCFLAGS})
LD      := i686-elf-ld
LDFLAGS := -static -nostdlib
LDFLAGS += $(shell echo ${CONFIG_LDFLAGS})
AR      := i686-elf-ar
ARFLAGS := -crus
STRIP   := i686-elf-strip