Makefile revision 240275
1# $FreeBSD: head/sys/boot/uboot/lib/Makefile 240275 2012-09-09 11:34:27Z ae $
2
3.PATH: ${.CURDIR}/../../common
4
5LIB=		uboot
6INTERNALLIB=
7WARNS?=		2
8
9SRCS=	crc32.c console.c copy.c devicename.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.if !defined(LOADER_NO_DISK_SUPPORT)
17SRCS+=	disk.c
18CFLAGS+= -DLOADER_DISK_SUPPORT
19.endif
20
21# Pick up FDT includes
22CFLAGS+=	-I${.CURDIR}/../../../../sys/contrib/libfdt/
23
24# Pick up the bootstrap header for some interface items
25CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
26
27.ifdef(BOOT_DISK_DEBUG)
28# Make the disk code more talkative
29CFLAGS+= -DDISK_DEBUG
30.endif
31
32machine:
33	ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
34
35CLEANFILES+=	machine
36
37.include <bsd.lib.mk>
38
39beforedepend ${OBJS}: machine
40