1# Example config.mk 2# 3# Copyright (c) 2018, Arm Limited. 4# SPDX-License-Identifier: MIT 5 6HOST_CC = gcc 7HOST_CFLAGS = -std=c99 -O2 8HOST_CFLAGS += -Wall -Wno-unused-function 9 10CC = $(CROSS_COMPILE)gcc 11CFLAGS = -std=c99 -pipe -O3 12CFLAGS += -Wall -Wno-missing-braces 13 14# Enable debug info. 15HOST_CFLAGS += -g 16CFLAGS += -g 17 18# Use if the target FPU only supports single precision. 19#CFLAGS += WANT_SINGLEPREC 20 21# Use with gcc. 22CFLAGS += -frounding-math -fexcess-precision=standard -fno-stack-protector 23CFLAGS += -ffp-contract=fast -fno-math-errno 24 25# Use with clang. 26#CFLAGS += -DCLANG_EXCEPTIONS 27#CFLAGS += -ffp-contract=fast 28 29# Use for cross compilation with gcc. 30#CROSS_COMPILE = aarch64-none-linux-gnu- 31 32# Use with cross testing. 33#EMULATOR = qemu-aarch64-static 34#EMULATOR = sh -c 'scp $$1 user@host:/dir && ssh user@host /dir/"$$@"' -- 35