1 TARGET_TUPLE?= x86_64-just-dragonfly
3 NATIVE_EMULATION= elf_x86_64
4 X86_EMULATION= elf_i386
5 L1OM_EMULATION= elf_l1om
6 K1OM_EMULATION= elf_k1om
9 emul_FLAGS= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\" \
10 -DTARGET=\"${TARGET_TUPLE}\"
11 emul_FLAGS_FILES= ldmain.c
13 _x86_64_path= ${USRDATA_PREFIX}/lib:${USRDATA_PREFIX}/usr/lib
14 _i386_path= ${USRDATA_PREFIX}/lib/i386:${USRDATA_PREFIX}/usr/lib/i386
16 .for EMUL in ${NATIVE_EMULATION} ${X86_EMULATION} ${L1OM_EMULATION} ${K1OM_EMULATION}
19 CLEANFILES+= e${EMUL}.c
20 . for ext in ${ELF_SCR_EXT}
21 LDSCRIPTS_${EMUL}+= ${EMUL}.${ext}
23 LDSCRIPTS+= ${LDSCRIPTS_${EMUL}}
26 e${NATIVE_EMULATION}.c ${LDSCRIPTS_${NATIVE_EMULATION}}: \
27 emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
28 scripttempl/elf.sc genscripts.sh stringify.sed
29 sh ${SRCDIR}/ld/genscripts.sh \
37 ${NATIVE_EMULATION:Q} \
41 ${NATIVE_EMULATION:Q} \
44 e${X86_EMULATION}.c ${LDSCRIPTS_${X86_EMULATION}}: \
45 emulparams/${X86_EMULATION}.sh emultempl/elf32.em \
46 scripttempl/elf.sc genscripts.sh stringify.sed
47 sh ${SRCDIR}/ld/genscripts.sh \
62 e${L1OM_EMULATION}.c ${LDSCRIPTS_${L1OM_EMULATION}}: \
63 emulparams/${L1OM_EMULATION}.sh emultempl/elf32.em \
64 scripttempl/elf.sc genscripts.sh stringify.sed
65 sh ${SRCDIR}/ld/genscripts.sh \
80 e${K1OM_EMULATION}.c ${LDSCRIPTS_${K1OM_EMULATION}}: \
81 emulparams/${K1OM_EMULATION}.sh emultempl/elf32.em \
82 scripttempl/elf.sc genscripts.sh stringify.sed
83 sh ${SRCDIR}/ld/genscripts.sh \