1 # $NetBSD: Makefile,v 1.3 2009/09/27 12:58:59 blymn Exp $
5 TOP
= ${NETBSDSRCDIR}/external
/gpl3
/binutils
7 .
include "${.CURDIR}/../common/Makefile.inc"
8 .
include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
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
30 OPCODESOBJ
!= cd
${TOP}/${BFDSUBDIR}/libopcodes
&& ${PRINTOBJDIR}
31 LDADD
+= -L
${OPCODESOBJ} -lopcodes
32 .if
${MKPICLIB} != "no"
33 DPADD
+= ${OPCODESOBJ}/libopcodes_pic.a
35 DPADD
+= ${OPCODESOBJ}/libopcodes.a
38 BFDOBJ
!= cd
${TOP}/${BFDSUBDIR}/libbfd
&& ${PRINTOBJDIR}
39 LDADD
+= -L
${BFDOBJ} -lbfd
40 .if
${MKPICLIB} != "no"
41 DPADD
+= ${BFDOBJ}/libbfd_pic.a
43 DPADD
+= ${BFDOBJ}/libbfd.a
46 IBERTYOBJ
!= cd
${TOP}/${BFDSUBDIR}/libiberty
&& ${PRINTOBJDIR}
47 LDADD
+= -L
${IBERTYOBJ} -liberty
48 DPADD
+= ${IBERTYOBJ}/libiberty.a
51 COMMONOBJDIR
!= cd
${TOP}/usr.bin
/common
&& ${PRINTOBJDIR}
52 INFOFLAGS
= -I
${DIST}/gas
/doc
-I
${COMMONOBJDIR} -I
${DIST}/libiberty
56 .PATH
: ${COMMONOBJDIR} ${DIST}/gas
${DIST}/gas
/config
${DIST}/gas
/doc
58 .
include <bsd.prog.mk
>
59 .
include <bsd.
info.mk
>