1999-11-06 22:52:33 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
1999-12-17 15:50:45 +00:00
|
|
|
.if ${TARGET_ARCH} == "m68k"
|
1999-11-07 06:01:35 +00:00
|
|
|
HOST= m68k-unknown-freebsd
|
1999-11-06 22:52:33 +00:00
|
|
|
CFLAGS+= -DDEFAULT_EMULATION=\"elf_m68k\"
|
1999-11-07 06:01:35 +00:00
|
|
|
CFLAGS+= -DTARGET=\"m68k-unknown-freebsd\"
|
1999-11-06 22:52:33 +00:00
|
|
|
_m68k_path= \"/usr/lib\"
|
|
|
|
.else
|
1999-11-07 06:01:35 +00:00
|
|
|
_m68k_path= \"/usr/cross/m68k-freebsd/usr/lib\"
|
1999-11-06 22:52:33 +00:00
|
|
|
.endif
|
|
|
|
EMS+= ld_m68kelf_emulation \
|
|
|
|
ld_m68klynx_emulation \
|
|
|
|
ld_m68knbsd_emulation
|
|
|
|
LDSCRIPTS+= m68kelf.x \
|
|
|
|
m68kelf.xbn \
|
|
|
|
m68kelf.xn \
|
|
|
|
m68kelf.xr \
|
|
|
|
m68kelf.xs \
|
|
|
|
m68kelf.xu \
|
|
|
|
m68klynx.x \
|
|
|
|
m68klynx.xbn \
|
|
|
|
m68klynx.xn \
|
|
|
|
m68klynx.xr \
|
|
|
|
m68klynx.xu \
|
|
|
|
m68knbsd.x \
|
|
|
|
m68knbsd.xbn \
|
|
|
|
m68knbsd.xn \
|
|
|
|
m68knbsd.xr \
|
|
|
|
m68knbsd.xu
|
|
|
|
SRCS+= em68kelf.c \
|
|
|
|
em68klynx.c \
|
|
|
|
em68knbsd.c
|
|
|
|
CLEANFILES+= em68kelf.c \
|
|
|
|
em68klynx.c \
|
|
|
|
em68knbsd.c
|
|
|
|
|
|
|
|
em68kelf.c: emulparams/m68kelf.sh emultempl/elf32.em \
|
2000-11-25 13:56:28 +00:00
|
|
|
scripttempl/elf.sc genscripts.sh stringify.sed
|
1999-11-06 22:52:33 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
|
|
|
|
${_m68k_path} notused notused notused m68kelf "" m68kelf
|
|
|
|
|
|
|
|
em68klynx.c: emulparams/m68klynx.sh emultempl/generic.em \
|
2000-11-25 13:56:28 +00:00
|
|
|
scripttempl/m68klynx.sc genscripts.sh stringify.sed
|
1999-11-06 22:52:33 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
|
|
|
|
/usr/cross/m68k-lynx/usr/lib notused notused notused \
|
|
|
|
m68klynx "" m68klynx
|
|
|
|
|
|
|
|
em68knbsd.c: emulparams/m68knbsd.sh emultempl/generic.em \
|
2000-11-25 13:56:28 +00:00
|
|
|
scripttempl/aout.sc genscripts.sh stringify.sed
|
1999-11-06 22:52:33 +00:00
|
|
|
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
|
|
|
|
/usr/cross/m68k-netbsdaout/usr/lib notused notused notused \
|
|
|
|
m68knbsd "" m68knbsd
|