1998-03-01 18:41:17 -05:00
|
|
|
#
|
1999-02-28 23:01:57 -05:00
|
|
|
# $Id: Makefile,v 1.6 1998/09/06 23:01:53 jdp Exp $
|
1998-03-01 18:41:17 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
|
|
1999-02-28 23:01:57 -05:00
|
|
|
.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes
|
1998-03-01 18:41:17 -05:00
|
|
|
|
|
|
|
|
LIB= bfd
|
1998-03-11 21:55:43 -05:00
|
|
|
SRCS+= archive.c archures.c bfd.c binary.c cache.c \
|
|
|
|
|
coffgen.c corefile.c elf.c format.c hash.c ihex.c \
|
1998-03-01 18:41:17 -05:00
|
|
|
init.c libbfd.c linker.c opncls.c reloc.c section.c \
|
1998-06-04 02:50:58 -04:00
|
|
|
srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \
|
1998-09-06 19:01:53 -04:00
|
|
|
targmatch.h dwarf2.c
|
1998-03-01 18:41:17 -05:00
|
|
|
CFLAGS+= -I${SRCDIR}/bfd
|
|
|
|
|
NOPROFILE= true
|
|
|
|
|
NOPIC= true
|
1998-03-12 00:14:19 -05:00
|
|
|
INTERNALLIB= true
|
|
|
|
|
INTERNALSTATICLIB=true
|
1998-03-11 21:55:43 -05:00
|
|
|
CLEANFILES+= targmatch.h
|
1998-03-01 18:41:17 -05:00
|
|
|
|
1998-05-04 17:16:46 -04:00
|
|
|
SELARCH=
|
|
|
|
|
.for _a in ${ARCHS}
|
|
|
|
|
.if ${SELARCH} == ""
|
|
|
|
|
SELARCH+=&bfd_${_a}_arch
|
|
|
|
|
.else
|
|
|
|
|
SELARCH+=,&bfd_${_a}_arch
|
|
|
|
|
.endif
|
|
|
|
|
.endfor
|
|
|
|
|
CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}"
|
|
|
|
|
|
|
|
|
|
SELVEC=
|
|
|
|
|
.for _v in ${VECS}
|
|
|
|
|
.if ${SELVEC} == ""
|
|
|
|
|
SELVEC+=&${_v}
|
|
|
|
|
.else
|
|
|
|
|
SELVEC+=,&${_v}
|
|
|
|
|
.endif
|
|
|
|
|
.endfor
|
|
|
|
|
CFLAGS+= -DSELECT_VECS="${SELVEC}"
|
|
|
|
|
|
1998-03-01 18:41:17 -05:00
|
|
|
targmatch.h: targmatch.sed config.bfd
|
|
|
|
|
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
|
|
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|