1176348Smarcel# $FreeBSD: releng/10.2/sys/boot/uboot/lib/Makefile 275763 2014-12-14 15:33:45Z andrew $ 2176348Smarcel 3265069Sian.include <bsd.own.mk> 4265069Sian 5233287Smarius.PATH: ${.CURDIR}/../../common 6233287Smarius 7176348SmarcelLIB= uboot 8176348SmarcelINTERNALLIB= 9182723SrajWARNS?= 2 10176348Smarcel 11240275SaeSRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c 12233287SmariusSRCS+= module.c net.c reboot.c time.c 13176348Smarcel 14177152SobrienCFLAGS+= -ffreestanding -msoft-float 15177152Sobrien 16176348SmarcelCFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 17208538Sraj 18240275Sae.if !defined(LOADER_NO_DISK_SUPPORT) 19240275SaeSRCS+= disk.c 20240275SaeCFLAGS+= -DLOADER_DISK_SUPPORT 21240275Sae.endif 22240275Sae 23265069Sian.if ${MK_FDT} != "no" 24265069SianLOADER_FDT_SUPPORT= yes 25265069Sian.else 26265069SianLOADER_FDT_SUPPORT= no 27265069Sian.endif 28265069Sian 29265069Sian.if ${LOADER_FDT_SUPPORT} == "yes" 30275763SandrewCFLAGS+= -DLOADER_FDT_SUPPORT -I${.CURDIR}/../../fdt 31265069Sian.endif 32265069Sian 33208538Sraj# Pick up FDT includes 34208538SrajCFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/ 35208538Sraj 36176348Smarcel# Pick up the bootstrap header for some interface items 37176348SmarcelCFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. 38176348Smarcel 39176348Smarcel.ifdef(BOOT_DISK_DEBUG) 40176348Smarcel# Make the disk code more talkative 41176348SmarcelCFLAGS+= -DDISK_DEBUG 42176348Smarcel.endif 43176348Smarcel 44176348Smarcelmachine: 45211680Simp ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine 46176348Smarcel 47176348SmarcelCLEANFILES+= machine 48176348Smarcel 49176348Smarcel.include <bsd.lib.mk> 50176348Smarcel 51176348Smarcelbeforedepend ${OBJS}: machine 52