Makefile revision 302408
1# $FreeBSD: stable/11/sys/boot/uboot/lib/Makefile 296706 2016-03-11 23:45:51Z bdrewery $ 2 3.include <src.opts.mk> 4 5.PATH: ${.CURDIR}/../../common 6 7LIB= uboot 8INTERNALLIB= 9WARNS?= 2 10 11SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c 12SRCS+= module.c net.c reboot.c time.c 13 14CFLAGS+= -ffreestanding -msoft-float 15 16CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 17 18.if !defined(LOADER_NO_DISK_SUPPORT) 19SRCS+= disk.c 20CFLAGS+= -DLOADER_DISK_SUPPORT 21.endif 22 23.if ${MK_FDT} != "no" 24LOADER_FDT_SUPPORT= yes 25.else 26LOADER_FDT_SUPPORT= no 27.endif 28 29.if ${LOADER_FDT_SUPPORT} == "yes" 30CFLAGS+= -DLOADER_FDT_SUPPORT -I${.CURDIR}/../../fdt 31.endif 32 33# Pick up FDT includes 34CFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/ 35 36# Pick up the bootstrap header for some interface items 37CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. 38 39.ifdef(BOOT_DISK_DEBUG) 40# Make the disk code more talkative 41CFLAGS+= -DDISK_DEBUG 42.endif 43 44machine: .NOMETA 45 ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine 46 47CLEANFILES+= machine 48 49.include <bsd.stand.mk> 50.include <bsd.lib.mk> 51 52beforedepend ${OBJS}: machine 53