2000-10-16 10:46:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= ofw
|
2004-10-24 15:33:08 +00:00
|
|
|
INTERNALLIB=
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2002-11-10 19:17:36 +00:00
|
|
|
SRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \
|
|
|
|
ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
|
2001-10-07 13:22:25 +00:00
|
|
|
ofw_time.c openfirm.c
|
2000-10-16 10:46:22 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
|
|
|
|
|
|
|
# Pick up the bootstrap header for some interface items
|
2000-11-10 06:39:58 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2002-02-23 04:36:15 +00:00
|
|
|
CFLAGS+= -ffreestanding
|
2000-11-10 06:39:58 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
CFLAGS+= -msoft-float
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
2000-10-16 10:46:22 +00:00
|
|
|
# Make the disk code more talkative
|
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
.endif
|
|
|
|
|
2000-11-10 06:39:58 +00:00
|
|
|
machine:
|
|
|
|
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
|
|
|
|
|
|
|
|
CLEANFILES+= machine
|
|
|
|
|
2000-10-16 10:46:22 +00:00
|
|
|
.include <bsd.lib.mk>
|
2000-11-10 06:39:58 +00:00
|
|
|
|
|
|
|
beforedepend ${OBJS}: machine
|