2008-02-16 22:13:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= uboot
|
|
|
|
INTERNALLIB=
|
2008-09-03 15:39:50 +00:00
|
|
|
WARNS?= 2
|
2008-02-16 22:13:11 +00:00
|
|
|
|
|
|
|
SRCS= devicename.c elf_freebsd.c console.c copy.c disk.c \
|
|
|
|
module.c net.c reboot.c time.c glue.c
|
|
|
|
|
2008-03-13 17:54:21 +00:00
|
|
|
CFLAGS+= -ffreestanding -msoft-float
|
2008-02-16 22:13:11 +00:00
|
|
|
|
2008-03-13 17:54:21 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
2008-02-16 22:13:11 +00:00
|
|
|
# Pick up the bootstrap header for some interface items
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
|
|
|
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
|
|
|
# Make the disk code more talkative
|
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
machine:
|
|
|
|
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
|
|
|
|
|
|
|
|
CLEANFILES+= machine
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
beforedepend ${OBJS}: machine
|