Makefile revision 107506
1# $FreeBSD: head/gnu/usr.bin/binutils/libbfd/Makefile 107506 2002-12-02 09:53:59Z obrien $ 2 3.include "../Makefile.inc0" 4 5.PATH: ${SRCDIR}/bfd ${SRCDIR}/opcodes 6 7LIB= bfd 8SRCS+= archive.c archive64.c archures.c bfd.c binary.c cache.c \ 9 coffgen.c corefile.c elf.c elf-eh-frame.c elf-strtab.c format.c \ 10 hash.c ihex.c init.c libbfd.c linker.c merge.c opncls.c reloc.c \ 11 section.c srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \ 12 targmatch.h dwarf1.c dwarf2.c config.h 13.if (${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64") 14WARNS= 2 15.endif 16CFLAGS+= -I${SRCDIR}/bfd 17CFLAGS+= -DBFD_VERSION=\"${VERSION_DATE}\" -DBFD_VERSION_DATE=${VERSION_DATE} 18CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\" 19INTERNALLIB= true 20CLEANFILES+= config.h targmatch.h 21 22SELARCH= 23.if ${TARGET_ARCH} == "sparc64" 24SELARCH= &bfd_sparc_arch 25.else 26.for _a in ${ARCHS} 27.if ${SELARCH} == "" 28SELARCH+= &bfd_${_a}_arch 29.else 30SELARCH+= ,&bfd_${_a}_arch 31.endif 32.endfor 33.endif 34CFLAGS+= -DSELECT_ARCHITECTURES="${SELARCH}" 35 36SELVEC= 37.for _v in ${VECS} 38CFLAGS+= -DHAVE_${_v} 39.if ${SELVEC} == "" 40SELVEC+= &${_v} 41.else 42SELVEC+= ,&${_v} 43.endif 44.endfor 45CFLAGS+= -DSELECT_VECS="${SELVEC}" 46 47targmatch.h: targmatch.sed config.bfd 48 sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET} 49 50config.h: config.h.fbsd 51.if ${TARGET_ARCH} == "i386" 52 sed -e 's,!!TRAD_HEADER!!,"hosts/i386bsd.h",g' ${.ALLSRC} > ${.TARGET} 53.else 54 sed -e 's,!!TRAD_HEADER!!,,g' ${.ALLSRC} > ${.TARGET} 55.endif 56 57.include <bsd.lib.mk> 58