aboutsummaryrefslogblamecommitdiff
path: root/stand/uboot/lib/Makefile
blob: e5d35de59ffd718f14c11778be8a88ac9577bc27 (plain) (tree)
1
2
3
4
5
6
7
8
9

           
                      
 
                
 
                     
                 
 
                                                          
                                                    
 
                                                                         

                                                          



                                        
                                   
 
                                                       
                           
 




                                   
                     
# $FreeBSD$

.include <bsd.init.mk>

.PATH: ${LDRSRC}

LIB=		uboot
WARNS?=		2

SRCS=	console.c copy.c devicename.c elf_freebsd.c glue.c
SRCS+=	module.c net.c reboot.c time.c gfx_fb_stub.c

CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
CFLAGS.glue.c+=	-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib

.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
SRCS+= disk.c
.endif

.include	"${BOOTSRC}/fdt.mk"

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${LDRSRC}

.ifdef(BOOT_DISK_DEBUG)
# Make the disk code more talkative
CFLAGS+= -DDISK_DEBUG
.endif

.include <bsd.lib.mk>