]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/uboot/lib/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / uboot / lib / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../common
4
5 LIB=            uboot
6 INTERNALLIB=
7 WARNS?=         2
8
9 SRCS=   crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c
10 SRCS+=  module.c net.c reboot.c time.c
11
12 CFLAGS+=        -ffreestanding -msoft-float
13
14 CFLAGS+=        -I${.CURDIR}/../../../../lib/libstand/
15
16 .if !defined(LOADER_NO_DISK_SUPPORT)
17 SRCS+=  disk.c
18 CFLAGS+= -DLOADER_DISK_SUPPORT
19 .endif
20
21 # Pick up FDT includes
22 CFLAGS+=        -I${.CURDIR}/../../../../sys/contrib/libfdt/
23
24 # Pick up the bootstrap header for some interface items
25 CFLAGS+=        -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
26
27 .ifdef(BOOT_DISK_DEBUG)
28 # Make the disk code more talkative
29 CFLAGS+= -DDISK_DEBUG
30 .endif
31
32 machine:
33         ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
34
35 CLEANFILES+=    machine
36
37 .include <bsd.lib.mk>
38
39 beforedepend ${OBJS}: machine