summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/Makefile.inc
blob: 7446d31043ae63fee8c8ab3a57b9dda9f83538f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $FreeBSD$

BINDIR?=	/boot

.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+=        -march=i386
.endif

.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+=        -m32
ACFLAGS+=       -m32
LDFLAGS+=       -m elf_i386_fbsd
AFLAGS+=        --32
.endif

# Options used when building app-specific efi components
CFLAGS+=	-ffreestanding -fshort-wchar -Wformat
LDFLAGS+=	-nostdlib

.include "../Makefile.inc"
OpenPOWER on IntegriCloud