199767f8919635c4928607450d9e0abb932109ceToomas Soome# $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLIB= ofw
199767f8919635c4928607450d9e0abb932109ceToomas SoomeINTERNALLIB=
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \
199767f8919635c4928607450d9e0abb932109ceToomas Soome ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
199767f8919635c4928607450d9e0abb932109ceToomas Soome ofw_time.c openfirm.c
199767f8919635c4928607450d9e0abb932109ceToomas Soome.PATH: ${.CURDIR}/../../zfs
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSRCS+= devicename_stubs.c
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Pick up the bootstrap header for some interface items
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -ffreestanding
199767f8919635c4928607450d9e0abb932109ceToomas Soome.if ${MACHINE_CPUARCH} == "powerpc"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -msoft-float
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSRCS+= ppc64_elf_freebsd.c
199767f8919635c4928607450d9e0abb932109ceToomas Soome.endif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.ifdef(BOOT_DISK_DEBUG)
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Make the disk code more talkative
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCFLAGS+= -DDISK_DEBUG
199767f8919635c4928607450d9e0abb932109ceToomas Soome.endif
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomemachine:
199767f8919635c4928607450d9e0abb932109ceToomas Soome ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCLEANFILES+= machine
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.include <bsd.lib.mk>
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomebeforedepend ${OBJS}: machine