9dbb1b6e7d
o Move the API prototypes to a separate header (glue.h) o Allow the platform to hint libuboot about where to look for the API signature. The uboot_address variable is expected to be defined by the platform.
29 lines
578 B
Makefile
29 lines
578 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= uboot
|
|
INTERNALLIB=
|
|
|
|
SRCS= devicename.c elf_freebsd.c console.c copy.c disk.c \
|
|
module.c net.c reboot.c time.c glue.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
|
|
|
# Pick up the bootstrap header for some interface items
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
|
|
|
CFLAGS+= -ffreestanding -msoft-float
|
|
|
|
.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
|