blob: 868a5f126a68dddd144875b24b36d4f494c8e353 (
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
|
# $FreeBSD$
DEFAULT_VECTOR= bfd_elf64_sparc_vec
SRCS+= aout32.c \
cpu-sparc.c \
elf32-sparc.c \
elf32-target.h \
elf32.c \
elf64-sparc%FIXED.c \
elf64-target.h \
elf64.c \
elflink.c \
sparcnetbsd.c \
sunos.c
VECS= ${DEFAULT_VECTOR} bfd_elf32_sparc_vec sparcnetbsd_vec sunos_big_vec
.if ${TARGET_ARCH} == "sparc64"
CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
.endif
CLEANFILES+= elf32-target.h elf64-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}
elf64-target.h: elfxx-target.h
sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
CLEANFILES+= elf64-sparc%FIXED.c
elf64-sparc%FIXED.c: elf64-sparc.c elf64-sparc.c-bad-rtld.diff
cp ${.ALLSRC:M*.c} ${.TARGET}
patch -b .orig < ${.ALLSRC:M*.diff}
|