2000-10-16 10:46:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= ofw
|
|
|
|
NOPIC= true
|
|
|
|
NOPROFILE= true
|
|
|
|
INTERNALLIB= true
|
|
|
|
INTERNALSTATICLIB= true
|
|
|
|
|
2001-10-07 13:22:25 +00:00
|
|
|
SRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_devsearch.c \
|
|
|
|
ofw_disk.c ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
|
|
|
|
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
|
|
|
|
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
|