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