167204Sobrien# $FreeBSD$ 267204Sobrien 367204SobrienLIB= ofw 4136910SruINTERNALLIB= 567204Sobrien 6106738SjakeSRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \ 7106738Sjake ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ 8170854Smarius ofw_time.c openfirm.c 9235364Savg.PATH: ${.CURDIR}/../../zfs 10235364SavgSRCS+= devicename_stubs.c 1167204Sobrien 1267204SobrienCFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 1367204Sobrien 1467204Sobrien# Pick up the bootstrap header for some interface items 1568548SbennoCFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. 1667204Sobrien 1791115SjakeCFLAGS+= -ffreestanding 18211680Simp.if ${MACHINE_CPUARCH} == "powerpc" 19183198SsobomaxCFLAGS+= -msoft-float 20209920SnwhitehornSRCS+= ppc64_elf_freebsd.c 2168548Sbenno.endif 2268548Sbenno 2368548Sbenno.ifdef(BOOT_DISK_DEBUG) 2467204Sobrien# Make the disk code more talkative 2567204SobrienCFLAGS+= -DDISK_DEBUG 2667204Sobrien.endif 2767204Sobrien 2868548Sbennomachine: 29211680Simp ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine 3068548Sbenno 3168548SbennoCLEANFILES+= machine 3268548Sbenno 3367204Sobrien.include <bsd.lib.mk> 3468548Sbenno 3568548Sbennobeforedepend ${OBJS}: machine 36