2000-10-16 06:46:22 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
LIB= ofw
|
2004-10-24 11:33:08 -04:00
|
|
|
INTERNALLIB=
|
2000-10-16 06:46:22 -04:00
|
|
|
|
2002-11-10 14:17:36 -05: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 \
|
2007-06-16 20:17:15 -04:00
|
|
|
ofw_time.c openfirm.c
|
2000-10-16 06:46:22 -04:00
|
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
|
|
|
|
|
|
|
|
|
# Pick up the bootstrap header for some interface items
|
2000-11-10 01:39:58 -05:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
2000-10-16 06:46:22 -04:00
|
|
|
|
2002-02-22 23:36:15 -05:00
|
|
|
CFLAGS+= -ffreestanding
|
2010-08-22 21:50:34 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
2008-09-19 15:49:58 -04:00
|
|
|
CFLAGS+= -msoft-float
|
2010-07-11 20:49:22 -04:00
|
|
|
SRCS+= ppc64_elf_freebsd.c
|
2000-11-10 01:39:58 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
2000-10-16 06:46:22 -04:00
|
|
|
# Make the disk code more talkative
|
|
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
|
.endif
|
|
|
|
|
|
2000-11-10 01:39:58 -05:00
|
|
|
machine:
|
2010-08-22 21:50:34 -04:00
|
|
|
ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
|
2000-11-10 01:39:58 -05:00
|
|
|
|
|
|
|
|
CLEANFILES+= machine
|
|
|
|
|
|
2000-10-16 06:46:22 -04:00
|
|
|
.include <bsd.lib.mk>
|
2000-11-10 01:39:58 -05:00
|
|
|
|
|
|
|
|
beforedepend ${OBJS}: machine
|