aboutsummaryrefslogtreecommitdiff
path: root/i686/toolchain.mk
blob: 1747a8b4f7334c5fb67c2071b961fe2c0ec2a432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

# test framework
GTEST   := $(shell pkg-config --cflags --libs gtest gtest_main)
GMOCK   := $(shell pkg-config --cflags --libs gmock)