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
16 BINDIR= /boot
17
18 # Options used when building app-specific efi components
19 # See conf/kern.mk for the correct set of these
20 CFLAGS += -fPIC -ffreestanding -Wformat -msoft-float
21 CFLAGS += -mno-mmx -mno-3dnow -mno-sse2 -mno-sse3 -mno-sse
22 CFLAGS += -mno-avx -fshort-wchar -mno-aes
23 CFLAGS += -std=gnu99
24
25 CFLAGS += -fident -finline -fno-inline-functions -fno-builtin -fno-asm
26 CFLAGS += -fdiagnostics-show-option -nodefaultlibs
27 CFLAGS += -fno-inline-small-functions -fno-inline-functions-called-once
28 CFLAGS += -fno-ipa-cp
29
30 # -D__sun -Wall -Wextra -std=gnu99 -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused -Wno-empty-body -Wno-parentheses -Wno-uninitialized -Wno-char-subscripts -Wno-unused-variable -Wno-unused-function -Wno-unused-label -Wno-type-limits -Wno-clobbered -Wno-empty-body -Wno-unused-value
31 # -D_BOOT -D_BOOT_TARGET_amd64 -D_MACHDEP -D_I32LPx
32
33 CFLAGS += -Wno-pointer-sign -Wno-empty-body
34
35 #CFLAGS += -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
36 #CFLAGS += -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
37 #CFLAGS += -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
38 #CFLAGS += -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-cast-qual
39 #CFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
40 #CFLAGS += -Wold-style-definition
41
42 ASFLAGS += -fPIC
43 # include ../Makefile.inc