aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config
blob: 47176b4c646518f064b2d940e6f55d5bdca4577b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#
# Toolchain
#
CONFIG_CCFLAGS="-g"
CONFIG_LDFLAGS=""
# end of Toolchain

#
# Target
#
CONFIG_ARCH_i686=y
# end of Target

#
# Devices
#
CONFIG_PIC_8259=y
CONFIG_UART_16550=y
CONFIG_VGA_TEXT_MODE=y
CONFIG_KB_PS2=y
# end of Devices

# toolchain.mk
ARCH=i686

# define compiler, linker, archiver and strip and their flags
#
AS      := i686-elf-as
CC      := i686-elf-gcc
CCFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -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)