1# $FreeBSD$ 2 3LIB= ofw 4INTERNALLIB= 5 6SRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \ 7 ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ 8 ofw_time.c openfirm.c 9.PATH: ${.CURDIR}/../../zfs 10SRCS+= devicename_stubs.c 11 12CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 13 14# Pick up the bootstrap header for some interface items 15CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. 16 17CFLAGS+= -ffreestanding 18.if ${MACHINE_CPUARCH} == "powerpc" 19CFLAGS+= -msoft-float 20SRCS+= ppc64_elf_freebsd.c 21.endif 22 23.ifdef(BOOT_DISK_DEBUG) 24# Make the disk code more talkative 25CFLAGS+= -DDISK_DEBUG 26.endif 27 28machine: 29 ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine 30 31CLEANFILES+= machine 32 33.include <bsd.lib.mk> 34 35beforedepend ${OBJS}: machine 36