]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/efi/fdt/Makefile
MFC r325834,r325997,326502: Move sys/boot to stand/
[FreeBSD/FreeBSD.git] / stand / efi / fdt / Makefile
1 # $FreeBSD$
2
3 .include <bsd.init.mk>
4
5 .PATH: ${LDRSRC}
6
7 LIB=            efi_fdt
8 INTERNALLIB=
9 WARNS?=         6
10
11 SRCS=           efi_fdt.c
12
13 CFLAGS+=        -ffreestanding
14 .if ${MACHINE_CPUARCH} == "aarch64"
15 CFLAGS+=        -mgeneral-regs-only
16 .else
17 CFLAGS+=        -msoft-float
18 .endif
19
20 # EFI library headers
21 CFLAGS+=        -I${EFISRC}/include
22 CFLAGS+=        -I${EFISRC}/include/${MACHINE}
23
24 # libfdt headers
25 CFLAGS+=        -I${FDTSRC}
26
27 # Pick up the bootstrap header for some interface items
28 CFLAGS+=        -I${LDRSRC}
29
30 .include <bsd.lib.mk>