summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/fdt/Makefile
blob: 15862dc2957e36ad28ec5afc33a39a5b638703ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $FreeBSD$

.include <src.opts.mk>

.PATH: ${.CURDIR}/../../common

LIB=		efi_fdt
INTERNALLIB=
WARNS?=		6

SRCS=		efi_fdt.c

CFLAGS+=	-ffreestanding -msoft-float
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+=	-mgeneral-regs-only
.endif

CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/

# EFI library headers
CFLAGS+=	-I${.CURDIR}/../include
CFLAGS+=	-I${.CURDIR}/../include/${MACHINE}

# libfdt headers
CFLAGS+=	-I${.CURDIR}/../../fdt

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.

machine:
	ln -sf ${.CURDIR}/../../../${MACHINE}/include machine

CLEANFILES+=	machine

.include <bsd.lib.mk>

beforedepend ${OBJS}: machine
OpenPOWER on IntegriCloud