]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/fdt/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / fdt / Makefile
1 # $FreeBSD$
2
3 .PATH:          ${.CURDIR}/../../contrib/libfdt/
4
5 LIB=            fdt
6 INTERNALLIB=
7
8 # Vendor sources of libfdt.
9 SRCS+=          fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
10
11 # Loader's fdt commands extension sources.
12 SRCS+=          fdt_loader_cmd.c
13
14 CFLAGS+=        -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/ \
15                 -I${.CURDIR}/../uboot/lib
16
17 CFLAGS+=        -ffreestanding
18
19 .if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
20 CFLAGS+=        -msoft-float
21 .endif
22
23 .if ${MACHINE_ARCH} == "powerpc64"
24 CFLAGS+=        -m32
25 .endif
26
27 CFLAGS+=        -Wformat -Wall
28
29 .include <bsd.lib.mk>