1*c0094040Suebayasi# $NetBSD: ldscript.mk,v 1.2 2015/09/06 15:20:59 uebayasi Exp $ 22d76cceaSuebayasi 32d76cceaSuebayasi# Give MD generated ldscript dependency on ${SYSTEM_OBJ} 42d76cceaSuebayasi.if defined(KERNLDSCRIPT) 52d76cceaSuebayasi.if target(${KERNLDSCRIPT}) 6*c0094040Suebayasi${KERNLDSCRIPT}: ${SYSTEM_OBJ:O} 72d76cceaSuebayasi.endif 82d76cceaSuebayasi.endif 92d76cceaSuebayasi 102d76cceaSuebayasi.if defined(KERNLDSCRIPT) 112d76cceaSuebayasi.for k in ${KERNELS} 122d76cceaSuebayasiEXTRA_CLEAN+= ${k}.ldscript 132d76cceaSuebayasi${k}: ${k}.ldscript 142d76cceaSuebayasi${k}.ldscript: ${KERNLDSCRIPT} assym.h 152d76cceaSuebayasi ${_MKTARGET_CREATE} 162d76cceaSuebayasi ${CPP} -I. ${KERNLDSCRIPT} | grep -v '^#' | grep -v '^$$' >$@ 172d76cceaSuebayasi.endfor 182d76cceaSuebayasiLINKSCRIPT= -T ${.TARGET}.ldscript 192d76cceaSuebayasi.endif 20