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