1# $FreeBSD$ 2 3.include <bsd.init.mk> 4 5.PATH: ${SYSDIR}/contrib/libfdt/ 6 7LIB= fdt 8INTERNALLIB= 9 10# Vendor sources of libfdt. 11SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \ 12 fdt_empty_tree.c 13 14# Loader's fdt commands extension sources. 15SRCS+= fdt_loader_cmd.c fdt_overlay.c 16 17CFLAGS+= -I${SYSDIR}/contrib/libfdt/ -I${LDRSRC} 18 19CFLAGS+= -ffreestanding 20 21.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" 22CFLAGS+= -msoft-float 23.endif 24 25CFLAGS+= -Wformat -Wall 26 27.include <bsd.stand.mk> 28.include <bsd.lib.mk> 29