blob: 43c758cf08de47037d2baa9b6fe599e4c2aeb451 (
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
CFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only
CFLAGS += $(shell echo ${CONFIG_CFLAGS})
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)
|