Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / gpl3 / binutils / usr.bin / gas / Makefile
blob77a3849659f3ea7054528244d8cc00d3c7c6d860
1 # $NetBSD: Makefile,v 1.3 2009/09/27 12:58:59 blymn Exp $
3 .include <bsd.own.mk>
5 TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
7 .include "${.CURDIR}/../common/Makefile.inc"
8 .include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
10 PROG= as
11 SRCS= ${G_OBJS:Nitbl-[pl]*:Nm68k-parse.o:.o=.c} \
12 ${G_OBJS:Mitbl-parse.o:.o=.y} \
13 ${G_OBJS:Mitbl-lex.o:.o=.l} \
14 ${G_OBJS:Mm68k-parse.o:.o=.y}
16 COPTS.obj-elf.c = -Wno-stack-protector
17 COPTS.atof-generic.c = -Wno-stack-protector
18 COPTS.dwarf2dbg.c = -Wno-stack-protector
19 COPTS.symbols.c = -Wno-stack-protector
20 COPTS.stabs.c = -Wno-stack-protector
21 COPTS.macro.c = -Wno-stack-protector
23 CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH}
24 CPPFLAGS+= -I${DIST}/gas -I${DIST}/gas/config
25 CPPFLAGS+= -I${DIST}
27 LDADD= -lintl
28 DPADD= ${LIBINTL}
30 OPCODESOBJ!= cd ${TOP}/${BFDSUBDIR}/libopcodes && ${PRINTOBJDIR}
31 LDADD+= -L${OPCODESOBJ} -lopcodes
32 .if ${MKPICLIB} != "no"
33 DPADD+= ${OPCODESOBJ}/libopcodes_pic.a
34 .else
35 DPADD+= ${OPCODESOBJ}/libopcodes.a
36 .endif
38 BFDOBJ!= cd ${TOP}/${BFDSUBDIR}/libbfd && ${PRINTOBJDIR}
39 LDADD+= -L${BFDOBJ} -lbfd
40 .if ${MKPICLIB} != "no"
41 DPADD+= ${BFDOBJ}/libbfd_pic.a
42 .else
43 DPADD+= ${BFDOBJ}/libbfd.a
44 .endif
46 IBERTYOBJ!= cd ${TOP}/${BFDSUBDIR}/libiberty && ${PRINTOBJDIR}
47 LDADD+= -L${IBERTYOBJ} -liberty
48 DPADD+= ${IBERTYOBJ}/libiberty.a
50 TEXINFO= as.texinfo
51 COMMONOBJDIR!= cd ${TOP}/usr.bin/common && ${PRINTOBJDIR}
52 INFOFLAGS= -I${DIST}/gas/doc -I${COMMONOBJDIR} -I${DIST}/libiberty
54 as.info: bfdver.texi
56 .PATH: ${COMMONOBJDIR} ${DIST}/gas ${DIST}/gas/config ${DIST}/gas/doc
58 .include <bsd.prog.mk>
59 .include <bsd.info.mk>