1 1.51 riastrad # $NetBSD: Makefile,v 1.51 2014/03/18 18:20:38 riastradh Exp $ 2 1.26 pk 3 1.47 mrg .include <bsd.own.mk> # for MKPIC definition 4 1.48 matt .include <bsd.endian.mk> # for TARGET_ENDIANNESS 5 1.1 pk 6 1.48 matt .if ${MKPIC} != "no" 7 1.50 matt .if (${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm") \ 8 1.50 matt || ${MACHINE_CPU} == "m68k" 9 1.48 matt UUDECODE_FILES= ld.so.${MACHINE_CPU} 10 1.48 matt .else 11 1.48 matt UUDECODE_FILES= ld.so.${MACHINE_ARCH} 12 1.48 matt .endif 13 1.29 fvdl 14 1.48 matt .if exists(${UUDECODE_FILES}.uue) 15 1.29 fvdl FILES= ld.so 16 1.30 tron FILESDIR= /usr/libexec 17 1.29 fvdl FILESMODE= ${BINMODE} 18 1.45 jmc UUDECODE_FILES_RENAME_${UUDECODE_FILES}= ld.so 19 1.29 fvdl 20 1.30 tron all dependall: ${FILES} 21 1.29 fvdl 22 1.48 matt ld.so: ${UUDECODE_FILES} 23 1.29 fvdl 24 1.49 martin .else 25 1.49 martin UUDECODE_FILES= 26 1.20 mrg .endif 27 1.48 matt .endif 28 1.20 mrg 29 1.32 wiz MAN= ld.aout_so.1 30 1.1 pk 31 1.45 jmc .include <bsd.files.mk> 32 1.1 pk .include <bsd.prog.mk> 33