Makefile revision 44360
1# 2# $Id: Makefile,v 1.6 1998/09/06 23:01:53 jdp Exp $ 3# 4 5.include "../Makefile.inc0" 6 7.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes 8 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 dwarf2.c 15CFLAGS+= -I${SRCDIR}/bfd 16NOPROFILE= true 17NOPIC= true 18INTERNALLIB= true 19INTERNALSTATICLIB=true 20CLEANFILES+= targmatch.h 21 22SELARCH= 23.for _a in ${ARCHS} 24.if ${SELARCH} == "" 25SELARCH+=&bfd_${_a}_arch 26.else 27SELARCH+=,&bfd_${_a}_arch 28.endif 29.endfor 30CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}" 31 32SELVEC= 33.for _v in ${VECS} 34.if ${SELVEC} == "" 35SELVEC+=&${_v} 36.else 37SELVEC+=,&${_v} 38.endif 39.endfor 40CFLAGS+= -DSELECT_VECS="${SELVEC}" 41 42targmatch.h: targmatch.sed config.bfd 43 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} 44 45.include <bsd.lib.mk> 46