2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Toomas Soome <tsoome@me.com>
18 # Options used when building app-specific efi components
19 # See conf/kern.mk for the correct set of these
20 CFLAGS += -m64 -fPIC -ffreestanding -Wformat -msoft-float
21 CFLAGS += -mno-mmx -mno-sse -mno-avx -fshort-wchar -mno-red-zone -mno-aes
22 CFLAGS += -std=gnu99 -Wno-pointer-sign -Wno-empty-body
24 #CFLAGS += -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
25 #CFLAGS += -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
26 #CFLAGS += -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
27 #CFLAGS += -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-cast-qual
28 #CFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
29 #CFLAGS += -Wold-style-definition
31 # include ../Makefile.inc