Makefile revision 233287
1# $FreeBSD: head/sys/boot/uboot/lib/Makefile 233287 2012-03-21 20:53:47Z marius $
2
3.PATH: ${.CURDIR}/../../common
4
5LIB=		uboot
6INTERNALLIB=
7WARNS?=		2
8
9SRCS=	crc32.c console.c copy.c devicename.c disk.c elf_freebsd.c glue.c
10SRCS+=	module.c net.c reboot.c time.c
11
12CFLAGS+=	-ffreestanding -msoft-float
13
14CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
15
16# Pick up FDT includes
17CFLAGS+=	-I${.CURDIR}/../../../../sys/contrib/libfdt/
18
19# Pick up the bootstrap header for some interface items
20CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
21
22.ifdef(BOOT_DISK_DEBUG)
23# Make the disk code more talkative
24CFLAGS+= -DDISK_DEBUG
25.endif
26
27machine:
28	ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
29
30CLEANFILES+=	machine
31
32.include <bsd.lib.mk>
33
34beforedepend ${OBJS}: machine
35