Makefile.mips revision 185923
1241279Smarcel# $FreeBSD: head/gnu/usr.bin/binutils/ld/Makefile.mips 185923 2008-12-11 08:18:45Z imp $ 2241279Smarcel 3241279Smarcel#xxxIMPxxx: size? 4241279Smarcel#xxxIMPxxx: TARGET_BIG_ENDIAN is lame. We should use the netbsd convention 5241279Smarcel# of mipsel and mips. 6241279Smarcel_sz?=32 7241279Smarcel.if defined(TARGET_BIG_ENDIAN) 8243115SsjgNATIVE_EMULATION=elf${_sz}btsmip_fbsd 9241279Smarcel.else 10243115SsjgNATIVE_EMULATION=elf${_sz}ltsmip_fbsd 11241279Smarcel.endif 12241279Smarcel 13241279SmarcelSRCS+= e${NATIVE_EMULATION}.c 14241279SmarcelCLEANFILES+= e${NATIVE_EMULATION}.c 15241279Smarcel 16241279Smarcel# nb: elf32 handles both elf32 and elf64 targets 17241279Smarcele${NATIVE_EMULATION}.c: ${.CURDIR}/${NATIVE_EMULATION}.sh emultempl/elf32.em \ 18241279Smarcel scripttempl/elf.sc genscripts.sh stringify.sed 19241279Smarcel sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSERACHPATH} \ 20241279Smarcel ${TOOLS_PREFIX}/usr \ 21241279Smarcel ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \ 22241279Smarcel ${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE} \ 23241279Smarcel ${.CURDIR}/${NATIVE_EMULATION}.sh 24241279Smarcel 25241279Smarcel