2010-05-25 15:21:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libfdt/
|
|
|
|
|
|
|
|
LIB= fdt
|
|
|
|
INTERNALLIB=
|
|
|
|
|
|
|
|
# Vendor sources of libfdt.
|
|
|
|
SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
|
|
|
|
|
|
|
|
# Loader's fdt commands extension sources.
|
|
|
|
SRCS+= fdt_loader_cmd.c
|
|
|
|
|
2014-11-01 17:12:44 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/
|
2010-05-25 15:21:39 +00:00
|
|
|
|
|
|
|
CFLAGS+= -ffreestanding
|
|
|
|
|
2014-02-23 22:12:25 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
|
2010-05-25 15:21:39 +00:00
|
|
|
CFLAGS+= -msoft-float
|
|
|
|
.endif
|
|
|
|
|
2010-07-12 00:49:22 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
CFLAGS+= -m32
|
|
|
|
.endif
|
|
|
|
|
2010-05-25 15:21:39 +00:00
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|