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