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