1# 2# $FreeBSD: head/gnu/usr.bin/binutils/libbfd/Makefile 60777 2000-05-22 08:09:42Z obrien $ 3#
| 1# $FreeBSD: head/gnu/usr.bin/binutils/libbfd/Makefile 84902 2001-10-14 00:58:59Z obrien $
|
4 5.include "../Makefile.inc0" 6 7.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes 8
| 2 3.include "../Makefile.inc0" 4 5.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes 6
|
9LIB= bfd 10SRCS+= archive.c archures.c bfd.c binary.c cache.c \ 11 coffgen.c corefile.c elf.c format.c hash.c ihex.c \ 12 init.c libbfd.c linker.c opncls.c reloc.c section.c \ 13 srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \ 14 targmatch.h dwarf1.c dwarf2.c 15CFLAGS+= -I${SRCDIR}/bfd 16CFLAGS+= -DBFD_VERSION=\"${VERSION}\"
| 7LIB= bfd 8SRCS+= archive.c archures.c bfd.c binary.c cache.c \ 9 coffgen.c corefile.c elf.c format.c hash.c ihex.c \ 10 init.c libbfd.c linker.c opncls.c reloc.c section.c \ 11 srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \ 12 targmatch.h dwarf1.c dwarf2.c 13CFLAGS+= -I${SRCDIR}/bfd 14CFLAGS+= -DBFD_VERSION=\"${VERSION}\"
|
17NOPROFILE= true 18NOPIC= true 19INTERNALLIB= true 20INTERNALSTATICLIB=true 21CLEANFILES+= targmatch.h 22 23# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU 24# binutils release. FreeBSD only distributes the bits that are required to 25# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
| 15NOPROFILE= true 16NOPIC= true 17INTERNALLIB= true 18INTERNALSTATICLIB=true 19CLEANFILES+= targmatch.h 20 21# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU 22# binutils release. FreeBSD only distributes the bits that are required to 23# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
|
26.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) 27.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes 28CFLAGS+= -I${BINUTILSDISTDIR}/bfd 29CFLAGS+= -I${BINUTILSDISTDIR}/include
| 24.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR}) 25.PATH: ${BINUTILSDISTDIR}/bfd ${BINUTILSDISTDIR}/opcodes 26CFLAGS+= -I${BINUTILSDISTDIR}/bfd 27CFLAGS+= -I${BINUTILSDISTDIR}/include
|
30.endif 31 32SELARCH= 33.if ${BINUTIL_ARCH} == "sparc64"
| 28.endif 29 30SELARCH= 31.if ${BINUTIL_ARCH} == "sparc64"
|
34SELARCH=&bfd_sparc_arch
| 32SELARCH= &bfd_sparc_arch
|
35.else 36.for _a in ${ARCHS} 37.if ${SELARCH} == ""
| 33.else 34.for _a in ${ARCHS} 35.if ${SELARCH} == ""
|
38SELARCH+=&bfd_${_a}_arch
| 36SELARCH+= &bfd_${_a}_arch
|
39.else
| 37.else
|
40SELARCH+=,&bfd_${_a}_arch
| 38SELARCH+= ,&bfd_${_a}_arch
|
41.endif 42.endfor 43.endif
| 39.endif 40.endfor 41.endif
|
44CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
| 42CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
|
45 46SELVEC= 47.for _v in ${VECS} 48.if ${SELVEC} == ""
| 43 44SELVEC= 45.for _v in ${VECS} 46.if ${SELVEC} == ""
|
49SELVEC+=&${_v}
| 47SELVEC+= &${_v}
|
50.else
| 48.else
|
51SELVEC+=,&${_v}
| 49SELVEC+= ,&${_v}
|
52.endif 53.endfor
| 50.endif 51.endfor
|
54CFLAGS+= -DSELECT_VECS="${SELVEC}"
| 52CFLAGS+= -DSELECT_VECS="${SELVEC}"
|
55 56targmatch.h: targmatch.sed config.bfd 57 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} 58 59.include <bsd.lib.mk>
| 53 54targmatch.h: targmatch.sed config.bfd 55 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} 56 57.include <bsd.lib.mk>
|