1# $DragonFly: src/gnu/usr.bin/gdb/libbfd/Makefile,v 1.2 2008/01/14 21:36:38 corecode Exp $ 2 3.include "../Makefile.inc" 4 5LIB= bfd 6INTERNALLIB= true 7 8CONTRIBDIR= ${BASEDIR}/bfd 9.PATH: ${CONTRIBDIR} 10 11CFLAGS+= -I${BASEDIR}/include -I${CONTRIBDIR} -I${.CURDIR} -I${.OBJDIR} 12# XXX no clue what DEBUGDIR is for 13CFLAGS+= -DDEBUGDIR='"/usr/lib/debug"' 14 15SRCS= archive.c archive64.c archures.c bfd.c bfdio.c bfdwin.c binary.c 16SRCS+= cache.c coffgen.c cofflink.c corefile.c dwarf1.c dwarf2.c 17SRCS+= elf-eh-frame.c elf-strtab.c elf.c elflink.c elf-attrs.c 18SRCS+= format.c hash.c ihex.c init.c libbfd.c linker.c merge.c opncls.c 19SRCS+= reloc.c section.c simple.c srec.c stab-syms.c stabs.c syms.c 20SRCS+= targets.c tekhex.c 21 22SRCS+= targmatch.h 23CLEANFILES+= elf64-target.h elf32-target.h targmatch.h 24 25targmatch.h: config.bfd targmatch.sed 26 sed -f ${CONTRIBDIR}/targmatch.sed < ${CONTRIBDIR}/config.bfd > ${.TARGET} 27 28elf32-target.h: elfxx-target.h 29 sed -e s/NN/32/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET} 30elf64-target.h: elfxx-target.h 31 sed -e s/NN/64/g < ${CONTRIBDIR}/elfxx-target.h > ${.TARGET} 32 33.include "Makefile.${MACHINE_ARCH}" 34 35SRCS+= bfd_stdint.h 36CLEANFILES+= bfd_stdint.h 37 38bfd_stdint.h: 39 touch ${.TARGET} 40 41.include <bsd.lib.mk> 42