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