2000-10-16 10:46:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
2000-10-16 10:46:22 +00:00
|
|
|
LIB= ofw
|
|
|
|
|
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 \
|
2007-06-17 00:17:15 +00:00
|
|
|
ofw_time.c openfirm.c
|
2017-10-30 23:14:59 +00:00
|
|
|
.PATH: ${ZFSSRC}
|
2012-05-12 20:27:33 +00:00
|
|
|
SRCS+= devicename_stubs.c
|
2000-10-16 10:46:22 +00:00
|
|
|
|
|
|
|
# Pick up the bootstrap header for some interface items
|
2017-11-10 23:54:58 +00:00
|
|
|
CFLAGS+= -I${LDRSRC}
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2010-08-23 01:50:34 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
2010-07-12 00:49:22 +00:00
|
|
|
SRCS+= ppc64_elf_freebsd.c
|
2000-11-10 06:39:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
2000-10-16 10:46:22 +00:00
|
|
|
# Make the disk code more talkative
|
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|