b9b9a7c3a2
always include it. Remove places where we explicitly include it. This also helps reduce the 'cut-and-paste' factor of these Makefiles. Sponsored by: Netflix
31 lines
629 B
Makefile
31 lines
629 B
Makefile
# $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 \
|
|
fdt_empty_tree.c
|
|
|
|
# Loader's fdt commands extension sources.
|
|
SRCS+= fdt_loader_cmd.c fdt_overlay.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/
|
|
|
|
CFLAGS+= -ffreestanding
|
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
|
|
CFLAGS+= -msoft-float
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
CFLAGS+= -m32
|
|
.endif
|
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
.include <bsd.stand.mk>
|
|
.include <bsd.lib.mk>
|