Sync usage with man page.
[netbsd-mini2440.git] / gnu / usr.bin / gdb6 / bfd / Makefile
blobce0c7e36df5041ca51cee3fc618b724ecaaf1610
1 # $NetBSD: Makefile,v 1.3 2008/05/03 14:48:30 lukem Exp $
3 .include <bsd.own.mk>
5 LIBISPRIVATE= yes
7 LIB= bfd
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}
19 SRCS= ${GSRCS:.lo=.c}
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
26 .PATH: ${DIST}/bfd
28 .include <bsd.lib.mk>
30 # XXX
31 .if ${MACHINE_CPU} == "sh5"
32 COPTS.elf32.c= -O1
33 COPTS.elf64.c= -O1
34 .endif
36 ${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
37 targets.o targets.so: targmatch.h Makefile
39 targmatch.h: config.bfd targmatch.sed
40 ${_MKTARGET_CREATE}
41 ${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
43 elf32-target.h: elfxx-target.h
44 ${_MKTARGET_CREATE}
45 ${TOOL_SED} -e s/NN/32/g < $> > $@
47 elf64-target.h: elfxx-target.h
48 ${_MKTARGET_CREATE}
49 ${TOOL_SED} -e s/NN/64/g < $> > $@
51 elf32-ia64.c: elfxx-ia64.c
52 ${_MKTARGET_CREATE}
53 ${TOOL_SED} -e s/NN/32/g < $> > $@
55 elf64-ia64.c: elfxx-ia64.c
56 ${_MKTARGET_CREATE}
57 ${TOOL_SED} -e s/NN/64/g < $> > $@
59 peigen.c: peXXigen.c
60 ${_MKTARGET_CREATE}
61 ${TOOL_SED} -e s/XX/pe/g < $> > $@
63 pepigen.c: peXXigen.c
64 ${_MKTARGET_CREATE}
65 ${TOOL_SED} -e s/XX/pep/g < $> > $@