xref: /illumos-gate/usr/src/boot/sys/boot/efi/Makefile.inc (revision 83b4671e)
1#
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
5# 1.0 of the CDDL.
6#
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.
10#
11
12#
13# Copyright 2015 Toomas Soome <tsoome@me.com>
14#
15
16BINDIR=	/boot
17
18# Options used when building app-specific efi components
19# See conf/kern.mk for the correct set of these
20CFLAGS +=	-fPIC -ffreestanding -Wformat -msoft-float
21CFLAGS +=	-mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse
22CFLAGS +=	-mno-avx -fshort-wchar -mno-aes
23CFLAGS +=	-std=gnu99 -Wno-pointer-sign -Wno-empty-body
24
25#CFLAGS +=	-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
26#CFLAGS +=	-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
27#CFLAGS +=	-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
28#CFLAGS +=	-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-cast-qual
29#CFLAGS +=	-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
30#CFLAGS +=	-Wold-style-definition
31
32ASFLAGS +=	-fPIC
33# include ../Makefile.inc
34