1 # $NetBSD: Makefile,v 1.3 2008/05/03 14:48:30 lukem Exp $
9 .
include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
11 DIST
= ${NETBSDSRCDIR}/gnu
/dist/gdb6
13 GCPPFLAGS
= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
14 CPPFLAGS
+= -I
${.CURDIR
}/arch
/${MACHINE_ARCH} -I
${DIST}/include -I. \
15 -I
${DIST}/bfd
${GCPPFLAGS
:M-D
*} ${GCPPFLAGS
:M-I
*:N-I.
*}
17 GSRCS
= ${G_libbfd_la_OBJECTS
:libbfd.lo
=lib_bfd.lo
} \
18 ${G_libbfd_la_DEPENDENCIES
:M
*.lo
}
21 DPSRCS
+= elf32-target.h elf64-target.h targmatch.h \
22 elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
23 CLEANFILES
+= elf32-target.h elf64-target.h targmatch.h \
24 elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
31 .if
${MACHINE_CPU} == "sh5"
36 ${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
37 targets.o targets.so
: targmatch.h Makefile
39 targmatch.h
: config.bfd targmatch.sed
41 ${TOOL_SED} -f
${.ALLSRC
:M
*.sed
} ${.ALLSRC
:M
*.bfd
} >$@
43 elf32-target.h
: elfxx-target.h
45 ${TOOL_SED} -e s
/NN
/32/g
< $> > $@
47 elf64-target.h
: elfxx-target.h
49 ${TOOL_SED} -e s
/NN
/64/g
< $> > $@
51 elf32-ia64.c
: elfxx-ia64.c
53 ${TOOL_SED} -e s
/NN
/32/g
< $> > $@
55 elf64-ia64.c
: elfxx-ia64.c
57 ${TOOL_SED} -e s
/NN
/64/g
< $> > $@
61 ${TOOL_SED} -e s
/XX
/pe
/g
< $> > $@
65 ${TOOL_SED} -e s
/XX
/pep
/g
< $> > $@