xref: /illumos-gate/usr/src/boot/sys/boot/efi/Makefile.inc (revision 9890ff83)
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
17PNGLITE=$(SRC)/common/pnglite
18
19# Options used when building app-specific efi components
20# See conf/kern.mk for the correct set of these
21CFLAGS +=	-fPIC -ffreestanding -Wformat -msoft-float
22CFLAGS +=	-mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse
23CFLAGS +=	-mno-avx -fshort-wchar -mno-aes
24CFLAGS +=	-std=gnu99 -Wno-pointer-sign -Wno-empty-body
25
26#CFLAGS +=	-Wsystem-headers -Werror -Wall -Wno-format-y2k -W
27#CFLAGS +=	-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
28#CFLAGS +=	-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
29#CFLAGS +=	-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-cast-qual
30#CFLAGS +=	-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
31#CFLAGS +=	-Wold-style-definition
32
33ASFLAGS +=	-fPIC
34# include ../Makefile.inc
35