blob: 6600ad596447d759c2485fff37d9760ad522f73f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# $FreeBSD$
TARGET_TUPLE?= powerpc-unknown-freebsd
.if ${TARGET_ARCH} == "powerpc"
HOST= ${TARGET_TUPLE}
CFLAGS+= -DDEFAULT_EMULATION=\"elf_powerpc\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_powerpc_path= \"${TOOLS_PREFIX}/usr/lib\"
.else
_powerpc_path= \"/usr/cross/powerpc-freebsd/usr/lib\"
.endif
EMS+= ld_elf32ppc_emulation \
ld_ppcmacos_emulation \
ld_ppcnw_emulation \
ld_ppcpe_emulation \
ld_aixrs6_emulation \
ld_rs6000lynx_emulation
LDSCRIPTS+= elf32ppc.x \
elf32ppc.xbn \
elf32ppc.xn \
elf32ppc.xr \
elf32ppc.xs \
elf32ppc.xu \
elf32ppc.xc \
elf32ppc.xsc \
ppcmacos.x \
ppcmacos.xbn \
ppcmacos.xn \
ppcmacos.xr \
ppcmacos.xu \
ppcmacos.xc \
ppcmacos.xsc \
ppcnw.x \
ppcnw.xbn \
ppcnw.xn \
ppcnw.xr \
ppcnw.xu \
ppcnw.xc \
ppcnw.xsc \
ppcpe.x \
ppcpe.xbn \
ppcpe.xn \
ppcpe.xr \
ppcpe.xu \
ppcpe.xc \
ppcpe.xsc \
aixrs6.x \
aixrs6.xbn \
aixrs6.xn \
aixrs6.xr \
aixrs6.xu \
aixrs6.xc \
aixrs6.xsc \
rs6000lynx.x \
rs6000lynx.xbn \
rs6000lynx.xn \
rs6000lynx.xr \
rs6000lynx.xu \
rs6000lynx.xc \
rs6000lynx.xsc
SRCS+= eelf32ppc.c \
eppcmacos.c \
eppcnw.c \
eppcpe.c \
eaixrs6.c \
ers6000lynx.c
CLEANFILES+= eelf32ppc.c \
eppcmacos.c \
eppcnw.c \
eppcpe.c \
eaixrs6.c \
ers6000lynx.c
eelf32ppc.c: emulparams/elf32ppc.sh emultempl/elf32.em scripttempl/elfppc.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
${_powerpc_path} ${HOST} ${TARGET_TUPLE} \
${TARGET_TUPLE} elf32ppc "" elf32ppc
eppcmacos.c: emulparams/ppcmacos.sh emultempl/aix.em scripttempl/aix.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/powerpc_macos/usr/lib ${HOST} \
${TARGET_TUPLE}macos \
${TARGET_TUPLE}macos ppcmacos "" ppcmacos
eppcnw.c: emulparams/ppcnw.sh emultempl/elf32.em scripttempl/nw.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/powerpc_nw/usr/lib ${HOST} ${TARGET_TUPLE}nw \
${TARGET_TUPLE}nw ppcnw "" ppcnw
eppcpe.c: emulparams/ppcpe.sh emultempl/pe.em scripttempl/ppcpe.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/powerpc_pe/usr/lib ${HOST} ${TARGET_TUPLE}pe \
${TARGET_TUPLE}pe ppcpe "" ppcpe
eaixrs6.c: emulparams/aixrs6.sh emultempl/aix.em scripttempl/aix.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/rs6000-lynx/lib ${HOST} aixcoff-rs6000 \
aixcoff-rs6000 aixrs6 "" aixrs6
ers6000lynx.c: emulparams/rs6000lynx.sh emultempl/aix.em scripttempl/aix.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
/usr/cross/rs6000-lynx/lib ${HOST} aixcoff-rs6000 \
aixcoff-rs6000 rs6000lynx "" rs6000lynx
|