blob: 4ecf53dc9ce6c36314b4446616de34b2d088eb9b [file] [log] [blame]
Szabolcs Nagy78892282018-04-24 17:10:05 +01001# Example config.mk
2#
3# Copyright (c) 2018, Arm Limited.
4# SPDX-License-Identifier: Apache-2.0
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18HOST_CC = gcc
19CC = $(CROSS_COMPILE)gcc
20CFLAGS = -std=c99 -pipe -O3
21CFLAGS += -Wall -Wno-missing-braces -Wno-strict-aliasing -Wno-unused-function
22
23# Use if the target FPU only supports single precision.
24#CFLAGS += WANT_SINGLEPREC
25
26# Use with gcc.
27CFLAGS += -frounding-math -fexcess-precision=standard -fno-stack-protector
28CFLAGS += -ffp-contract=fast
29CFLAGS += -Wno-maybe-uninitialized
30
31# Use with clang.
32#CFLAGS += -DCLANG_EXCEPTIONS
33#CFLAGS += -ffp-contract=fast
34
35# Use for cross compilation with gcc.
36#CROSS_COMPILE = aarch64-none-linux-gnu-
37
38# Use with cross testing.
39#EMULATOR = qemu-aarch64-static
40#EMULATOR = sh -c 'scp $$1 user@host:/dir && ssh user@host /dir/"$$@"' --