Makefile revision 302408
1# $FreeBSD: stable/11/sys/boot/fdt/Makefile 298821 2016-04-29 22:42:59Z gonzo $ 2 3.PATH: ${.CURDIR}/../../contrib/libfdt/ 4 5LIB= fdt 6INTERNALLIB= 7 8# Vendor sources of libfdt. 9SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \ 10 fdt_empty_tree.c 11 12# Loader's fdt commands extension sources. 13SRCS+= fdt_loader_cmd.c fdt_overlay.c 14 15CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/ 16 17CFLAGS+= -ffreestanding 18 19.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" 20CFLAGS+= -msoft-float 21.endif 22 23.if ${MACHINE_ARCH} == "powerpc64" 24CFLAGS+= -m32 25.endif 26 27CFLAGS+= -Wformat -Wall 28 29.include <bsd.stand.mk> 30.include <bsd.lib.mk> 31