1 .include "../Makefile.block1"
6 CONTRIBDIR= ${SRCDIR}/bfd
9 CFLAGS+= -I${SRCDIR}/include -I${CONTRIBDIR} -I${.CURDIR} -I${.OBJDIR}
10 CFLAGS+= -DDEBUGDIR='"/usr/lib/debug"' # no clue why this is needed
14 SRCS= archive.c archures.c bfd.c bfdio.c bfdwin.c \
15 cache.c coffgen.c corefile.c \
16 format.c init.c libbfd.c opncls.c reloc.c \
17 section.c syms.c targets.c hash.c linker.c \
18 srec.c binary.c tekhex.c ihex.c stabs.c stab-syms.c \
19 merge.c dwarf2.c simple.c compress.c verilog.c
21 # from Makefile, BFD64_BACKENDS_CFILES (x86-64 specific)
22 SRCS+= elf64-x86-64.c elf-ifunc.c elf-nacl.c elf64.c elf.c elflink.c \
23 elf-attrs.c elf-strtab.c elf-eh-frame.c dwarf1.c elf32-i386.c \
24 elf-vxworks.c elf32.c elf64-gen.c elf32-gen.c
27 SRCS+= cpu-i386.c cpu-l1om.c cpu-k1om.c
32 VECTORS= x86_64_elf64_vec \
41 DEFAULT_VECTOR= x86_64_elf64_vec
42 ARCHITECTURES= bfd_i386_arch bfd_l1om_arch bfd_k1om_arch
46 target_FLAGS+= -DHAVE_${_v}
52 target_FLAGS+= -DSELECT_VECS='${_selvec}'
53 target_FLAGS+= -DSELECT_ARCHITECTURES='${ARCHITECTURES:S/^/\&/:S/$/,/} 0'
54 target_FLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
55 target_FLAGS_FILES= targets.c archures.c
58 targets.c: targmatch.h
59 elf32-gen.c elf32-i386.c elf64-x86-64.c: elf32-target.h
60 elf64-gen.c elf64-x86-64.c: elf64-target.h
61 cache.c elf32-i386.c elf64-x86-64.c: bfd_stdint.h
66 targmatch.h: config.bfd targmatch.sed
67 sed -f ${CONTRIBDIR}/targmatch.sed < ${CONTRIBDIR}/config.bfd \
70 elf32-target.h: elfxx-target.h
71 sed -e s/NN/32/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET}
72 elf64-target.h: elfxx-target.h
73 sed -e s/NN/64/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET}
75 CLEANFILES= bfd_stdint.h bfd.h elf64-target.h elf32-target.h targmatch.h