Makefile.amd64 revision 114050
1# $FreeBSD: head/gnu/usr.bin/binutils/libbfd/Makefile.amd64 114050 2003-04-26 03:28:21Z obrien $
2
3.include "${.CURDIR}/Makefile.i386"
4
5#	Get the i386 DEFAULT_VECTOR and VECS.
6I386_VECS:=	${DEFAULT_VECTOR} ${VECS}
7
8DEFAULT_VECTOR=	bfd_elf64_x86_64_vec
9
10VECS=	bfd_elf64_x86_64_vec ${I386_VECS}
11
12SRCS+=	elf64-amd64-fbsd.c elf64-target.h elf64-gen.c elf64.c
13
14CLEANFILES+=	elf64-target.h
15
16elf64-target.h:	elfxx-target.h
17	sed -e s/NN/64/g ${.ALLSRC} > ${.TARGET}
18
19CLEANFILES+=	elf64-amd64-fbsd.c
20
21elf64-amd64-fbsd.c: ${.CURDIR}/elf-fbsd-brand.c ${SRCDIR}/bfd/elf64-x86-64.c
22	cat ${.ALLSRC:M*elf-fbsd-brand.c} > ${.TARGET}
23	echo "#define elf_backend_post_process_headers elf_fbsd_post_process_headers" \
24	    >> ${.TARGET}
25	cat ${.ALLSRC:M*elf64-x86-64.c} >> ${.TARGET}
26