blob: ec201abbf23c00bb104b2c0d7517e49c61976e00 (
plain) (
blame)
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
38
39
|
# $FreeBSD$
.include <src.opts.mk>
.PATH: ${.CURDIR}/../../common
LIB= efi_fdt
INTERNALLIB=
WARNS?= 6
SRCS= efi_fdt.c
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -mgeneral-regs-only
.else
CFLAGS+= -msoft-float
.endif
CFLAGS+= -I${SASRC}
# 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: .NOMETA
ln -sf ${.CURDIR}/../../../${MACHINE}/include machine
CLEANFILES+= machine
.include <bsd.lib.mk>
beforedepend ${OBJS}: machine
|