# # Automatically generated file; DO NOT EDIT. # Main menu # # # Toolchain # CONFIG_CFLAGS="-g -Og" CONFIG_CXXFLAGS="-g -Og" 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 ${ARCH}_AS := i686-elf-as ${ARCH}_CC := i686-elf-gcc -ansi ${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1) ${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \ -D__ARCH__="${ARCH}" -ffreestanding -mgeneral-regs-only \ $(shell echo ${CONFIG_CFLAGS}) ${ARCH}_LD := i686-elf-ld ${ARCH}_LDID := $(shell ${${ARCH}_LD} --version | head -n1) ${ARCH}_LDFLAGS := -static -nostdlib \ $(shell echo ${CONFIG_LDFLAGS}) ${ARCH}_AR := i686-elf-ar ${ARCH}_ARFLAGS := -crus ${ARCH}_STRIP := i686-elf-strip # define compiler and flags for test targets HOST_CC := gcc HOST_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion \ ${CFLAGS} HOST_CXX := g++ HOST_CXXFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -g -Og \ $(shell pkg-config --cflags gtest gtest_main gmock) \ ${CXXFLAGS} HOST_LDFLAGS := $(shell pkg-config --libs gtest gtest_main gmock) # emulator name and flags QEMU := qemu-system-i386 -accel kvm -machine pc