Makefile revision 265420
1# $FreeBSD: head/sys/boot/uboot/lib/Makefile 265420 2014-05-06 04:22:01Z imp $ 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 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: 45 ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine 46 47CLEANFILES+= machine 48 49.include <bsd.lib.mk> 50 51beforedepend ${OBJS}: machine 52