1# $FreeBSD$ 2 3.include <bsd.init.mk> 4 5.PATH: ${LDRSRC} 6 7LIB= uboot 8WARNS?= 2 9 10SRCS= console.c copy.c devicename.c elf_freebsd.c glue.c 11SRCS+= module.c net.c reboot.c time.c gfx_fb.c 12 13CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite 14CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/teken 15CFLAGS.glue.c+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib 16 17.if ${LOADER_DISK_SUPPORT:Uyes} == "yes" 18SRCS+= disk.c 19.endif 20 21.include "${BOOTSRC}/fdt.mk" 22 23# Pick up the bootstrap header for some interface items 24CFLAGS+= -I${LDRSRC} 25 26.ifdef(BOOT_DISK_DEBUG) 27# Make the disk code more talkative 28CFLAGS+= -DDISK_DEBUG 29.endif 30 31.include <bsd.lib.mk> 32