199767f8919635c4928607450d9e0abb932109ceToomas Soome# $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.include <src.opts.mk>
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.PATH: ${.CURDIR}/../../common
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLIB= efi_fdt
199767f8919635c4928607450d9e0abb932109ceToomas SoomeINTERNALLIB=
199767f8919635c4928607450d9e0abb932109ceToomas SoomeWARNS?= 6
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSRCS= efi_fdt.c
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -ffreestanding -msoft-float
199767f8919635c4928607450d9e0abb932109ceToomas Soome.if ${MACHINE_CPUARCH} == "aarch64"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -mgeneral-regs-only
199767f8919635c4928607450d9e0abb932109ceToomas Soome.endif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# EFI library headers
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../include
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../include/${MACHINE}
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# libfdt headers
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../../fdt
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Pick up the bootstrap header for some interface items
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomemachine:
199767f8919635c4928607450d9e0abb932109ceToomas Soome ln -sf ${.CURDIR}/../../../${MACHINE}/include machine
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCLEANFILES+= machine
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.include <bsd.lib.mk>
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomebeforedepend ${OBJS}: machine